search for: devnum

Displaying 20 results from an estimated 40 matches for "devnum".

Did you mean: devenum
2020 Feb 03
4
USB devices with same vendor:product id
Hi, We have a VM with several USB devices attached. Everything works well, but sometimes, after a reboot of the host, some usb device get a different bus/device number and that prevent the reboot of the VM : ------- error: Failed to start domain xxx error: internal error: Did not find USB device 04b9:0300 bus:1 device:5 ------- I guess this is because we have multiple usb devices with the same
2020 Feb 03
0
Re: USB devices with same vendor:product id
...gt; However, I made a minor edit so that it uses attach --live, so that they're immediately forwarded even if the machine is already up. So line 101-102 becomes: echo "Running virsh ${COMMAND} ${DOMAIN} --live for USB vendor=0x${ID_VENDOR_ID} product=0x${ID_MODEL_ID} bus=${BUSNUM} device=${DEVNUM}:" >&2 virsh "${COMMAND}" "${DOMAIN}" /dev/stdin --live <<END === I'm including the entire script below for posterity's sake, it's MIT-licensed. And yes, I'm including the license as well because that's what you're supposed to do. The...
2019 Jan 03
2
script called from qemu hook freezes.
...e added to the vm we started, if so, it attaches it to the vm as follows: virsh --connect qemu:///system "${cmd}" "${domain}" /dev/stdin << END <hostdev mode='subsystem' type='usb'> <source> <address bus='${busnum}' device='${devnum}' /> </source> </hostdev> END where cmd is attach-device, domain is the vm's name, busnum and devnum come from the output of the lsusb -t. my issue is that upon the first attach attempt, the cmd hangs, I need to kill it and after than I cannot preform any virsh cmd, I must...
2019 Jan 04
4
Re: script called from qemu hook freezes.
...attaches it to the vm as follows: > > virsh --connect qemu:///system "${cmd}" "${domain}" /dev/stdin << END > > <hostdev mode='subsystem' type='usb'> > > <source> > > <address bus='${busnum}' device='${devnum}' /> > > </source> > > </hostdev> > > END > > > > where cmd is attach-device, domain is the vm's name, busnum and devnum come from the output of the lsusb -t. > > my issue is that upon the first attach attempt, the cmd hangs, I need to k...
2011 Jan 11
0
[PATCH, v2]: xl: move domain struct init functions to libxl
...c Tue Jan 11 15:30:48 2011 +0000 +++ b/tools/libxl/libxl.c Tue Jan 11 15:40:45 2011 +0000 @@ -1024,6 +1024,35 @@ int libxl_device_disk_local_detach(libxl } /******************************************************************************/ +int libxl_device_nic_init(libxl_device_nic *nic_info, int devnum) +{ + const uint8_t *r; + libxl_uuid uuid; + + libxl_uuid_generate(&uuid); + r = libxl_uuid_bytearray(&uuid); + memset(nic_info, ''\0'', sizeof(*nic_info)); + + nic_info->backend_domid = 0; + nic_info->domid = 0; + nic_info->devid = devnum; +...
2013 Apr 04
1
can't find UPS on openwrt/arm
...vices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4 open("/sys/bus/usb/devices", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 7 open("/sys/bus/usb/devices/1-1/busnum", O_RDONLY) = 8 read(8, "1\n", 4096) = 2 open("/sys/bus/usb/devices/1-1/devnum", O_RDONLY) = 8 read(8, "3\n", 4096) = 2 open("/sys/bus/usb/devices/1-1/speed", O_RDONLY) = 8 read(8, "1.5\n", 4096) = 4 open("/sys/bus/usb/devices/1-1/descriptors", O_RDONLY) = 8 read(8, "\22\1\0\2\0\0\0\10c\4\37...
2007 Mar 19
0
[PATCH 2/3] [RFC] User-space grant table device - changes to libxc
...n/sys/gntdev.h> #include <unistd.h> #include <fcntl.h> @@ -361,6 +362,143 @@ void discard_file_cache(int fd, int flus out: errno = saved_errno; +} + +#define GNTTAB_DEV_NAME "/dev/xen/gntdev" + +int xc_gnttab_open(void) +{ + struct stat st; + int fd; + int devnum; + + devnum = xc_find_device_number("gntdev"); + + /* Make sure any existing device file links to correct device. */ + if ( (lstat(GNTTAB_DEV_NAME, &st) != 0) || !S_ISCHR(st.st_mode) || + (st.st_rdev != devnum) ) + (void)unlink(GNTTAB_DEV_NAME); + +reopen: +...
2016 Sep 18
0
getGraphicsEvent() and setTimeLimit() bug and compatibility patch.
...tTimeLimit() timing out. - Richard Bodewits -------------- next part -------------- Index: src/main/engine.c =================================================================== --- src/main/engine.c (revision 71293) +++ src/main/engine.c (working copy) @@ -3043,6 +3043,7 @@ gd = GEgetDevice(devNum); gd->recordGraphics = TRUE; dd = gd->dev; + dd->gettingEvent = FALSE; // Added to allow setTimeLimit() to be used with getGraphicsEvent(). if (dd->onExit) dd->onExit(dd); devNum = nextDevice(devNum); }
2006 Apr 28
0
Add burst when using shorewal internal tc
...it would even be better if it were configurable). Here''s a patch to the firewall script, adding a default 10k burst to all classes: --- firewall.orig 2006-04-28 19:13:32.000000000 +0300 +++ firewall 2006-04-28 19:14:30.000000000 +0300 @@ -3390,7 +3390,7 @@ [ -n "$devnum" ] || fatal_error "Device $device not defined in $devfile" - ensure_and_save_command tc class add dev $device parent $devnum:1 classid $classid htb rate $rate ceil $ceil prio $prio quantum $(calculate_quantum $rate) + ensure_and_save_command tc class add dev $device p...
2008 Feb 01
2
Four UPS's via usb.
> Hello everyone. I try to connect four PowerMust 2000 ups's via usb to one > computer using megatec_usb driver. But megatec_usb completly ignores port > directive in ups.conf, I even try port = /dev/null and megatec_usb founds > ups and it works. The 'port' is not used for USB connected devices, it's only needed for compatibility reasons. > Problem is that
2005 Jul 02
2
Rebooting not working
Hi! I've installed NUT 2.0.2 to work with my MGE Protection Center and it works but for one thing. When I reboot the computer, at startup upsdrvctl/newhidups can't find the UPS so I have to manually unplug, replug and start upsdrvctl/upsd every time. I've installed from sourcecode onto a Gentoo machine. Where should I look for the problem (USB/hotplug/newhidups/somewhere else)?
2019 Jan 04
0
Re: script called from qemu hook freezes.
...started, if so, it attaches it to the vm as follows: > virsh --connect qemu:///system "${cmd}" "${domain}" /dev/stdin << END > <hostdev mode='subsystem' type='usb'> > <source> > <address bus='${busnum}' device='${devnum}' /> > </source> > </hostdev> > END > > where cmd is attach-device, domain is the vm's name, busnum and devnum come from the output of the lsusb -t. > my issue is that upon the first attach attempt, the cmd hangs, I need to kill it and after than I cannot...
2019 Jan 04
0
Re: script called from qemu hook freezes.
...the vm as follows: >>> virsh --connect qemu:///system "${cmd}" "${domain}" /dev/stdin << END >>> <hostdev mode='subsystem' type='usb'> >>> <source> >>> <address bus='${busnum}' device='${devnum}' /> >>> </source> >>> </hostdev> >>> END >>> >>> where cmd is attach-device, domain is the vm's name, busnum and devnum come from the output of the lsusb -t. >>> my issue is that upon the first attach attempt, the cmd...
2008 Jun 30
2
[PATCH] Fix the return value of blkdev_name_to_number
Fix the return value of blkdev_name_to_number(). - Function blkdev_name_to_number() should return both devname and devnum, otherwise it may cause "unpack non-sequence" error. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Best Regards, -- Dongxiao _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2011 Feb 01
2
[PATCH] libxl: change default HVM emulated network card to rtl8139
...4.2 release cycle. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 5c1b3ab..6dbfca7 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1110,7 +1110,7 @@ int libxl_device_nic_init(libxl_device_nic *nic_info, int devnum) nic_info->domid = 0; nic_info->devid = devnum; nic_info->mtu = 1492; - nic_info->model = strdup("e1000"); + nic_info->model = strdup("rtl8139"); nic_info->mac[0] = 0x00; nic_info->mac[1] = 0x16; nic_info->mac[2] = 0x3e...
2019 Jan 07
0
Re: script called from qemu hook freezes.
...m as follows: > > > virsh --connect qemu:///system "${cmd}" "${domain}" /dev/stdin << END > > > <hostdev mode='subsystem' type='usb'> > > > <source> > > > <address bus='${busnum}' device='${devnum}' /> > > > </source> > > > </hostdev> > > > END > > > > > > where cmd is attach-device, domain is the vm's name, busnum and devnum come from the output of the lsusb -t. > > > my issue is that upon the first attach attem...
2009 Nov 13
1
Xorcom Astribank udev issue in Ubuntu 9.10
...EV [1258155881.753357] add /devices/pci0000:00/0000:00:1a.7/usb1/1-1 (usb) UDEV_LOG=7 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb1/1-1 SUBSYSTEM=usb DEVNAME=/dev/bus/usb/001/009 DEVTYPE=usb_device DRIVER=usb DEVICE=/proc/bus/usb/001/009 PRODUCT=e4e4/1141/ffff TYPE=0/0/0 BUSNUM=001 DEVNUM=009 SEQNUM=1516 ID_VENDOR=Xorcom_LTD ID_VENDOR_ENC=Xorcom\x20LTD ID_VENDOR_ID=e4e4 ID_MODEL=Astribank ID_MODEL_ENC=Astribank ID_MODEL_ID=1141 ID_REVISION=ffff ID_SERIAL=Xorcom_LTD_Astribank_???????? ID_SERIAL_SHORT=???????? ID_BUS=usb ID_USB_INTERFACES=:ffffff: MAJOR=189 MINOR=8 DEVLINKS=/dev/char/...
2008 Jan 21
1
help writing a usb hid driver for existing ups
...te(1, "hiddev driver version is 1.0.4\n", 31) = 31 653 ioctl(3, HIDIOCGDEVINFO, 0xbfb0a480) = 0 653 ioctl(3, HIDIOCAPPLICATION, 0) = -6291455 653 write(1, "HID: vendor 0xd9f product 0x2 version 0x0 applications [1]: ffa00001\n", 69) = 69 653 write(1, "HID: bus: 2 devnum: 4 ifnum: 0\n", 31) = 31 653 ioctl(3, 0x81004806, 0xbfb0a380) = 33 653 write(1, "UPS HID device name: \"POWERCOM CO., LTD. USB to Serial\"\n", 56) = 56 653 ioctl(3, HIDIOCINITREPORT, 0) = 0 653 ioctl(3, HIDIOCGUSAGE, {report_type=3, report_id=ffffffff, field_in...
2010 Dec 17
0
[PATCH] Staging: hv: Add code to create the device directory under /sys/block/hdx
...probe(struct device *device) blkdev->gd->first_minor = 0; blkdev->gd->fops = &block_ops; blkdev->gd->private_data = blkdev; + blkdev->gd->driverfs_dev = &(blkdev->device_ctx->device); sprintf(blkdev->gd->disk_name, "hd%c", 'a' + devnum); blkvsc_do_inquiry(blkdev); -- 1.7.1
2010 Dec 17
0
[PATCH] Staging: hv: Add code to create the device directory under /sys/block/hdx
...probe(struct device *device) blkdev->gd->first_minor = 0; blkdev->gd->fops = &block_ops; blkdev->gd->private_data = blkdev; + blkdev->gd->driverfs_dev = &(blkdev->device_ctx->device); sprintf(blkdev->gd->disk_name, "hd%c", 'a' + devnum); blkvsc_do_inquiry(blkdev); -- 1.7.1