v4: Renamed flag to KVM_STATE_VMX_PREEMPTION_TIMER_DEADLINE and removed the KVM_CAP_NESTED_STATE_PREEMPTION_TIMER check [Paolo] 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 | 4 + arch/x86/include/uapi/asm/kvm.h | 4 + arch/x86/kvm/vmx/nested.c | 55 +++- arch/x86/kvm/vmx/vmx.h | 2 + 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 ++++++++++++++++++ 11 files changed, 351 insertions(+), 12 deletions(-) create mode 100644 tools/testing/selftests/kvm/x86_64/vmx_preemption_timer_test.c -- 2.27.0.rc0.183.gde8f92d652-goog