]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Force enlightened VMCS sync from nested_vmx_failValid()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 26 May 2021 13:20:23 +0000 (15:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:50 +0000 (13:09 -0400)
commit978729d7efeb9852f2d5fe4669b36021b832559d
tree31946ea42a0999d8af8de58c9d49e6e2bf9d3c19
parent0af5ec88c0fbfba3d8e9c2d65974961a07d33c1e
KVM: nVMX: Force enlightened VMCS sync from nested_vmx_failValid()

'need_vmcs12_to_shadow_sync' is used for both shadow and enlightened
VMCS sync when we exit to L1. The comment in nested_vmx_failValid()
validly states why shadow vmcs sync can be omitted but this doesn't
apply to enlightened VMCS as it 'shadows' all VMCS12 fields.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210526132026.270394-9-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c