Re: [PATCH v3 15/26] qemu: Automatically pick target index and model for pci-root controllers

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

 



On Mon, 2017-06-26 at 14:19 +0530, Shivaprasad bhat wrote:
> > 
> > +/**
> > + * qemuDomainAddressFindNewTargetIndex:
> > + * @def: domain definition
> > + *
> > + * Find a target index that can be used for a PCI controller.
> > + *
> > + * Returns: an unused target index, or -1 if all available target
> > + *          indexes are already taken.
> > + */
> > +static int
> > +qemuDomainAddressFindNewTargetIndex(virDomainDefPtr def)
>  
> May be rename to qemuDomainAddressFindNewPCIRootTargetIndex ?

The name's pretty long as it is, but you're right that the
function is only called for PCI Root controllers and embeds
knowledge about spapr-pci-host-bridge. I'll think about it.

-- 
Andrea Bolognani / Red Hat / Virtualization

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