summary refs log tree commit diff stats
path: root/include/hw/xen/xen_native.h
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@amd.com>2024-09-04 19:28:06 +0200
committerEdgar E. Iglesias <edgar.iglesias@amd.com>2024-10-03 19:37:34 +0200
commitb2150e403a015762e716684a17426a9532e4af15 (patch)
treeb5f3a72938b3f4f823ac86a15d6e0efa01d28f0e /include/hw/xen/xen_native.h
parentabdfd6549d585b76a47183e611addf4d91536e0f (diff)
downloadfocaccia-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/xen_native.h')
-rw-r--r--include/hw/xen/xen_native.h3
1 files changed, 2 insertions, 1 deletions
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) {