pkgsrc/sysutils/xentools42/patches/patch-python_xen_xend_XendNode.py
spz fcf436606c Apply patches for XSA-128 to XSA-140 from upstream
do a patch refresh in xentools42

rather than split the patches for pass-through.c over 5 files, delete
xentools42/patches/patch-CVE-2015-2756 and assemble all in
xentools42/patches/patch-qemu-xen-traditional_hw_pass-through.c
2015-08-23 16:17:12 +00:00

56 lines
2.9 KiB
Python

$NetBSD: patch-python_xen_xend_XendNode.py,v 1.2 2015/08/23 16:17:12 spz Exp $
--- python/xen/xend/XendNode.py.orig 2014-09-02 06:22:57.000000000 +0000
+++ python/xen/xend/XendNode.py
@@ -279,28 +279,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 _init_PSCSIs(self):
# Initialise PSCSIs and PSCSI_HBAs