|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] hw/xen: Mark legacy Xen backends as hotpluggable
On Mon, 16 Nov 2026, Julian Vetter wrote: > 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> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |