diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-16 16:59:00 +0000 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-16 16:59:33 +0000 |
| commit | 9aba81d8eb048db908c94a3c40c25a5fde0caee6 (patch) | |
| tree | b765e7fb5e9a3c2143c68b0414e0055adb70e785 /results/classifier/118/permissions/1892581 | |
| parent | b89a938452613061c0f1f23e710281cf5c83cb29 (diff) | |
| download | emulator-bug-study-9aba81d8eb048db908c94a3c40c25a5fde0caee6.tar.gz emulator-bug-study-9aba81d8eb048db908c94a3c40c25a5fde0caee6.zip | |
add 18th iteration of classifier
Diffstat (limited to 'results/classifier/118/permissions/1892581')
| -rw-r--r-- | results/classifier/118/permissions/1892581 | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/results/classifier/118/permissions/1892581 b/results/classifier/118/permissions/1892581 new file mode 100644 index 00000000..fece8e34 --- /dev/null +++ b/results/classifier/118/permissions/1892581 @@ -0,0 +1,93 @@ +permissions: 0.960 +files: 0.950 +virtual: 0.947 +graphic: 0.902 +architecture: 0.894 +KVM: 0.888 +device: 0.886 +user-level: 0.877 +debug: 0.872 +kernel: 0.872 +assembly: 0.857 +semantic: 0.855 +ppc: 0.837 +mistranslation: 0.835 +performance: 0.833 +network: 0.832 +arm: 0.821 +x86: 0.820 +socket: 0.814 +PID: 0.800 +hypervisor: 0.791 +risc-v: 0.783 +peripherals: 0.775 +vnc: 0.766 +register: 0.755 +boot: 0.717 +VMM: 0.670 +i386: 0.669 +TCG: 0.645 + +QEMU 5.1 no longer says anything about inaccessible devices + +Previously, with QEMU 5.0.0 running a VM with the following command: + +$ qemu-system-x86_64 -enable-kvm -hda arch-zoom.qcow2 -m 4G -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,vendorid=0x04f2,productid=0xb449 -device intel-hda -device hda-duplex -vga virtio + +Would display something like the following: + +libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/004: Permission denied +libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes. +libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/004: Permission denied +libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes. + +With insufficient permissions. + +QEMU 5.1.0 no longer displays anything. + +I did a git bisect and this is the result: + +[diego@thinkpad qemu]$ git bisect bad +9f815e83e983d247a3cd67579d2d9c1765adc644 is the first bad commit +commit 9f815e83e983d247a3cd67579d2d9c1765adc644 +Author: Gerd Hoffmann <email address hidden> +Date: Fri Jun 5 14:59:52 2020 +0200 + + usb: add hostdevice property to usb-host + + The new property allows to specify usb host device name. Uses standard + qemu_open(), so both file system path (/dev/bus/usb/$bus/$dev on linux) + and file descriptor passing can be used. + + Requires libusb 1.0.23 or newer. The hostdevice property is only + present in case qemu is compiled against a new enough library version, + so the presence of the property can be used for feature detection. + + Signed-off-by: Gerd Hoffmann <email address hidden> + Message-Id: <email address hidden> + + hw/usb/host-libusb.c | 75 ++++++++++++++++++++++++++++++++++++++++++---------- + hw/usb/trace-events | 1 + + 2 files changed, 62 insertions(+), 14 deletions(-) +[diego@thinkpad qemu]$ + + + +The previous commit is fine, it displays the USB errors: + +libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/004: Permission denied +libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes. +libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/002/004: Permission denied +libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes. + + +My system is Arch Linux. + +Not sure this is a bug. + +I was changing the /dev file permissions based on the output from above, that's why I decided to submit this bug report. + +Either way, the output from lsusb works too. + +I no longer need this (it's no longer an issue for me), feel free to reopen if this issue affects you. + |