Re: [PATCH 09/12] hw/xen: prevent duplicate device registrations

2023-10-24 Thread David Woodhouse
On Tue, 2023-10-24 at 15:10 +0100, Paul Durrant wrote: > On 16/10/2023 16:19, David Woodhouse wrote: > > --- a/hw/char/xen_console.c > > +++ b/hw/char/xen_console.c > > @@ -468,7 +468,7 @@ static void > > xen_console_device_create(XenBackendInstance *backend, > >   Chardev *cd = NULL; > >

Re: [PATCH 09/12] hw/xen: prevent duplicate device registrations

2023-10-24 Thread Paul Durrant
On 16/10/2023 16:19, David Woodhouse wrote: From: David Woodhouse Ensure that we have a XenBackendInstance for every device regardless of whether it was "discovered" in XenStore or created directly in QEMU. This allows the backend_list to be a source of truth about whether a given backend exis

[PATCH 09/12] hw/xen: prevent duplicate device registrations

2023-10-16 Thread David Woodhouse
From: David Woodhouse Ensure that we have a XenBackendInstance for every device regardless of whether it was "discovered" in XenStore or created directly in QEMU. This allows the backend_list to be a source of truth about whether a given backend exists, and allows us to reject duplicates. This