KVM: PPC: e500mc: Add doorbell emulation support
authorAlexander Graf <agraf@suse.de>
Wed, 15 Feb 2012 13:28:48 +0000 (13:28 +0000)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:54:50 +0000 (12:54 +0300)
commit4ab969199ec6a14604ceaffb21fe78cc4881d3b8
tree9686269b554aaed9f195cff043fd737ec67b024e
parent73196cd364a2d972d73fa08da9d81ca3215bed68
KVM: PPC: e500mc: Add doorbell emulation support

When one vcpu wants to kick another, it can issue a special IPI instruction
called msgsnd. This patch emulates this instruction, its clearing counterpart
and the infrastructure required to actually trigger that interrupt inside
a guest vcpu.

With this patch, SMP guests on e500mc work.

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