]> www.infradead.org Git - users/dwmw2/qemu.git/commit
xen: register legacy backends via xen_backend_init
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 May 2024 17:00:38 +0000 (19:00 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 May 2024 13:45:15 +0000 (15:45 +0200)
commit88f5ed7017897bc3108463e75e3b4828032a3992
tree1d155866026dc00400fe880de86e0d4bbe57fd69
parent0973996fe47bfca8f0bf552728e36682d642c9cc
xen: register legacy backends via xen_backend_init

It is okay to register legacy backends in the middle of xen_bus_init().
All that the registration does is record the existence of the backend
in xenstore.

This makes it possible to remove them from the build without introducing
undefined symbols in xen_be_init().  It also removes the need for the
backend_register callback, whose only purpose is to avoid registering
nonfunctional backends.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240509170044.190795-8-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/9pfs/xen-9p-backend.c
hw/display/xenfb.c
hw/usb/xen-usb.c
hw/xen/xen-legacy-backend.c
include/hw/xen/xen-legacy-backend.h
include/hw/xen/xen_pvdev.h