KVM: PPC: Implement alignment interrupt
authorAlexander Graf <agraf@suse.de>
Wed, 24 Mar 2010 20:48:28 +0000 (21:48 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:07 +0000 (12:17 +0300)
commitca7f4203b9b66e12d0d9968ff7dfe781f3a9695a
treeddec3225d7f7a2ab2d0cdaf4ff55725e547206d1
parent1c85e73303fa70cd6bc2bf138484acb4ffe30efd
KVM: PPC: Implement alignment interrupt

Mac OS X has some applications - namely the Finder - that require alignment
interrupts to work properly. So we need to implement them.

But the spec for 970 and 750 also looks different. While 750 requires the
DSISR and DAR fields to reflect some instruction bits (DSISR) and the fault
address (DAR), the 970 declares this as an optional feature. So we need
to reconstruct DSISR and DAR manually.

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