From: Jesse Barnes Subject: Re: [PATCH RFC] pci: expose function reset capability in sysfs Date: Tue, 28 Jul 2009 09:56:58 -0700 Message-ID: <20090728095658.57d62dd3@jbarnes-g45> References: <20090726171139.GA22202@redhat.com> <20090727150146.GA19079@kroah.com> <20090727155238.GA29853@redhat.com> <20090727161423.GC30241@kroah.com> <20090727203748.GA30817@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Greg KH , jbarnes@virtuousgeek.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org To: "Michael S. Tsirkin" Return-path: Received: from mga01.intel.com ([192.55.52.88]:51998 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbZG1Q5M (ORCPT ); Tue, 28 Jul 2009 12:57:12 -0400 In-Reply-To: <20090727203748.GA30817@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 27 Jul 2009 23:37:48 +0300 "Michael S. Tsirkin" wrote: > On Mon, Jul 27, 2009 at 09:14:23AM -0700, Greg KH wrote: > > Fine with me. You forgot the documentation though :) > > This enough? > > pci: expose function reset capability in sysfs > > Some devices allow an individual function to be reset without > affecting other functions in the same device: that's what > pci_reset_function does. For devices that have this support, expose > reset attribite in sysfs. > > This is useful e.g. for virtualization, where a qemu userspace > process wants to reset the device when the guest is reset, > to emulate machine reboot as closely as possible. > > Signed-off-by: Michael S. Tsirkin Applied to my linux-next branch, thanks. -- Jesse Barnes, Intel Open Source Technology Center