]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386/xen: Initialize XenBus and legacy backends from pc_init1() xenfv-kvm-backends-1
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 10 Jan 2023 08:01:47 +0000 (08:01 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 10 Jan 2023 11:51:42 +0000 (11:51 +0000)
commite607b6ac55db5fc139a88a0b9921a011df1ae3b2
treecbca5426cba2b611cb77422c302dc891de1912a1
parent9876d916b71c7c165feec6a8aa1059a4992c6243
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