mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
Commit850448f35a("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 <[email protected]> Fixes:850448f35a("KVM: nVMX: Fix VMX preemption timer migration") Reviewed-by: Jim Mattson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>