diff options
author | Sean Christopherson <seanjc@google.com> | 2024-04-06 02:56:03 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-06-11 00:29:39 +0300 |
commit | 1028893a73fe20b2d1b90b4a6005b288286b9309 (patch) | |
tree | cc05bfef7060865a5e74231c9f47b6aeae8f085f /scripts/generate_rust_analyzer.py | |
parent | bdaff4f92bcee7a6205f3544bb94e2d16ad98f6b (diff) | |
download | linux-1028893a73fe20b2d1b90b4a6005b288286b9309.tar.xz |
KVM: x86: Bury guest_cpuid_is_amd_or_hygon() in cpuid.c
Move guest_cpuid_is_amd_or_hygon() into cpuid.c now that, except for one
Intel quirk in the emulator, KVM checks for AMD vs. Intel *compatible*
vCPUs, not exact vendors, i.e. now that there should not be any reason for
KVM at-large to care about the exact vendor.
Opportunistically refactor the guts of the helper to use "entry" instead
of "best", and short circuit the !entry path to make the common case more
readable.
Link: https://lore.kernel.org/r/20240405235603.1173076-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions