History

KVM: PPC: Add CAP to indicate hcall fixes

We worked around some nasty KVM magic page hcall breakages: 1) NX bit not honored, so ignore NX when we detect it 2) LE guests swizzle hypercall instruction Without these fixes in place, there's no way it would make sense to expose kvm hypercalls to a guest. Chances are immensely high it would trip over and break. So add a new CAP that gives user space a hint that we have workarounds for the bugs above in place. It can use those as hint to disable PV hypercalls when the guest CPU is anything POWER7 or higher and the host does not have fixes in place.

Alexander Graf committed 12 years ago

Commit f2e91041 parent aae65592 files · +2 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/kvm.h+1−0
@@ -748,6 +748,7 @@ struct kvm_ppc_smmu_info { · 747 unmodified lines
748748 #define KVM_CAP_S390_IRQCHIP 99
749749 #define KVM_CAP_IOEVENTFD_NO_LENGTH 100
750750 #define KVM_CAP_VM_ATTRIBUTES 101
751+#define KVM_CAP_PPC_FIXUP_HCALL 102
751752
752753 #ifdef KVM_CAP_IRQ_ROUTING
753754