search for: converttodevicenumber

Displaying 2 results from an estimated 2 matches for "converttodevicenumber".

2013 May 24
3
[BUG, PATCH] xen-4.1-3 xend/XendDomainInfo.py#device_configure() TypeError
...39;vbd'' and dev_type != ''tap'' and dev_type != ''tap2'': continue dev = sxp.child_value(dev_info, ''dev'') dev = dev.split('':'')[0] dev = self.getDeviceController(dev_type).convertToDeviceNumber(dev) if devid == dev: return dev_info After applying the attached patch, I can successfully change the media using libvirt: # virsh change-media ucs31-64-hvm hda --eject --live --config # virsh change-media ucs31-64-hvm hda /var/lib/libvirt/images/UCS_3.1-1-amd64.iso --...
2010 Mar 26
0
[PATCH] del xend entry when destroy pv usb host controller of a guest os with no pv-frontend driver
...d.start_new_thread(self.getDeviceController(deviceClass).finishDeviceCleanup, (backpath, path)) - - rc = self.getDeviceController(deviceClass).destroyDevice(devid, force) + if deviceClass ==''vusb'': + dev = self.getDeviceController(deviceClass).convertToDeviceNumber(devid) + state = self.getDeviceController(deviceClass).readBackend(dev, ''state'') + if state == ''1'': + rc = self.getDeviceController(deviceClass).destroyDevice(devid, True) + else: +...