On 9/5/24 19:00, Paolo Bonzini wrote:
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 <pbonz...@redhat.com>
---
  include/hw/xen/xen-legacy-backend.h | 14 ++------------
  include/hw/xen/xen_pvdev.h          |  1 -
  hw/9pfs/xen-9p-backend.c            |  8 +++++++-
  hw/display/xenfb.c                  |  8 +++++++-
  hw/usb/xen-usb.c                    | 14 ++++----------
  hw/xen/xen-legacy-backend.c         | 16 ----------------
  6 files changed, 20 insertions(+), 41 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to