2013-09-26 17:14:40 +02:00

57 lines
2.9 KiB
Plaintext

$NetBSD: patch-bj,v 1.1.1.1 2008/08/07 20:26:58 cegger Exp $
--- python/xen/xend/XendNode.py.orig 2008-08-01 14:38:07.000000000 +0000
+++ python/xen/xend/XendNode.py
@@ -245,28 +245,29 @@ class XendNode:
except KeyError:
pass
- for pci_dev in PciUtil.get_all_pci_devices():
- ppci_record = {
- 'domain': pci_dev.domain,
- 'bus': pci_dev.bus,
- 'slot': pci_dev.slot,
- 'func': pci_dev.func,
- 'vendor_id': pci_dev.vendor,
- 'vendor_name': pci_dev.vendorname,
- 'device_id': pci_dev.device,
- 'device_name': pci_dev.devicename,
- 'revision_id': pci_dev.revision,
- 'class_code': pci_dev.classcode,
- 'class_name': pci_dev.classname,
- 'subsystem_vendor_id': pci_dev.subvendor,
- 'subsystem_vendor_name': pci_dev.subvendorname,
- 'subsystem_id': pci_dev.subdevice,
- 'subsystem_name': pci_dev.subdevicename,
- 'driver': pci_dev.driver
- }
- # If saved uuid exists, use it. Otherwise create one.
- ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString())
- XendPPCI(ppci_uuid, ppci_record)
+ pass
+ #for pci_dev in PciUtil.get_all_pci_devices():
+ # ppci_record = {
+ # 'domain': pci_dev.domain,
+ # 'bus': pci_dev.bus,
+ # 'slot': pci_dev.slot,
+ # 'func': pci_dev.func,
+ # 'vendor_id': pci_dev.vendor,
+ # 'vendor_name': pci_dev.vendorname,
+ # 'device_id': pci_dev.device,
+ # 'device_name': pci_dev.devicename,
+ # 'revision_id': pci_dev.revision,
+ # 'class_code': pci_dev.classcode,
+ # 'class_name': pci_dev.classname,
+ # 'subsystem_vendor_id': pci_dev.subvendor,
+ # 'subsystem_vendor_name': pci_dev.subvendorname,
+ # 'subsystem_id': pci_dev.subdevice,
+ # 'subsystem_name': pci_dev.subdevicename,
+ # 'driver': pci_dev.driver
+ # }
+ # # If saved uuid exists, use it. Otherwise create one.
+ # ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString())
+ # XendPPCI(ppci_uuid, ppci_record)
## def network_destroy(self, net_uuid):