v2: Added an u32 flags to the kvm_vmx_nested_state_hdr to check the validity of the preemption timer deadline. [Paolo] v3: Moved the code to calculate timer value to a separate helper [Sean] v3: Rename l1_scaled_tsc_value as l1_scaled_tsc. [Sean] v3: Removed unncessary parenthesis and moved the >> operator to previous line [Sean] v3: Changed >= to > for comparision between l1_scaled_tsc and vmx->nested.preemption_timer_deadline [Sean] v3: Removed the extra if check in sync_vmcs02_to_vmcs12 [Sean] Makarand Sonare (1): KVM: selftests: VMX preemption timer migration test Peter Shier (1): KVM: nVMX: Fix VMX preemption timer migration Documentation/virt/kvm/api.rst | 5 + arch/x86/include/uapi/asm/kvm.h | 4 + arch/x86/kvm/vmx/nested.c | 58 +++- arch/x86/kvm/vmx/vmx.h | 2 + arch/x86/kvm/x86.c | 1 + include/uapi/linux/kvm.h | 1 + tools/arch/x86/include/uapi/asm/kvm.h | 1 + tools/testing/selftests/kvm/.gitignore | 1 + tools/testing/selftests/kvm/Makefile | 1 + .../testing/selftests/kvm/include/kvm_util.h | 2 + .../selftests/kvm/include/x86_64/processor.h | 11 +- .../selftests/kvm/include/x86_64/vmx.h | 27 ++ .../kvm/x86_64/vmx_preemption_timer_test.c | 255 ++++++++++++++++++ 13 files changed, 356 insertions(+), 13 deletions(-) create mode 100644 tools/testing/selftests/kvm/x86_64/vmx_preemption_timer_test.c -- 2.27.0.rc0.183.gde8f92d652-goog