From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v2] device-assignment: Reset device on system reset Date: Sat, 2 Apr 2011 21:20:43 -0300 Message-ID: <20110403002043.GA3717@amt.cnet> References: <20110317192923.24889.79288.stgit@s20.home> <20110317212413.14852.67041.stgit@s20.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, ddutile@redhat.com, chrisw@redhat.com, bernhard.kohl@nsn.com To: Alex Williamson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35297 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757584Ab1DCDVG (ORCPT ); Sat, 2 Apr 2011 23:21:06 -0400 Content-Disposition: inline In-Reply-To: <20110317212413.14852.67041.stgit@s20.home> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Mar 17, 2011 at 03:24:31PM -0600, Alex Williamson wrote: > On system reset, we currently try to quiesce DMA by clearing the > command register. This assumes that nothing re-enables bus master > support without first de-programming the device. Use a bigger > hammer to help the guest not shoot itself by issuing a function > reset via sysfs on each system reset. > > Signed-off-by: Alex Williamson > --- > > v2: Fix segment support > > hw/device-assignment.c | 24 ++++++++++++++++++++++-- Applied, thanks.