aboutsummaryrefslogtreecommitdiff
path: root/kernel/gcov/clang.c
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2020-05-05 09:40:46 -0400
committerPaolo Bonzini <[email protected]>2020-05-06 06:51:36 -0400
commit139f7425fdf54f054463e7524b9f54c41af8407f (patch)
treec6a22176977632b38d79fe96aac1828070f53fb1 /kernel/gcov/clang.c
parentc7cb2d650c9e78c03bd2d1c0db89891825f8c0f4 (diff)
kvm: x86: Use KVM CPU capabilities to determine CR4 reserved bits
Using CPUID data can be useful for the processor compatibility check, but that's it. Using it to compute guest-reserved bits can have both false positives (such as LA57 and UMIP which we are already handling) and false negatives: in particular, with this patch we don't allow anymore a KVM guest to set CR4.PKE when CR4.PKE is clear on the host. Fixes: b9dd21e104bc ("KVM: x86: simplify handling of PKRU") Reported-by: Jim Mattson <[email protected]> Tested-by: Jim Mattson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'kernel/gcov/clang.c')
0 files changed, 0 insertions, 0 deletions