|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [RFC PATCH v2 12/13] wip: fastabi: Add evtchn_status helpers in struct
Could be used for convertion between fastabi and structs for helpers.
Signed-off-by: Teddy Astie <teddy.astie@xxxxxxxxxx>
---
Cc: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
Cc: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
A guest can use this to easily convert a struct to registers by
taking _output1 and _output2 into registers 6 and 7.
xen/include/public/event_channel.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/xen/include/public/event_channel.h
b/xen/include/public/event_channel.h
index c5548d206c..dab907f796 100644
--- a/xen/include/public/event_channel.h
+++ b/xen/include/public/event_channel.h
@@ -208,10 +208,15 @@ struct evtchn_status {
} unbound; /* EVTCHNSTAT_unbound */
struct {
domid_t dom;
+ uint16_t _pad;
evtchn_port_t port;
} interdomain; /* EVTCHNSTAT_interdomain */
uint32_t pirq; /* EVTCHNSTAT_pirq */
uint32_t virq; /* EVTCHNSTAT_virq */
+ struct {
+ uint32_t _output1;
+ uint32_t _output2;
+ } raw;
} u;
};
typedef struct evtchn_status evtchn_status_t;
--
2.56.1
--
Teddy Astie | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |