Re: [PATCH 5/5] qemu: Generate cmd line for guestReset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Tuesday in 2022, Michal Privoznik wrote:
QEMU offers two attributes for handling reset requests of an USB
host device: guest-reset and guest-resets-all. When combined they
act as follows:

1) guest-reset=false
  The guest is not allowed to reset the physical USB device.

2) guest-reset=true,guest-resets-all=false
  The guest is allowed to reset the device when it is not yet
  initialized (aka no USB bus address assigned). Usually this results
  in one guest reset being allowed. This is the default behavior.

3) guest-reset=true,guest-resets-all=true
  The guest is allowed to reset the device as it pleases.

Now, there's a clear 1:1 mapping with our representation of
guestReset, so generating cmd line is trivial.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
src/qemu/qemu_command.c                       | 21 +++++++++++++++++++
.../hostdev-usb-address.x86_64-latest.args    |  2 +-
2 files changed, 22 insertions(+), 1 deletion(-)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux