Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Created March 31, 2012 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinktainer/2266335 to your computer and use it in GitHub Desktop.
Save thinktainer/2266335 to your computer and use it in GitHub Desktop.
xend patch for inspiron with optimus gfx card
--- /root/pci.py 2012-03-31 16:36:52.633262092 +0100
+++ /usr/lib/xen-4.1/lib/python/xen/util/pci.py 2012-03-31 16:41:00.057262001 +0100
@@ -1266,7 +1266,12 @@
pass
def get_info_from_sysfs(self):
- self.find_capability(0x11)
+ try:
+ self.find_capability(0x11)
+ except PciDeviceParseError, err:
+ log.error("Caught '%s'" % err)
+ return False
+
sysfs_mnt = find_sysfs_mnt()
if sysfs_mnt == None:
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment