diff options
author | Alexander Graf <agraf@suse.de> | 2012-02-15 13:28:48 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 09:54:50 (GMT) |
commit | 4ab969199ec6a14604ceaffb21fe78cc4881d3b8 (patch) | |
tree | 9686269b554aaed9f195cff043fd737ec67b024e /arch/powerpc/include | |
parent | 73196cd364a2d972d73fa08da9d81ca3215bed68 (diff) | |
download | linux-fsl-qoriq-4ab969199ec6a14604ceaffb21fe78cc4881d3b8.tar.xz |
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 d7365b0..154c067 100644 --- a/arch/powerpc/include/asm/dbell.h +++ b/arch/powerpc/include/asm/dbell.h @@ -19,7 +19,9 @@ #define PPC_DBELL_MSG_BRDCAST (0x04000000) #define PPC_DBELL_TYPE(x) (((x) & 0xf) << (63-36)) +#define PPC_DBELL_TYPE_MASK PPC_DBELL_TYPE(0xf) #define PPC_DBELL_LPID(x) ((x) << (63 - 49)) +#define PPC_DBELL_PIR_MASK 0x3fff enum ppc_dbell { PPC_DBELL = 0, /* doorbell */ PPC_DBELL_CRIT = 1, /* critical doorbell */ |