]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: fixes for preemption timer migration
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jul 2020 17:12:09 +0000 (13:12 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 10:15:36 +0000 (06:15 -0400)
commit9ef46a9cf1aa1b7821466ee4a40b2bf62f8a12ab
tree6bf5fabc0523a5d672765f7a091db41e711d1f14
parent5dec4f60c12fb85311e02a9a857b69bd12603de6
KVM: nVMX: fixes for preemption timer migration

Commit c6d93846be1b ("KVM: nVMX: Fix VMX preemption timer migration",
2020-06-01) accidentally broke nVMX live migration from older version
by changing the userspace ABI.  Restore it and, while at it, ensure
that vmx->nested.has_preemption_timer_deadline is always initialized
according to the KVM_STATE_VMX_PREEMPTION_TIMER_DEADLINE flag.

Cc: Makarand Sonare <makarandsonare@google.com>
Fixes: c6d93846be1b ("KVM: nVMX: Fix VMX preemption timer migration")
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/vmx/nested.c