diff options
author | Sean Christopherson <seanjc@google.com> | 2021-06-09 16:42:34 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-17 13:09:54 -0400 |
commit | 546e8398bc0c7f75f696a24a997d2befeb632154 (patch) | |
tree | 4490e2fcf3ddefefb07f5f1445dc0c538e2a1533 /lib/parser.c | |
parent | c906066288d0da7b8c2b5ac4d0d8e85f10f5d5b8 (diff) |
KVM: nVMX: WARN if subtly-impossible VMFUNC conditions occur
WARN and inject #UD when emulating VMFUNC for L2 if the function is
out-of-bounds or if VMFUNC is not enabled in vmcs12. Neither condition
should occur in practice, as the CPU is supposed to prioritize the #UD
over VM-Exit for out-of-bounds input and KVM is supposed to enable
VMFUNC in vmcs02 if and only if it's enabled in vmcs12, but neither of
those dependencies is obvious.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210609234235.1244004-15-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions