From: Chris Wright Subject: Re: [PATCH] device-assignment: Reset device on system reset Date: Thu, 17 Mar 2011 14:59:41 -0700 Message-ID: <20110317215941.GO15007@x200.localdomain> References: <20110317192923.24889.79288.stgit@s20.home> <20110317211210.GL15007@x200.localdomain> <1300396670.3155.9.camel@x201> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Chris Wright , kvm@vger.kernel.org, ddutile@redhat.com, bernhard.kohl@nsn.com, libvir-list@redhat.com To: Alex Williamson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49738 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755682Ab1CQV7t (ORCPT ); Thu, 17 Mar 2011 17:59:49 -0400 Content-Disposition: inline In-Reply-To: <1300396670.3155.9.camel@x201> Sender: kvm-owner@vger.kernel.org List-ID: * Alex Williamson (alex.williamson@redhat.com) wrote: > On Thu, 2011-03-17 at 14:12 -0700, Chris Wright wrote: > > * Alex Williamson (alex.williamson@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