diff options
author | Sean Christopherson <seanjc@google.com> | 2024-11-28 04:34:14 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-12-19 01:20:12 +0300 |
commit | 1f66590d7ff0bab04843fb89292e181c30d43e6c (patch) | |
tree | 941d85f25dffaa03f9432aa67455d6d46ac1eb3c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | cfd15745260929565bc53e16fed54f9e3276c7e1 (diff) | |
download | linux-1f66590d7ff0bab04843fb89292e181c30d43e6c.tar.xz |
KVM: x86: Update OS{XSAVE,PKE} bits in guest CPUID irrespective of host support
When making runtime CPUID updates, change OSXSAVE and OSPKE even if their
respective base features (XSAVE, PKU) are not supported by the host. KVM
already incorporates host support in the vCPU's effective reserved CR4 bits.
I.e. OSXSAVE and OSPKE can be set if and only if the host supports them.
And conversely, since KVM's ABI is that KVM owns the dynamic OS feature
flags, clearing them when they obviously aren't supported and thus can't
be enabled is arguably a fix.
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20241128013424.4096668-48-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions