Re: Qemu guest-reset option on device_add

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

Awesome, thanks! On Tue, Jul 12, 2022 at 2:17 PM Michal Prívozník <mprivozn@redhat.com> wrote:
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
participants (2)
-
Michal Prívozník
-
Simon Fairweather