diff options
| author | Sean Christopherson <seanjc@google.com> | 2022-08-03 22:49:56 +0000 |
|---|---|---|
| committer | Michael Roth <michael.roth@amd.com> | 2022-08-05 18:12:00 -0500 |
| commit | e1a04ea7bb868d7431afecf4ec49848b2e76035d (patch) | |
| tree | ccddbdd286cd9989a17cca642306b75c5df1080d /scripts/objdiff | |
| parent | fb8600e126f56ca38ff1c0c41dd2dd257749d583 (diff) | |
| download | cachepc-linux-e1a04ea7bb868d7431afecf4ec49848b2e76035d.tar.gz cachepc-linux-e1a04ea7bb868d7431afecf4ec49848b2e76035d.zip | |
KVM: x86/mmu: Fully re-evaluate MMIO caching when SPTE masks change
Fully re-evaluate whether or not MMIO caching can be enabled when SPTE
masks change; simply clearing enable_mmio_caching when a configuration
isn't compatible with caching fails to handle the scenario where the
masks are updated, e.g. by VMX for EPT or by SVM to account for the C-bit
location, and toggle compatibility from false=>true.
Snapshot the original module param so that re-evaluating MMIO caching
preserves userspace's desire to allow caching. Use a snapshot approach
so that enable_mmio_caching still reflects KVM's actual behavior.
Fixes: 8b9e74bfbf8c ("KVM: x86/mmu: Use enable_mmio_caching to track if MMIO caching is enabled")
Reported-by: Michael Roth <michael.roth@amd.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: stable@vger.kernel.org
Tested-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
