Re: [PATCH] libxl: set dom0 state to running

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

 



On 09.07.2015 23:26, Jim Fehlig wrote:
> Commit 45697fe5 added dom0 to driver->domains, but missed
> setting its state to 'running'
> 
>> virsh list
>  Id    Name                           State
> ----------------------------------------------------
>  0     Domain-0                       shut off
> 
> Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx>
> ---
>  src/libxl/libxl_driver.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
> index e72b12d..5f69b49 100644
> --- a/src/libxl/libxl_driver.c
> +++ b/src/libxl/libxl_driver.c
> @@ -549,6 +549,7 @@ libxlAddDom0(libxlDriverPrivatePtr driver)
>  
>      def = NULL;
>  
> +    virDomainObjSetState(vm, VIR_DOMAIN_RUNNING, VIR_DOMAIN_RUNNING_BOOTED);
>      vm->def->vcpus = d_info.vcpu_online;
>      vm->def->maxvcpus = d_info.vcpu_max_id + 1;
>      vm->def->mem.cur_balloon = d_info.current_memkb;
> 

D'oh!

ACK

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]