Commit df2a69af authored by Paolo Bonzini's avatar Paolo Bonzini

KVM: x86: allow KVM_STATE_NESTED_MTF_PENDING in kvm_state flags

The migration functionality was left incomplete in commit 5ef8acbd
("KVM: nVMX: Emulate MTF when performing instruction emulation", 2020-02-23),
fix it.

Fixes: 5ef8acbd ("KVM: nVMX: Emulate MTF when performing instruction emulation")
Cc: stable@vger.kernel.org
Reviewed-by: default avatarOliver Upton <oupton@google.com>
Reviewed-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 7529e767
...@@ -4626,7 +4626,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp, ...@@ -4626,7 +4626,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
if (kvm_state.flags & if (kvm_state.flags &
~(KVM_STATE_NESTED_RUN_PENDING | KVM_STATE_NESTED_GUEST_MODE ~(KVM_STATE_NESTED_RUN_PENDING | KVM_STATE_NESTED_GUEST_MODE
| KVM_STATE_NESTED_EVMCS)) | KVM_STATE_NESTED_EVMCS | KVM_STATE_NESTED_MTF_PENDING))
break; break;
/* nested_run_pending implies guest_mode. */ /* nested_run_pending implies guest_mode. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment