diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-06-30 13:28:26 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-10 09:06:57 -0700 |
| commit | b65699be2c606d2687593516d93e66d16a713b61 (patch) | |
| tree | 32145a396fc9a8db7bd040f568dbc4d06be2c156 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | ed6ee602bcebd475f7e8b5213d51e8b58b143973 (diff) | |
KVM: x86: Reject nested CAP enablement if nested virtualization is disabled
Add a flag to explicitly track if nested virtualization is enabled, and use
it enumerate that various nested CAPs are unsupported, and to reject
enablement of said CAPs. When the nested ops hooks were moved to their
own structure, KVM's NULL-by-default behavior was deliberately dropped,
with the changelog asserting that all was well. That wasn't quite true;
there is no danger to KVM, but now KVM is over-reporting support for
KVM_CAP_NESTED_STATE and KVM_CAP_HYPERV_ENLIGHTENED_VMCS.
Fixes: 33b22172452f ("KVM: x86: move nested-related kvm_x86_ops to a separate struct")
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://patch.msgid.link/20260630202828.440724-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
