podman/pkg/machine/wsl
Victor Toso c23963d7a8 machine: qemu: add usb host passthrough
QEMU usb-host driver which is the one for passthrough, supports two
options for selecting an USB devices in the host to provide it to the
VM:
 - Bus and Device number the device is plugged
 - Vendor and Product information of the USB devices

    https://qemu-project.gitlab.io/qemu/system/devices/usb.html

This commit allows a user to configure podman machine with either of
options, with new --usb command line option for podman machine init.

Examples
  podman machine init tosovm4 --usb vendor=13d3,product=5406
  podman machine init tosovm3 --usb bus=1,devnum=4 --usb bus=1,devnum=3

This commit also allows a user to change the USBs configured with
--usb command line option for podman machine set.

Note that this commit does not handle host device permissions nor
verify that the USB devices exists.

Signed-off-by: Victor Toso <victortoso@redhat.com>
2023-11-08 23:38:53 +01:00
..
wutil Fix locale issues with WSL version detection 2023-10-03 08:37:27 -05:00
config.go machine: qemu: add usb host passthrough 2023-11-08 23:38:53 +01:00
fedora.go Refactor key machine objects 2023-11-07 08:30:44 -06:00
filelock.go Add user mode networking feature to Windows 2023-04-24 17:11:54 -05:00
machine.go machine: qemu: add usb host passthrough 2023-11-08 23:38:53 +01:00
machine_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
usermodenet.go Fix user-mode validation check 2023-08-24 16:23:50 -05:00
util_windows.go Eliminate transient container deps from wslkerninst 2023-04-23 17:11:55 -05:00