diff options
author | Sean Christopherson <seanjc@google.com> | 2022-06-14 20:07:03 +0000 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2022-07-13 18:14:24 -0700 |
commit | 7fbb653e01fdd45b377674a9e77da473d49afd38 (patch) | |
tree | 3187b300ae0672fbfe144d4ae8f92f8fc4a3c5fd /scripts/gdb/linux/lists.py | |
parent | d04019274d13301b413c28b85f1b1775a9d63062 (diff) |
KVM: selftests: Check KVM's supported CPUID, not host CPUID, for XFD
Use kvm_cpu_has() to check for XFD supported in vm_xsave_req_perm(),
simply checking host CPUID doesn't guarantee KVM supports AMX/XFD.
Opportunistically hoist the check above the bit check; if XFD isn't
supported, it's far better to get a "not supported at all" message, as
opposed to a "feature X isn't supported" message".
Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-39-seanjc@google.com
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions