diff options
author | Robert Hoo <[email protected]> | 2023-03-08 15:29:36 +0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-03-23 16:08:29 -0700 |
commit | 99b30869804ea59d9596cdbefa5cc3aabd588521 (patch) | |
tree | 16e728c6abcbdc94e4e28a0b3cea7a14484e0c06 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 65966aaca18a5cbf42ac22234cb9cbbf60a4d33c (diff) |
KVM: x86: Remove a redundant guest cpuid check in kvm_set_cr4()
If !guest_cpuid_has(vcpu, X86_FEATURE_PCID), CR4.PCIDE would have been in
vcpu->arch.cr4_guest_rsvd_bits and failed earlier kvm_is_valid_cr4() check.
Remove this meaningless check.
Reviewed-by: Xiaoyao Li <[email protected]>
Signed-off-by: Robert Hoo <[email protected]>
Fixes: 4683d758f48e ("KVM: x86: Supplement __cr4_reserved_bits() with X86_FEATURE_PCID check")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions