[PATCH] xen: Don't add dom0 twice on driver reload

Ján Tomko jtomko at redhat.com
Wed Sep 23 17:18:57 UTC 2020


On a Friday in 2020, Jim Fehlig wrote:
>When the xen driver loads, it probes libxl for some info about dom0 and
>adds it to the virDomainObjList. The driver then looks for any domains
>in stateDir and if they are still alive adds them to the list as well.
>This logic is a bit flawed wrt handling driver reload and causes the
>following error
>
>  internal error: unexpected domain Domain-0 already exists
>
>A simple fix is to load all domains from stateDir first and then only
>add dom0 if needed.
>
>Signed-off-by: Jim Fehlig <jfehlig at suse.com>
>---
> src/libxl/libxl_driver.c | 46 +++++++++++++++++++++++-----------------
> 1 file changed, 26 insertions(+), 20 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200923/664c3394/attachment-0001.sig>


More information about the libvir-list mailing list