diff options
author | Sean Christopherson <seanjc@google.com> | 2022-01-25 23:05:27 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-01-26 18:15:04 +0100 |
commit | d6e656cd266cdcc95abd372c7faef05bee271d1a (patch) | |
tree | baa1358ffb64afbc2e1904f3e96886b861041166 /drivers/Makefile | |
parent | KVM: selftests: Don't skip L2's VMCALL in SMM test for SVM guest (diff) | |
download | linux-d6e656cd266cdcc95abd372c7faef05bee271d1a.tar.xz linux-d6e656cd266cdcc95abd372c7faef05bee271d1a.zip |
KVM: nVMX: WARN on any attempt to allocate shadow VMCS for vmcs02
WARN if KVM attempts to allocate a shadow VMCS for vmcs02. KVM emulates
VMCS shadowing but doesn't virtualize it, i.e. KVM should never allocate
a "real" shadow VMCS for L2.
The previous code WARNed but continued anyway with the allocation,
presumably in an attempt to avoid NULL pointer dereference.
However, alloc_vmcs (and hence alloc_shadow_vmcs) can fail, and
indeed the sole caller does:
if (enable_shadow_vmcs && !alloc_shadow_vmcs(vcpu))
goto out_shadow_vmcs;
which makes it not a useful attempt.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220125220527.2093146-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/Makefile')
0 files changed, 0 insertions, 0 deletions