diff options
| author | Edgar E. Iglesias <edgar.iglesias@amd.com> | 2024-09-04 19:28:06 +0200 |
|---|---|---|
| committer | Edgar E. Iglesias <edgar.iglesias@amd.com> | 2024-10-03 19:37:34 +0200 |
| commit | b2150e403a015762e716684a17426a9532e4af15 (patch) | |
| tree | b5f3a72938b3f4f823ac86a15d6e0efa01d28f0e /include/hw/xen | |
| parent | abdfd6549d585b76a47183e611addf4d91536e0f (diff) | |
| download | focaccia-qemu-b2150e403a015762e716684a17426a9532e4af15.tar.gz focaccia-qemu-b2150e403a015762e716684a17426a9532e4af15.zip | |
hw/xen: Expose handle_bufioreq in xen_register_ioreq
Expose handle_bufioreq in xen_register_ioreq(). This is to allow machines to enable or disable buffered ioreqs. No functional change since all callers still set it to HVM_IOREQSRV_BUFIOREQ_ATOMIC. Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Diffstat (limited to 'include/hw/xen')
| -rw-r--r-- | include/hw/xen/xen-hvm-common.h | 3 | ||||
| -rw-r--r-- | include/hw/xen/xen_native.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/hw/xen/xen-hvm-common.h b/include/hw/xen/xen-hvm-common.h index 3d796235dc..0f586c4384 100644 --- a/include/hw/xen/xen-hvm-common.h +++ b/include/hw/xen/xen-hvm-common.h @@ -81,6 +81,8 @@ typedef struct XenIOState { QLIST_HEAD(, XenPciDevice) dev_list; DeviceListener device_listener; + bool has_bufioreq; + Notifier exit; } XenIOState; @@ -95,6 +97,7 @@ void xen_device_unrealize(DeviceListener *listener, DeviceState *dev); void xen_hvm_change_state_handler(void *opaque, bool running, RunState rstate); void xen_register_ioreq(XenIOState *state, unsigned int max_cpus, + uint8_t handle_bufioreq, const MemoryListener *xen_memory_listener); void cpu_ioreq_pio(ioreq_t *req); diff --git a/include/hw/xen/xen_native.h b/include/hw/xen/xen_native.h index 1a5ad693a4..5caf91a616 100644 --- a/include/hw/xen/xen_native.h +++ b/include/hw/xen/xen_native.h @@ -464,10 +464,11 @@ static inline void xen_unmap_pcidev(domid_t dom, } static inline int xen_create_ioreq_server(domid_t dom, + int handle_bufioreq, ioservid_t *ioservid) { int rc = xendevicemodel_create_ioreq_server(xen_dmod, dom, - HVM_IOREQSRV_BUFIOREQ_ATOMIC, + handle_bufioreq, ioservid); if (rc == 0) { |