hw/xen: Register framebuffer backend via xen_backend_init()
commit6ece1df96629de8e2381f06b876ceeb5fade758a
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 10 May 2024 10:18:00 +0000 (10 12:18 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 4 Jun 2024 09:53:43 +0000 (4 11:53 +0200)
tree1f11fd214e5ad7cafbf22d0acba7f727d9fc4dc8
parentd76795ea3dd412e7f4e293672170e3292ef0f7a5
hw/xen: Register framebuffer backend via xen_backend_init()

Align the framebuffer backend with the other legacy ones,
register it via xen_backend_init() when '-vga xenfb' is
used. It is safe because MODULE_INIT_XEN_BACKEND is called
in xen_bus_realize(), long after CLI processing initialized
the vga_interface_type variable.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Paul Durrant <paul@xen.org>
Message-Id: <20240510104908.76908-8-philmd@linaro.org>
hw/display/xenfb.c
hw/xenpv/xen_machine_pv.c
include/hw/xen/xen-legacy-backend.h