diff options
author | Alexander Graf <agraf@suse.de> | 2012-02-15 08:28:48 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:54:50 -0400 |
commit | 4ab969199ec6a14604ceaffb21fe78cc4881d3b8 (patch) | |
tree | 9686269b554aaed9f195cff043fd737ec67b024e /arch/powerpc/include | |
parent | 73196cd364a2d972d73fa08da9d81ca3215bed68 (diff) |
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>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/dbell.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/dbell.h b/arch/powerpc/include/asm/dbell.h index d7365b01f0c4..154c067761b1 100644 --- a/arch/powerpc/include/asm/dbell.h +++ b/arch/powerpc/include/asm/dbell.h | |||
@@ -19,7 +19,9 @@ | |||
19 | 19 | ||
20 | #define PPC_DBELL_MSG_BRDCAST (0x04000000) | 20 | #define PPC_DBELL_MSG_BRDCAST (0x04000000) |
21 | #define PPC_DBELL_TYPE(x) (((x) & 0xf) << (63-36)) | 21 | #define PPC_DBELL_TYPE(x) (((x) & 0xf) << (63-36)) |
22 | #define PPC_DBELL_TYPE_MASK PPC_DBELL_TYPE(0xf) | ||
22 | #define PPC_DBELL_LPID(x) ((x) << (63 - 49)) | 23 | #define PPC_DBELL_LPID(x) ((x) << (63 - 49)) |
24 | #define PPC_DBELL_PIR_MASK 0x3fff | ||
23 | enum ppc_dbell { | 25 | enum ppc_dbell { |
24 | PPC_DBELL = 0, /* doorbell */ | 26 | PPC_DBELL = 0, /* doorbell */ |
25 | PPC_DBELL_CRIT = 1, /* critical doorbell */ | 27 | PPC_DBELL_CRIT = 1, /* critical doorbell */ |