Qemu guest-reset option on device_add

Michal Prívozník mprivozn at redhat.com
Tue Jul 12 13:17:17 UTC 2022


On 7/6/22 17:55, Simon Fairweather wrote:
> Hi Michal, If you are able to implement the feature that would be great.
> 
> Regards
> Simon.

Hey, I've posted patches here:

https://listman.redhat.com/archives/libvir-list/2022-July/232756.html

I'm not sure whether you want to build libvirt from git only to test
them, or wait until release, but in general, the <source/> element
gained new 'guestReset' attribute and you could use it like this:

<hostdev mode='subsystem' type='usb' managed='yes'>
  <source guestReset='no'>
    <vendor>0x05ac</vendor>
    <product>0x12a8</product>
  </source>
</hostdev>

Michal



More information about the libvir-list mailing list