mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
target/ppc: add support for hypervisor doorbells on book3s CPUs
The hypervisor doorbells are used by skiboot and Linux on POWER9 processors to wake up secondaries. This adds processor control support to the Server architecture by reusing the Embedded support. They are very similar, only the bits definition of the CPU identifier differ. Still to be done is message broadcast to all threads of the same processor. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
3a14ba4664
commit
7af1e7b022
5 changed files with 84 additions and 5 deletions
|
@ -930,7 +930,7 @@ enum {
|
|||
#define BOOKE206_MAX_TLBN 4
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Embedded.Processor Control */
|
||||
/* Server and Embedded Processor Control */
|
||||
|
||||
#define DBELL_TYPE_SHIFT 27
|
||||
#define DBELL_TYPE_MASK (0x1f << DBELL_TYPE_SHIFT)
|
||||
|
@ -940,11 +940,15 @@ enum {
|
|||
#define DBELL_TYPE_G_DBELL_CRIT (0x03 << DBELL_TYPE_SHIFT)
|
||||
#define DBELL_TYPE_G_DBELL_MC (0x04 << DBELL_TYPE_SHIFT)
|
||||
|
||||
#define DBELL_BRDCAST (1 << 26)
|
||||
#define DBELL_TYPE_DBELL_SERVER (0x05 << DBELL_TYPE_SHIFT)
|
||||
|
||||
#define DBELL_BRDCAST PPC_BIT(37)
|
||||
#define DBELL_LPIDTAG_SHIFT 14
|
||||
#define DBELL_LPIDTAG_MASK (0xfff << DBELL_LPIDTAG_SHIFT)
|
||||
#define DBELL_PIRTAG_MASK 0x3fff
|
||||
|
||||
#define DBELL_PROCIDTAG_MASK PPC_BITMASK(44, 63)
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Segment page size information, used by recent hash MMUs
|
||||
* The format of this structure mirrors kvm_ppc_smmu_info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue