diff options
| author | 2026-09-10 19:54:14 +0800 | |
|---|---|---|
| committer | 2026-09-11 09:37:27 -0700 | |
| commit | 0d5c14800de007ee45fd76008e4a115f170fa88d (patch) | |
| tree | 1d5e0f526f932fca52f0f41ae0b8bc11e44313eb /scripts | |
| parent | KVM: selftests: Add Zhaoxin CPU support to nested exceptions test (diff) | |
KVM: selftests: Check for APIC access virtualization support in said test
Not all CPUs that support VMX necessarily support the "virtualize APIC
accesses" secondary processor-based VM-execution control. For example,
some Zhaoxin CPUs lack this feature. Add a capability check before
running the test to properly skip on unsupported hardware instead of
failing.
Carve out the guts of kvm_cpu_has_ept() into a generic helper and use said
helper to provide kvm_cpu_has_vmx_apic_access_virt().
Signed-off-by: Frank Zhu <frankzhu@zhaoxin.com>
Link: https://patch.msgid.link/20260910115414.3015260-10-ewanhai-oc@zhaoxin.com
[sean: add a helper instead of copy+pasting kvm_cpu_has_ept()]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
