diff options
author | Sean Christopherson <seanjc@google.com> | 2024-10-10 19:10:48 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-10-30 15:25:39 -0700 |
commit | 85649117511ddf9971e4759fe8ac9fbb69ad5064 (patch) | |
tree | 70dfebee21f6d268d66a0404678cf823d85b8f35 /virt | |
parent | c9b625625ba37d4b493f5fc878d8fce3d38dab2d (diff) | |
download | linux-85649117511ddf9971e4759fe8ac9fbb69ad5064.tar.gz linux-85649117511ddf9971e4759fe8ac9fbb69ad5064.tar.bz2 linux-85649117511ddf9971e4759fe8ac9fbb69ad5064.zip |
KVM: x86/mmu: Set Dirty bit for new SPTEs, even if _hardware_ A/D bits are disabled
When making a SPTE, set the Dirty bit in the SPTE as appropriate, even if
hardware A/D bits are disabled. Only EPT allows A/D bits to be disabled,
and for EPT, the bits are software-available (ignored by hardware) when
A/D bits are disabled, i.e. it is perfectly legal for KVM to use the Dirty
to track dirty pages in software.
Link: https://lore.kernel.org/r/20241011021051.1557902-17-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions