Created
December 21, 2015 13:19
-
-
Save jrziviani/1da184c7fd0b413e0426 to your computer and use it in GitHub Desktop.
multifunction support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
src/conf/domain_addr.c | 13 ++----------- | |
1 file changed, 2 insertions(+), 11 deletions(-) | |
diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c | |
index ca5803e..e509092 100644 | |
--- a/src/conf/domain_addr.c | |
+++ b/src/conf/domain_addr.c | |
@@ -394,21 +394,12 @@ virDomainPCIAddressEnsureAddr(virDomainPCIAddressSetPtr addrs, | |
¦ ¦goto cleanup; | |
¦if (dev->type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI) { | |
- /* We do not support hotplug multi-function PCI device now, so we should | |
- * reserve the whole slot. The function of the PCI device must be 0. | |
- */ | |
- if (dev->addr.pci.function != 0) { | |
- virReportError(VIR_ERR_INTERNAL_ERROR, "%s", | |
- _("Only PCI device addresses with function=0" | |
- " are supported")); | |
- goto cleanup; | |
- } | |
- | |
¦ ¦if (!virDomainPCIAddressValidate(addrs, &dev->addr.pci, | |
¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ addrStr, flags, true)) | |
¦ ¦ ¦goto cleanup; | |
- ret = virDomainPCIAddressReserveSlot(addrs, &dev->addr.pci, flags); | |
+ //ret = virDomainPCIAddressReserveSlot(addrs, &dev->addr.pci, flags); | |
+ ret = virDomainPCIAddressReserveAddr(addrs, &dev->addr.pci, flags, false, false); | |
¦} else { | |
¦ ¦ret = virDomainPCIAddressReserveNextSlot(addrs, dev, flags); | |
¦} | |
-- | |
1.9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment