usb-hid: simplify class initialization a bit
We can probably model USBHidDevice as a base class to get even better codesharing but for now, just use a common function to initialize the common classmembers.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
usb: separate out legacy usb registration from type registration
Type registeration is going to get turned into a QOM call so decouple thelegacy support.
Change license from GPLv2 to GPLv2+
This file only contains code from Red Hat, so it can use GPLv2+.Tested with `git blame -M -C net/checksum.c`.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Add support for net bridge
The most common use of -net tap is to connect a tap device to a bridge. Thisrequires the use of a script and running qemu as root in order to allocate atap device to pass to the script.
This model is great for portability and flexibility but it's incredibly...
Add access control support to qemu bridge helper
We go to great lengths to restrict ourselves to just cap_net_admin as an OSenforced security mechanism. However, we further restrict what we allow usersto do to simply adding a tap device to a bridge interface by virtue of the fact...
Add cap reduction support to enable use as SUID
The ideal way to use qemu-bridge-helper is to give it an fscap of using:
setcap cap_net_admin=ep qemu-bridge-helper
Unfortunately, most distros still do not have a mechanism to package fileswith fscaps applied. This means they'll have to SUID the qemu-bridge-helper...
hw/vmmouse.c: Disable vmmouse after reboot
Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2mouse.
Details:When a guest activated the vmmouse followed by a reboot the vmmouse was stillenabled and the PS/2 mouse was therefore unsusable. When another guest is then...
Add basic version of bridge helper
This patch adds a helper that can be used to create a tap device attached toa bridge device. Since this helper is minimal in what it does, it can begiven CAP_NET_ADMIN which allows qemu to avoid running as root while still...
keep the PID file locked for the lifetime of the process
The lockf() call in qemu_create_pidfile() aims at ensuring mutualexclusion. We shouldn't close the pidfile on success (as introduced bycommit 1bbd1592), because that drops the lock as well [1]:
"File locks shall be released on first close by the locking process...
main-loop: For tools, initialize timers as part of qemu_init_main_loop()
In some cases initializing the alarm timers can lead to non-negligableoverhead from programs that link against qemu-tool.o. At least,setting a max-resolution WinMM alarm timer via mm_start_timer() (the...
View all revisions | View revisions
Also available in: Atom