diff options
author | Sean Christopherson <seanjc@google.com> | 2024-10-10 19:10:43 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-10-30 14:46:46 -0700 |
commit | 53510b912518bd15dba9632ee8e539168166af3c (patch) | |
tree | 7b69760a4f21455c6110cc60fa1a29b16fee4be1 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3835819fb1b37bc736ef78c83f1ef275bc9e6565 (diff) |
KVM: x86/mmu: Set shadow_dirty_mask for EPT even if A/D bits disabled
Set shadow_dirty_mask to the architectural EPT Dirty bit value even if
A/D bits are disabled at the module level, i.e. even if KVM will never
enable A/D bits in hardware. Doing so provides consistent behavior for
Accessed and Dirty bits, i.e. doesn't leave KVM in a state where it sets
shadow_accessed_mask but not shadow_dirty_mask.
Functionally, this should be one big nop, as consumption of
shadow_dirty_mask is always guarded by a check that hardware A/D bits are
enabled.
Link: https://lore.kernel.org/r/20241011021051.1557902-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions