mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 00:01:55 +00:00
conf: Rename virDomainPCIAddressSet.areMultipleRootsSupported
We're going to add a similarly-named attribute later, and we'd like to be consistent. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
d47de9e698
commit
33b2df2795
@ -413,7 +413,7 @@ virDomainPCIAddressSetGrow(virDomainPCIAddressSetPtr addrs,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (flags & VIR_PCI_CONNECT_TYPE_PCI_DEVICE) {
|
if (flags & VIR_PCI_CONNECT_TYPE_PCI_DEVICE) {
|
||||||
if (addrs->multipleRootsSupported) {
|
if (addrs->areMultipleRootsSupported) {
|
||||||
/* Use a pci-root controller to expand the guest's PCI
|
/* Use a pci-root controller to expand the guest's PCI
|
||||||
* topology if it supports having more than one */
|
* topology if it supports having more than one */
|
||||||
model = VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT;
|
model = VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT;
|
||||||
|
@ -115,7 +115,7 @@ struct _virDomainPCIAddressSet {
|
|||||||
bool dryRun; /* on a dry run, new buses are auto-added
|
bool dryRun; /* on a dry run, new buses are auto-added
|
||||||
and addresses aren't saved in device infos */
|
and addresses aren't saved in device infos */
|
||||||
/* If true, the guest can have multiple pci-root controllers */
|
/* If true, the guest can have multiple pci-root controllers */
|
||||||
bool multipleRootsSupported;
|
bool areMultipleRootsSupported;
|
||||||
};
|
};
|
||||||
typedef struct _virDomainPCIAddressSet virDomainPCIAddressSet;
|
typedef struct _virDomainPCIAddressSet virDomainPCIAddressSet;
|
||||||
typedef virDomainPCIAddressSet *virDomainPCIAddressSetPtr;
|
typedef virDomainPCIAddressSet *virDomainPCIAddressSetPtr;
|
||||||
|
@ -1353,7 +1353,7 @@ qemuDomainPCIAddressSetCreate(virDomainDefPtr def,
|
|||||||
|
|
||||||
/* pSeries domains support multiple pci-root controllers */
|
/* pSeries domains support multiple pci-root controllers */
|
||||||
if (qemuDomainIsPSeries(def))
|
if (qemuDomainIsPSeries(def))
|
||||||
addrs->multipleRootsSupported = true;
|
addrs->areMultipleRootsSupported = true;
|
||||||
|
|
||||||
for (i = 0; i < def->ncontrollers; i++) {
|
for (i = 0; i < def->ncontrollers; i++) {
|
||||||
virDomainControllerDefPtr cont = def->controllers[i];
|
virDomainControllerDefPtr cont = def->controllers[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user