diff options
author | Sean Christopherson <seanjc@google.com> | 2021-02-13 01:50:11 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-19 09:08:34 +0100 |
commit | 52f4607940b18337f01d160aaae346eaac388bf7 (patch) | |
tree | cffeedb01cccf2dc0d701e0c4519233140bee794 /arch/x86/include/asm/user_32.h | |
parent | KVM: x86: Move MMU's PML logic to common code (diff) | |
download | linux-52f4607940b18337f01d160aaae346eaac388bf7.tar.xz linux-52f4607940b18337f01d160aaae346eaac388bf7.zip |
KVM: x86: Further clarify the logic and comments for toggling log dirty
Add a sanity check in kvm_mmu_slot_apply_flags to assert that the
LOG_DIRTY_PAGES flag is indeed being toggled, and explicitly rely on
that holding true when zapping collapsible SPTEs. Manipulating the
CPU dirty log (PML) and write-protection also relies on this assertion,
but that's not obvious in the current code.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210213005015.1651772-11-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/user_32.h')
0 files changed, 0 insertions, 0 deletions