[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/xen: Mark legacy Xen backends as hotpluggable



On 11/16/26 03:56, Peng Fan (OSS) wrote:

> diff --git a/hw/xen/xen-legacy-backend.c b/hw/xen/xen-legacy-backend.c
> index 7977b527127..bf4396c9460 100644
> --- a/hw/xen/xen-legacy-backend.c
> +++ b/hw/xen/xen-legacy-backend.c
> @@ -640,6 +640,13 @@ static void xendev_class_init(ObjectClass *klass, const 
> void *data)
>       DeviceClass *dc = DEVICE_CLASS(klass);
>   
>       set_bit(DEVICE_CATEGORY_MISC, dc->categories);
> +    /*
> +     * Legacy Xen backends are created and destroyed dynamically from
> +     * xenstore at runtime, after the machine has been initialized.
> +     * TYPE_DYNAMIC_SYS_BUS_DEVICE marks devices as not hotpluggable,
> +     * so override that here.
> +     */
> +    dc->hotpluggable = true;
>       dc->bus_type = TYPE_XENSYSBUS;
>   }
>   

This also fixes the legacy vfb/vkbd backends with -machine xenpv 
(qemu-system-i386 -xen-attach -machine xenpv -vga xenfb) on an arm64 Xen 
4.21 host. Without this fix QEMU exits with "Device 'xen-backend' does 
not support hotplugging" as soon as the backends are created from 
xenstore. Tested on top of QEMU 10.1.0 with an arm64 Debian 13 guest 
(xen-fbfront/xen-kbdfront).

Tested-by: Julian Vetter <julian.vetter@xxxxxxxxxx>

> 
> ---
> base-commit: e9fa1f66f0d47c74b6766e1b8b87ad7c2a9394d5
> change-id: 20261116-qemu-xen-usb-1a36b002a561
> 
> Best regards,
> --
> Peng Fan <peng.fan@xxxxxxx>
> 
> 



--
Julian Vetter | Vates Hypervisor & Kernel Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.