diff options
| author | 2022-06-14 20:06:55 +0000 | |
|---|---|---|
| committer | 2022-07-13 18:14:20 -0700 | |
| commit | 813e38cd6d7b4247314427a901015867e0534356 (patch) | |
| tree | d710c85b3fb3f1e8dae6a9b81daf4a48b7389ff6 /virt/git:/ssh:/git@git.zx2c4.com | |
| parent | KVM: selftests: Use vcpu_clear_cpuid_feature() to clear x2APIC (diff) | |
| download | linux-dev-813e38cd6d7b4247314427a901015867e0534356.tar.xz linux-dev-813e38cd6d7b4247314427a901015867e0534356.zip | |
KVM: selftests: Make get_supported_cpuid() returns "const"
Tag the returned CPUID pointers from kvm_get_supported_cpuid(),
kvm_get_supported_hv_cpuid(), and vcpu_get_supported_hv_cpuid() "const"
to prevent reintroducing the broken pattern of modifying the static
"cpuid" variable used by kvm_get_supported_cpuid() to cache the results
of KVM_GET_SUPPORTED_CPUID.
Update downstream consumers as needed.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-31-seanjc@google.com
Diffstat (limited to 'virt/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
