v2 -> v3: Patch# 1: It's a new patch for SVM. It fixes the SVM bug that advances the RIP following the #VMEXIT from a VMRUN that is being single-stepped. Patch# 2: It's a new patch for the test framework. It adds a utility function to read the current RIP. Patch# 3: It's a new patch for the test framework. It adds an assembly label to the VMRUN instruction so that the RIP of VMRUN can be known to tests. Patch# 4: It's the updated test from v2. The test uses the VMRUN instruction label, added by the previous patch, in order know its RIP. The part of the test that tests single-stepping on VMRUN, uses the difference between the VMRUN RIP and its next RIP, in order to determine success. [PATCH 1/4 v3] KVM: nSVM: Do not advance RIP following VMRUN completion if the [PATCH 2/4 v3] KVM: X86: Add a utility function to read current RIP [PATCH 3/4 v3] KVM: nSVM: Add assembly label to VMRUN instruction [PATCH 4/4 v3] KVM: nSVM: Test effect of host RFLAGS.TF on VMRUN arch/x86/kvm/svm/svm.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) Krish Sadhukhan (1): nSVM: Do not advance RIP following VMRUN completion if the latter is single-stepped lib/x86/processor.h | 7 ++++ x86/svm.c | 16 ++++++-- x86/svm_tests.c | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 4 deletions(-) Krish Sadhukhan (3): KVM: X86: Add a utility function to read current RIP KVM: nSVM: Add assembly label to VMRUN instruction nSVM: Test effect of host RFLAGS.TF on VMRUN