diff options
author | Sean Christopherson <[email protected]> | 2021-02-25 12:47:26 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-02-26 04:43:29 -0500 |
commit | 44ac5958a6c1fd91ac8810fbb37194e377d78db5 (patch) | |
tree | 2f8364163fcf233b0db88166b961f7611dfe34bf /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 919f4ebc598701670e80e31573a58f1f2d2bf918 (diff) |
KVM: x86/mmu: Set SPTE_AD_WRPROT_ONLY_MASK if and only if PML is enabled
Check that PML is actually enabled before setting the mask to force a
SPTE to be write-protected. The bits used for the !AD_ENABLED case are
in the upper half of the SPTE. With 64-bit paging and EPT, these bits
are ignored, but with 32-bit PAE paging they are reserved. Setting them
for L2 SPTEs without checking PML breaks NPT on 32-bit KVM.
Fixes: 1f4e5fc83a42 ("KVM: x86: fix nested guest live migration with PML")
Cc: [email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions