]> xenbits.xensource.com Git - people/pauldu/qemu.git/commit
i386/xen: Initialize XenBus and legacy backends from pc_init1()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 10 Jan 2023 08:01:47 +0000 (08:01 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 20 Jan 2023 12:28:53 +0000 (12:28 +0000)
commit270b12def73cf63f194b7d8a173039fc30ca4a5c
treeaebbf6eebbe396427c2f3c202236fc31201f1a4c
parent0e0084082eb2b392ee4f8171341497d9ad96b982
i386/xen: Initialize XenBus and legacy backends from pc_init1()

Now that we're close to being able to use the PV backends without actual
Xen, move the bus instantiation out from xen_hvm_init_pc() to pc_init1().

However, still only do it for (xen_mode == XEN_ATTACH) (i.e. when running
on true Xen) because we don't have XenStore ops for emulation yet, and
the XenBus instantiation failure is fatal. Once we have a functional
XenStore for emulated mode, this will become (xen_mode != XEN_DISABLED).

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/i386/pc_piix.c
hw/i386/xen/xen-hvm.c