Re: [libvirt] [PATCH 3/3] Introduce UPDATE_CPU flag for virDomainGetXMLDesc

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

 



> >  typedef enum {
> > -    VIR_DOMAIN_XML_SECURE = 1, /* dump security sensitive information too */
> > -    VIR_DOMAIN_XML_INACTIVE = 2/* dump inactive domain information */
> > +    VIR_DOMAIN_XML_SECURE       = (1 << 0), /* dump security sensitive information too */
> > +    VIR_DOMAIN_XML_INACTIVE     = (1 << 1), /* dump inactive domain information */
> > +    VIR_DOMAIN_XML_UPDATE_CPU   = (1 << 2), /* update guest CPU requirements to match the CPU the guest is currently running on */
> >  } virDomainXMLFlags;
> 
> Somehow this is not an enum anymore since we logically or the values, but it
> is not a serious problem.

It's been so for ever. This visual renumbering just makes it more visible to
avoid adding new item with inappropriate value.

Jirka

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