KVM: PPC: Implement BAT reads
authorAlexander Graf <agraf@suse.de>
Wed, 24 Mar 2010 20:48:25 +0000 (21:48 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:03 +0000 (12:17 +0300)
commitc04a695a4484467889d0c91c2e377c6abcecd5d5
treef969b63d1064573407900150c7bca5081fbd8805
parentc664876c6d88ff8c8e93ee05c0bbdc3e4c2af488
KVM: PPC: Implement BAT reads

BATs can't only be written to, you can also read them out!
So let's implement emulation for reading BAT values again.

While at it, I also made BAT setting flush the segment cache,
so we're absolutely sure there's no MMU state left when writing
BATs.

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