[PATCH kvm-unit-tests] vmx_tests: remove #UD exception handler at the end of the test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Be tidy and avoid interactions between tests.

Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
 x86/vmx_tests.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/x86/vmx_tests.c b/x86/vmx_tests.c
index 38f10f4..54b7034 100644
--- a/x86/vmx_tests.c
+++ b/x86/vmx_tests.c
@@ -1974,6 +1974,8 @@ static void disable_rdtscp_main(void)
 	asm volatile("rdtscp" : : : "eax", "ecx", "edx");
 	vmcall();
 	asm volatile(".byte 0xf3, 0x0f, 0xc7, 0xf8" : : : "eax");
+
+	handle_exception(UD_VECTOR, 0);
 	vmcall();
 }
 
-- 
1.8.3.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux