aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-11-27 17:34:20 -0800
committerSean Christopherson <seanjc@google.com>2024-12-18 14:20:19 -0800
commit3fd55b52279531c6211cb1037e929ea890fbeb59 (patch)
tree9e483cc2a1448245c422a9cb4a5acab99d859fc6 /scripts/generate_rust_analyzer.py
parentKVM: x86: Add a macro for features that are synthesized into boot_cpu_data (diff)
downloadwireguard-linux-3fd55b52279531c6211cb1037e929ea890fbeb59.tar.xz
wireguard-linux-3fd55b52279531c6211cb1037e929ea890fbeb59.zip
KVM: x86: Pull CPUID capabilities from boot_cpu_data only as needed
Don't memcpy() all of boot_cpu_data.x86_capability, and instead explicitly fill each kvm_cpu_cap_init leaf during kvm_cpu_cap_init(). While clever, copying all kernel capabilities risks over-reporting KVM capabilities, e.g. if KVM added support in __do_cpuid_func(), but neglected to init the supported set of capabilities. Note, explicitly grabbing leafs deliberately keeps Linux-defined leafs as 0! KVM should never advertise Linux-defined leafs; any relevant features that are "real", but scattered, must be gathered in their correct hardware- defined leaf. Link: https://lore.kernel.org/r/20241128013424.4096668-54-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