• P
    KVM: PPC: Book3S HV: Fix bug causing loss of page dirty state · 4879f241
    Paul Mackerras 提交于
    This fixes a bug where adding a new guest HPT entry via the H_ENTER
    hcall would lose the "changed" bit in the reverse map information
    for the guest physical page being mapped.  The result was that the
    KVM_GET_DIRTY_LOG could return a zero bit for the page even though
    the page had been modified by the guest.
    
    This fixes it by only modifying the index and present bits in the
    reverse map entry, thus preserving the reference and change bits.
    We were also unnecessarily setting the reference bit, and this
    fixes that too.
    Signed-off-by: NPaul Mackerras <paulus@samba.org>
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    4879f241
book3s_hv_rm_mmu.c 22.4 KB