diff options
author | Sean Christopherson <[email protected]> | 2024-04-05 16:56:03 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-06-10 14:29:39 -0700 |
commit | 1028893a73fe20b2d1b90b4a6005b288286b9309 (patch) | |
tree | cc05bfef7060865a5e74231c9f47b6aeae8f085f /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | bdaff4f92bcee7a6205f3544bb94e2d16ad98f6b (diff) |
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/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions