mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #3028: Fix PCI device assignment
This commit is contained in:
parent
67ec62e0d4
commit
17f2380e40
@ -76,10 +76,10 @@ bool HostSharePCI::test_set(unsigned int vendor_id, unsigned int device_id,
|
||||
{
|
||||
PCIDevice * dev = it->second;
|
||||
|
||||
if (dev->class_id == class_id &&
|
||||
dev->vendor_id == vendor_id &&
|
||||
dev->device_id == device_id &&
|
||||
dev->vmid == -1 &&
|
||||
if ((class_id == 0 || dev->class_id == class_id) &&
|
||||
(vendor_id == 0 || dev->vendor_id == vendor_id) &&
|
||||
(device_id == 0 || dev->device_id == device_id) &&
|
||||
dev->vmid == -1 &&
|
||||
assigned.find(dev->address) == assigned.end())
|
||||
{
|
||||
assigned.insert(dev->address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user