[PATCH] xen: Don't add dom0 twice on driver reload
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
> 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>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: not available
More information about the libvir-list