Skip to content

Commit b6f0bcc

Browse files
Shannon ZhaoDavid Vrabel
authored andcommitted
Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen
Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit <ca5c54b6ff05> (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Tested-by: Julien Grall <julien.grall@arm.com>
1 parent 5789afe commit b6f0bcc

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

‎include/xen/interface/hvm/params.h‎

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,31 @@
2727
* Parameter space for HVMOP_{set,get}_param.
2828
*/
2929

30+
#define HVM_PARAM_CALLBACK_IRQ 0
3031
/*
3132
* How should CPU0 event-channel notifications be delivered?
32-
* val[63:56] == 0: val[55:0] is a delivery GSI (Global System Interrupt).
33-
* val[63:56] == 1: val[55:0] is a delivery PCI INTx line, as follows:
34-
* Domain = val[47:32], Bus = val[31:16],
35-
* DevFn = val[15: 8], IntX = val[ 1: 0]
36-
* val[63:56] == 2: val[7:0] is a vector number.
33+
*
3734
* If val == 0 then CPU0 event-channel notifications are not delivered.
35+
* If val != 0, val[63:56] encodes the type, as follows:
36+
*/
37+
38+
#define HVM_PARAM_CALLBACK_TYPE_GSI 0
39+
/*
40+
* val[55:0] is a delivery GSI. GSI 0 cannot be used, as it aliases val == 0,
41+
* and disables all notifications.
42+
*/
43+
44+
#define HVM_PARAM_CALLBACK_TYPE_PCI_INTX 1
45+
/*
46+
* val[55:0] is a delivery PCI INTx line:
47+
* Domain = val[47:32], Bus = val[31:16] DevFn = val[15:8], IntX = val[1:0]
48+
*/
49+
50+
#define HVM_PARAM_CALLBACK_TYPE_VECTOR 2
51+
/*
52+
* val[7:0] is a vector number. Check for XENFEAT_hvm_callback_vector to know
53+
* if this delivery method is available.
3854
*/
39-
#define HVM_PARAM_CALLBACK_IRQ 0
4055

4156
#define HVM_PARAM_STORE_PFN 1
4257
#define HVM_PARAM_STORE_EVTCHN 2

0 commit comments

Comments
 (0)