Displaying 20 results from an estimated 23 matches for "busnum".
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
...ibution can look in my OS under
/sys/devices.
/etc/udev/rules.d/99-libvirt-wireless-dongles.rules:
# This doesn't work for removal since ATTR{devpath} isn't available at
# that point.
#SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="148f", ENV{ID_MODEL_ID}=="5370", ATTR{busnum}=="8", ATTR{devpath}=="6", RUN+="/usr/local/bin/usb-libvirt-hotplug.sh gromit"
SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="0cf3", ENV{ID_MODEL_ID}=="9271", ENV{DEVPATH}=="/devices/pci0000:00/0000:00:1d.7/usb?/?-5", RUN+="/usr/loc...
2019 Jan 03
2
script called from qemu hook freezes.
...ce, it looks if it should be 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 pr...
2018 Apr 03
2
[RFC PATCH 1/3] qemu: virtio-bypass should explicitly bind to a passthrough device
...at 05:13:08AM -0400, Si-Wei Liu wrote:
> @@ -896,6 +898,68 @@ void qmp_device_del(const char *id, Error **errp)
> }
> }
>
> +int pci_get_busdevfn_by_id(const char *id, uint16_t *busnr,
> + uint16_t *devfn, Error **errp)
> +{
> + uint16_t busnum = 0, slot = 0, func = 0;
> + const char *pc, *pd, *pe;
> + Error *local_err = NULL;
> + ObjectClass *class;
> + char value[1024];
> + BusState *bus;
> + uint64_t u64;
> +
> + if (!(pc = strchr(id, ':'))) {
> + error_setg(errp, "Inv...
2019 Jan 04
4
Re: script called from qemu hook freezes.
...e 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,...
2013 Apr 04
1
can't find UPS on openwrt/arm
...t;\n", 1
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
open("/sys/bus/usb/devices", 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)...
2018 Apr 04
0
[virtio-dev] Re: [RFC PATCH 1/3] qemu: virtio-bypass should explicitly bind to a passthrough device
...iu wrote:
>> @@ -896,6 +898,68 @@ void qmp_device_del(const char *id, Error **errp)
>> }
>> }
>>
>> +int pci_get_busdevfn_by_id(const char *id, uint16_t *busnr,
>> + uint16_t *devfn, Error **errp)
>> +{
>> + uint16_t busnum = 0, slot = 0, func = 0;
>> + const char *pc, *pd, *pe;
>> + Error *local_err = NULL;
>> + ObjectClass *class;
>> + char value[1024];
>> + BusState *bus;
>> + uint64_t u64;
>> +
>> + if (!(pc = strchr(id, ':'))) {
>>...
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
2019 Jan 04
0
Re: script called from qemu hook freezes.
...hould be 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...
2019 Jan 04
0
Re: script called from qemu hook freezes.
...d, 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 fir...
2019 Jan 07
0
Re: script called from qemu hook freezes.
...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...
2010 May 11
0
more USB logs
...status [1] = 0x00100303
PRSC LSDA PPS PES CCS
usb 2-2: new low speed USB device using ohci_hcd and address 88
ohci_hcd 0000:00:02.0: GetStatus roothub.portstatus [1] = 0x00100303
PRSC LSDA PPS PES CCS
usb 2-2: skipped 1 descriptor after interface
usb 2-2: default language 0x0409
usb 2-2: udev 88, busnum 2, minor = 215
usb 2-2: New USB device found, idVendor=0764, idProduct=0501
usb 2-2: New USB device strings: Mfr=3, Product=1, SerialNumber=0
usb 2-2: Product: CP550HG
usb 2-2: Manufacturer: CPS
usb 2-2: usb_probe_device
usb 2-2: configuration #1 chosen from 1 choice
usb 2-2: adding 2-2:1.0 (config...
2019 Oct 17
0
[PATCH RFC 2/3] usb, kcov: collect coverage from hub_event
...99 100644
> --- a/drivers/usb/core/hub.c
> +++ b/drivers/usb/core/hub.c
> @@ -5374,6 +5374,8 @@ static void hub_event(struct work_struct *work)
> hub_dev = hub->intfdev;
> intf = to_usb_interface(hub_dev);
>
> + kcov_remote_start(kcov_remote_handle_usb(hdev->bus->busnum));
> +
> dev_dbg(hub_dev, "state %d ports %d chg %04x evt %04x\n",
> hdev->state, hdev->maxchild,
> /* NOTE: expects max 15 ports... */
> @@ -5480,6 +5482,8 @@ static void hub_event(struct work_struct *work)
> /* Balance the stuff in kick_hub_wq() and a...
2019 Oct 17
0
[PATCH RFC 2/3] usb, kcov: collect coverage from hub_event
...rs/usb/core/hub.c
> > > @@ -5374,6 +5374,8 @@ static void hub_event(struct work_struct *work)
> > > hub_dev = hub->intfdev;
> > > intf = to_usb_interface(hub_dev);
> > >
> > > + kcov_remote_start(kcov_remote_handle_usb(hdev->bus->busnum));
> > > +
> > > dev_dbg(hub_dev, "state %d ports %d chg %04x evt %04x\n",
> > > hdev->state, hdev->maxchild,
> > > /* NOTE: expects max 15 ports... */
> > > @@ -5480,6 +5482,8 @@ static v...
2010 Jul 28
1
APC SmartUPS 2200XL + UDEV + USB = tcgetattr : Invalid argument
...;0002"
ATTR{bcdDevice}=="0006"
ATTR{bDeviceClass}=="00"
ATTR{bDeviceSubClass}=="00"
ATTR{bDeviceProtocol}=="00"
ATTR{bNumConfigurations}=="1"
ATTR{bMaxPacketSize0}=="8"
ATTR{speed}=="1.5"
ATTR{busnum}=="4"
ATTR{devnum}=="2"
ATTR{version}==" 1.10"
ATTR{maxchild}=="0"
ATTR{quirks}=="0x0"
ATTR{authorized}=="1"
ATTR{manufacturer}=="American Power Conversion"
ATTR{product}=="Smart-UPS 2200 XL FW:69...
2009 Nov 13
1
Xorcom Astribank udev issue in Ubuntu 9.10
...ion add
UDEV [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...
2012 Sep 09
2
Stall on CPU
Hi,
I have been receiving messages on a new DomU''s kern.log. I''ve done a lot
of googling, but haven''t came up with anything very useful, at least not
in a Xen context.
I was wondering if anyone had any suggestions about what could be wrong.
From everything I have read, there should be a stack trace included, but
I am not seeing one.
Thanks in advance,
Ian.
on
2012 Jan 12
9
linux 3.3-pre-rc1: Starting domU fails with Error: Failed to query current memory allocation of dom0.
Hi Konrad,
Today i tried linuses tree of today (last commit is 4c4d285ad5665bfbd983b95fde8d7a477d24a361).
It boots dom0 fine, but it fails to start any domU with: "Error: Failed to query current memory allocation of dom0."
With my previous 3.1.5 kernel everything is fine, nothing else changed in config in between.
dmesg and xm dmesg attached
--
Sander
Dom0 shows:
total
2010 Nov 08
89
Re: DM-CRYPT: Scale to multiple CPUs v3 on 2.6.37-rc* ?
On Sun, Nov 07 2010 at 6:05pm -0500,
Andi Kleen <andi@firstfloor.org> wrote:
> On Sun, Nov 07, 2010 at 10:39:23PM +0100, Milan Broz wrote:
> > On 11/07/2010 08:45 PM, Andi Kleen wrote:
> > >> I read about barrier-problems and data getting to the partition when
> > >> using dm-crypt and several layers so I don''t know if that could be
> >
2012 Dec 13
7
HVM bug: system crashes after offline online a vcpu
Hi Konrad
I encountered a bug when trying to bring offline a cpu then online it
again in HVM. As I''m not very familiar with HVM stuffs I cannot come up
with a quick fix.
The HVM DomU is configured with 4 vcpus. After booting into command
prompt, I do following operations.
# echo 0 > /sys/devices/system/cpu/cpu3/online
# echo 1 > /sys/devices/system/cpu/cpu3/online
With