]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: nVMX: use correct clean fields when copying from eVMCS
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 13 Jun 2019 11:35:02 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Jul 2019 06:09:41 +0000 (08:09 +0200)
commite80b4f6271eca3f86ada3c21fdfedb02ec3643d8
tree940b0c9d03a5eb03784982d979138539f6c6054e
parent5b8efec8a9f2c7de08e720dd3f6310af292d8e50
KVM: nVMX: use correct clean fields when copying from eVMCS

[ Upstream commit f9bc5227652df4900eff12a9b8b38e9a8c7c78ea ]

Unfortunately, a couple of mistakes were made while implementing
Enlightened VMCS support, in particular, wrong clean fields were
used in copy_enlightened_to_vmcs12():
- exception_bitmap is covered by CONTROL_EXCPN;
- vm_exit_controls/pin_based_vm_exec_control/secondary_vm_exec_control
  are covered by CONTROL_GRP1.

Fixes: 945679e301ea0 ("KVM: nVMX: add enlightened VMCS state")
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx/nested.c