• Alexander Graf's avatar
    KVM: PPC: Fix dcbz emulation · 9fb244a2
    Alexander Graf authored
    On most systems we need to emulate dcbz when running 32 bit guests. So
    far we've been rather slack, not giving correct DSISR values to the guest.
    
    This patch makes the emulation more accurate, introducing a difference
    between "page not mapped" and "write protection fault". While at it, it
    also speeds up dcbz emulation by an order of magnitude by using kmap.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    9fb244a2
book3s_64_emulate.c 13.1 KB