From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mnrxq-0000TL-NH for qemu-devel@nongnu.org; Wed, 16 Sep 2009 06:42:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mnrxl-0000Kx-JG for qemu-devel@nongnu.org; Wed, 16 Sep 2009 06:42:17 -0400 Received: from [199.232.76.173] (port=37501 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mnrxk-0000KO-BH for qemu-devel@nongnu.org; Wed, 16 Sep 2009 06:42:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42366) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mnrxj-0007Az-BO for qemu-devel@nongnu.org; Wed, 16 Sep 2009 06:42:11 -0400 Date: Wed, 16 Sep 2009 13:40:11 +0300 From: "Michael S. Tsirkin" Message-ID: <20090916104011.GA4446@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCHv2 0/4] qemu: reset fixes List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook , Avi Kivity , qemu-devel@nongnu.org, Carsten Otte , Christian Borntraeger , kraxel@redhat.com, markmc@redhat.com Prettify qdev reset and fix virtio reset. Prettify pci reset and fix bus reset. Note that qdev patches 1-2 and pci patches 3-4 are independent, and can be applied separately. Changes since v1: - Addressed Paul and kraxel's comments, killing extra reset functions - Test info->reset within qdev_reset - Added pci reset fixes --- MST Michael S. Tsirkin (4): qemu/qdev: type safety in reset handler qemu/virtio: fix reset with device removal qemu/pci: refactor code/symbolic constants qemu/pci: reset device registers on bus reset hw/pci.c | 54 ++++++++++++++++++++++++++++++++++-------------------- hw/pci.h | 2 ++ hw/qdev.c | 13 +++++++++---- hw/qdev.h | 3 ++- hw/rtl8139.c | 10 +++++----- hw/tcx.c | 6 +++--- hw/virtio-pci.c | 14 ++++++++------ 7 files changed, 63 insertions(+), 39 deletions(-)