All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: nVMX: Correct a VMX instruction error code for VMPTRLD
@ 2016-11-28 23:50 Jim Mattson
  2016-11-30 17:54 ` Jim Mattson
  0 siblings, 1 reply; 9+ messages in thread
From: Jim Mattson @ 2016-11-28 23:50 UTC (permalink / raw)
  To: kvm; +Cc: GanShun, Jim Mattson

From: GanShun <ganshun@google.com>

When the operand passed to VMPTRLD matches the address of the VMXON
region, the VMX instruction error code should be
VMXERR_VMPTRLD_VMXON_POINTER rather than VMXERR_VMCLEAR_VMXON_POINTER.

Signed-off-by: Jim Mattson <jmattson@google.com>
---
 arch/x86/kvm/vmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 0c4cde8..7e3a45e 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -6945,7 +6945,7 @@ static int nested_vmx_check_vmptr(struct kvm_vcpu *vcpu, int exit_reason,
 
 		if (vmptr == vmx->nested.vmxon_ptr) {
 			nested_vmx_failValid(vcpu,
-					     VMXERR_VMCLEAR_VMXON_POINTER);
+					     VMXERR_VMPTRLD_VMXON_POINTER);
 			skip_emulated_instruction(vcpu);
 			return 1;
 		}
-- 
2.8.0.rc3.226.g39d4020


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-12-13 23:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-28 23:50 [PATCH] kvm: nVMX: Correct a VMX instruction error code for VMPTRLD Jim Mattson
2016-11-30 17:54 ` Jim Mattson
2016-11-30 18:28   ` [PATCH v2] " Jim Mattson
2016-12-05 14:31     ` David Hildenbrand
2016-12-08 15:27       ` Radim Krčmář
2016-12-08 15:59         ` Jim Mattson
2016-12-09 14:54     ` Paolo Bonzini
2016-12-12  6:28     ` Paolo Bonzini
2016-12-13 23:16       ` Gan Shun Lim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.