hw/xenpv: Initialize Xen backend operations
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 23 Mar 2023 10:57:34 +0000 (10:57 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 24 Mar 2023 14:52:14 +0000 (14:52 +0000)
As the Xen backend operations were abstracted out into a function table to
allow for internally emulated Xen support, we missed the xen_init_pv()
code path which also needs to install the operations for the true Xen
libraries. Add the missing call to setup_xen_backend_ops().

Fixes: b6cacfea0b38 ("hw/xen: Add evtchn operations to allow redirection to internal emulation")
Reported-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Tested-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <5dfb65342d4502c1ce2f890c97cff20bf25b3860.camel@infradead.org>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
hw/xenpv/xen_machine_pv.c

index 2e759d0619c6619e0365f9e2bf11bcaac113c474..17cda5ec13a586dbdbc86936cbd7e862b9e41790 100644 (file)
@@ -35,6 +35,8 @@ static void xen_init_pv(MachineState *machine)
     DriveInfo *dinfo;
     int i;
 
+    setup_xen_backend_ops();
+
     /* Initialize backend core & drivers */
     xen_be_init();