Re: [PATCH] conf: reject pci-root controllers with non-zero indexes

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

 



On 07/12/2013 07:08 AM, Ján Tomko wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=981261
> ---
>  src/conf/domain_conf.c | 7 +++++++
>  1 file changed, 7 insertions(+)

ACK

> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index 5f0366e..602c9a6 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c
> @@ -5668,6 +5668,13 @@ virDomainControllerDefParseXML(xmlNodePtr node,
>                                   "have an address"));
>                  goto error;
>              }
> +            if (def->idx != 0) {
> +                virReportError(VIR_ERR_XML_ERROR, "%s",
> +                               _("pci-root controller should have "
> +                                 "index 0"));
> +                goto error;
> +            }
> +
>          }
>  
>      default:
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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