summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/vmx/nested.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c
index f7950d8465a9..a5529a4bc87d 100644
--- a/arch/x86/kvm/vmx/nested.c
+++ b/arch/x86/kvm/vmx/nested.c
@@ -118,9 +118,10 @@ static void init_vmcs_shadow_fields(void)
continue;
/*
- * PML and the preemption timer can be emulated, but the
- * processor cannot vmwrite to fields that don't exist
- * on bare metal.
+ * KVM emulates PML and the VMX preemption timer irrespective
+ * of hardware support, but shadowing their related VMCS fields
+ * requires hardware support as the CPU will reject VMWRITEs to
+ * fields that don't exist.
*/
switch (field) {
case GUEST_PML_INDEX:
@@ -131,10 +132,6 @@ static void init_vmcs_shadow_fields(void)
if (!cpu_has_vmx_preemption_timer())
continue;
break;
- case GUEST_INTR_STATUS:
- if (!cpu_has_vmx_apicv())
- continue;
- break;
default:
break;
}