diff options
author | Cédric Le Goater <clg@kaod.org> | 2019-02-25 11:09:51 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-28 15:24:12 +1100 |
commit | bbcbbd3e071ffe654596ce19ddf8d99b4176bbc3 (patch) | |
tree | 613067df22ff1fee86846187b04e224bef609fd0 /include/opal-api.h | |
parent | 84aa25921a09c7c6b703cf56a9396e2d55d49223 (diff) | |
download | skiboot-bbcbbd3e071ffe654596ce19ddf8d99b4176bbc3.zip skiboot-bbcbbd3e071ffe654596ce19ddf8d99b4176bbc3.tar.gz skiboot-bbcbbd3e071ffe654596ce19ddf8d99b4176bbc3.tar.bz2 |
xive: Add calls to save/restore the queues and VPs HW state
To be able to support migration of guests using the XIVE native
exploitation mode, (where the queue is effectively owned by the
guest), KVM needs to be able to save and restore the HW-modified
fields of the queue, such as the current queue producer pointer and
generation bit, and to retrieve the modified thread context registers
of the VP from the NVT structure : the VP interrupt pending bits.
However, there is no need to set back the NVT structure on P9. P10
should be the same.
Based on previous work from BenH.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include/opal-api.h')
-rw-r--r-- | include/opal-api.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/opal-api.h b/include/opal-api.h index 73f86f9..0324110 100644 --- a/include/opal-api.h +++ b/include/opal-api.h @@ -199,8 +199,8 @@ #define OPAL_XIVE_FREE_IRQ 140 #define OPAL_XIVE_SYNC 141 #define OPAL_XIVE_DUMP 142 -#define OPAL_XIVE_RESERVED3 143 -#define OPAL_XIVE_RESERVED4 144 +#define OPAL_XIVE_GET_QUEUE_STATE 143 /* Get END state */ +#define OPAL_XIVE_SET_QUEUE_STATE 144 /* Set END state */ #define OPAL_SIGNAL_SYSTEM_RESET 145 #define OPAL_NPU_INIT_CONTEXT 146 #define OPAL_NPU_DESTROY_CONTEXT 147 @@ -226,7 +226,8 @@ #define OPAL_NX_COPROC_INIT 167 #define OPAL_NPU_SET_RELAXED_ORDER 168 #define OPAL_NPU_GET_RELAXED_ORDER 169 -#define OPAL_LAST 169 +#define OPAL_XIVE_GET_VP_STATE 170 /* Get NVT state */ +#define OPAL_LAST 170 #define QUIESCE_HOLD 1 /* Spin all calls at entry */ #define QUIESCE_REJECT 2 /* Fail all calls with OPAL_BUSY */ |