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

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

 




On 09.12.2016 17:36, Maxim Nestratov wrote:
> Implicit devices like controllers are confusing for CTs as they are faked.
> Other devices like video we require to be specified explicitly.

I would drop last sentence. prlsdkApplyVideoParams shows that
we ignore video params for containers. 

Let's reword commit message as we discussed offline - virDomainDefAddImplicitDevices
is just never intended for containers.

> 
> 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 a6236d0..1030a1b 100644
> --- a/src/vz/vz_sdk.c
> +++ b/src/vz/vz_sdk.c
> @@ -1816,7 +1816,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

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