mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ppc/xive: Add support for PQ state bits offload
The trigger message coming from a HW source contains a special bit informing the XIVE interrupt controller that the PQ bits have been checked at the source or not. Depending on the value, the IC can perform the check and the state transition locally using its own PQ state bits. The following changes add new accessors to the XiveRouter required to query and update the PQ state bits. This only applies to the PowerNV machine. sPAPR accessors are provided but the pSeries machine should not be concerned by such complex configuration for the moment. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
aadf13abaa
commit
0aa2612a01
9 changed files with 199 additions and 21 deletions
|
@ -31,6 +31,10 @@ typedef struct Xive2RouterClass {
|
|||
/* XIVE table accessors */
|
||||
int (*get_eas)(Xive2Router *xrtr, uint8_t eas_blk, uint32_t eas_idx,
|
||||
Xive2Eas *eas);
|
||||
int (*get_pq)(Xive2Router *xrtr, uint8_t eas_blk, uint32_t eas_idx,
|
||||
uint8_t *pq);
|
||||
int (*set_pq)(Xive2Router *xrtr, uint8_t eas_blk, uint32_t eas_idx,
|
||||
uint8_t *pq);
|
||||
int (*get_end)(Xive2Router *xrtr, uint8_t end_blk, uint32_t end_idx,
|
||||
Xive2End *end);
|
||||
int (*write_end)(Xive2Router *xrtr, uint8_t end_blk, uint32_t end_idx,
|
||||
|
@ -53,7 +57,7 @@ int xive2_router_get_nvp(Xive2Router *xrtr, uint8_t nvp_blk, uint32_t nvp_idx,
|
|||
int xive2_router_write_nvp(Xive2Router *xrtr, uint8_t nvp_blk, uint32_t nvp_idx,
|
||||
Xive2Nvp *nvp, uint8_t word_number);
|
||||
|
||||
void xive2_router_notify(XiveNotifier *xn, uint32_t lisn);
|
||||
void xive2_router_notify(XiveNotifier *xn, uint32_t lisn, bool pq_checked);
|
||||
|
||||
/*
|
||||
* XIVE2 Presenter (POWER10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue