KVM: PPC: Fix dcbz emulation
authorAlexander Graf <agraf@suse.de>
Wed, 24 Mar 2010 20:48:32 +0000 (21:48 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:14 +0000 (12:17 +0300)
commit9fb244a2c215d1e16ee92cb164b7b61c8dfa3909
treec214f99be6740fe53d57a652b1b0fce6d7ba5d35
parenta2b07664f6cd14836ff84a77f48566673dca00bb
KVM: PPC: Fix dcbz emulation

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: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_64_emulate.c