• Marcelo Tosatti's avatar
    KVM: MMU audit: update count_writable_mappings / count_rmaps · 08a3732b
    Marcelo Tosatti authored
    Under testing, count_writable_mappings returns a value that is 2 integers
    larger than what count_rmaps returns.
    
    Suspicion is that either of the two functions is counting a duplicate (either
    positively or negatively).
    
    Modifying check_writable_mappings_rmap to check for rmap existance on
    all present MMU pages fails to trigger an error, which should keep Avi
    happy.
    
    Also introduce mmu_spte_walk to invoke a callback on all present sptes visible
    to the current vcpu, might be useful in the future.
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    08a3732b
mmu.c 77.2 KB