diff options
author | 2020-01-09 17:42:16 -0600 | |
---|---|---|
committer | 2020-01-21 14:45:30 +0100 | |
commit | 52918ed5fcf05d97d257f4131e19479da18f5d16 (patch) | |
tree | 36df23567a2b7494773f4022c2f0d951bdeecbaf /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | KVM: vmx: delete meaningless nested_vmx_prepare_msr_bitmap() declaration (diff) | |
download | linux-dev-52918ed5fcf05d97d257f4131e19479da18f5d16.tar.xz linux-dev-52918ed5fcf05d97d257f4131e19479da18f5d16.zip |
KVM: SVM: Override default MMIO mask if memory encryption is enabled
The KVM MMIO support uses bit 51 as the reserved bit to cause nested page
faults when a guest performs MMIO. The AMD memory encryption support uses
a CPUID function to define the encryption bit position. Given this, it is
possible that these bits can conflict.
Use svm_hardware_setup() to override the MMIO mask if memory encryption
support is enabled. Various checks are performed to ensure that the mask
is properly defined and rsvd_bits() is used to generate the new mask (as
was done prior to the change that necessitated this patch).
Fixes: 28a1f3ac1d0c ("kvm: x86: Set highest physical address bits in non-present/reserved SPTEs")
Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions