Re: [PATCH v2 2/5] vz: don't add implicit devices for CTs

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

 



On Wed, Dec 21, 2016 at 10:38:49PM +0300, Maxim Nestratov wrote:
> Implicit devices like controllers are confusing for CTs and
> function virDomainDefAddImplicitDevices never intended to be called
> for CTs.
> 
> Signed-off-by: Maxim Nestratov <mnestratov@xxxxxxxxxxxxx>
> ---
>  src/vz/vz_sdk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
> index 2c8ce03..8d75399 100644
> --- a/src/vz/vz_sdk.c
> +++ b/src/vz/vz_sdk.c
> @@ -1815,7 +1815,7 @@ prlsdkLoadDomain(vzDriverPtr driver,
>      if (prlsdkGetDomainState(dom, sdkdom, &domainState) < 0)
>          goto error;
>  
> -    if (virDomainDefAddImplicitDevices(def) < 0)
> +    if (!IS_CT(def) && virDomainDefAddImplicitDevices(def) < 0)
>          goto error;
>  
>      if (def->ngraphics > 0) {

ACK

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

--
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]

  Powered by Linux