]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/xen: Subsume xen_be_register_common() into xen_be_init() xenfv-kvm-13
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 15 Feb 2023 15:05:26 +0000 (16:05 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 22 Feb 2023 16:25:12 +0000 (16:25 +0000)
commit01676d60d932c81a75af37f5bd395f30c9047961
treec48c637e2ba94163a5434c731f3ec05006edb295
parent65d63111d1b0b17b95f1d56350a15f90020454d1
hw/xen: Subsume xen_be_register_common() into xen_be_init()

Every caller of xen_be_init() checks and exits on error, then calls
xen_be_register_common(). Just make xen_be_init() abort for itself and
return void, and register the common devices too.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/xen/xen-hvm.c
hw/xen/xen-legacy-backend.c
hw/xenpv/xen_machine_pv.c
include/hw/xen/xen-legacy-backend.h