aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-05-05 09:40:46 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-05-06 06:51:36 -0400
commit139f7425fdf54f054463e7524b9f54c41af8407f (patch)
treec6a22176977632b38d79fe96aac1828070f53fb1 /tools/testing/selftests/kvm/lib
parentKVM: VMX: Explicitly clear RFLAGS.CF and RFLAGS.ZF in VM-Exit RSB path (diff)
downloadlinux-dev-139f7425fdf54f054463e7524b9f54c41af8407f.tar.xz
linux-dev-139f7425fdf54f054463e7524b9f54c41af8407f.zip
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 <jmattson@google.com> Tested-by: Jim Mattson <jmattson@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib')
0 files changed, 0 insertions, 0 deletions