[libvirt] [PATCH] device-assignment: Reset device on system reset

Chris Wright chrisw at redhat.com
Thu Mar 17 21:59:41 UTC 2011


* Alex Williamson (alex.williamson at redhat.com) wrote:
> On Thu, 2011-03-17 at 14:12 -0700, Chris Wright wrote:
> > * Alex Williamson (alex.williamson at redhat.com) wrote:
> > > +    fd = open(reset_file, O_WRONLY);
> > > +    if (fd != -1) {
> > > +        ret = write(fd, reset, strlen(reset));
> > > +        close(fd);
> > > +    }
> > 
> > This will probably fail when it's managed by libvirt.  I expect it
> > will need some file ownership and security label mgmt added to device
> > assignement path I expect.
> 
> Already posted a patch for adding file rights, seems to be sufficient:
> 
> https://www.redhat.com/archives/libvir-list/2011-March/msg00823.html

Awesome, I missed that path, thanks Alex!

thanks,
-chris




More information about the libvir-list mailing list