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)
commitb7685cfd5e96456be653b61c405ea65f8de95bd6
tree31946ea42a0999d8af8de58c9d49e6e2bf9d3c19
parentd6bf71a18c74de61548ddad44ff95306fe85f829
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