Received: from [140.186.70.92] (port=36358 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OemNV-0004aX-Ce for qemu-devel@nongnu.org; Fri, 30 Jul 2010 05:59:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OemNT-0002xc-KA for qemu-devel@nongnu.org; Fri, 30 Jul 2010 05:59:45 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:49704) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OemNT-0002wZ-CS for qemu-devel@nongnu.org; Fri, 30 Jul 2010 05:59:43 -0400 From: Isaku Yamahata Date: Fri, 30 Jul 2010 19:03:54 +0900 Message-Id: Subject: [Qemu-devel] [PATCH 0/8] RFC: qbus reset callback and implement pci bus reset List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, yamahata@valinux.co.jp, mst@redhat.com This patch isn't for 0.13 release. and for MST pci branch. (git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git pci) Patch description: Introduce bus reset notion at qbus layer and implement pci bus reset with it. At first related codes are cleaned up and then introduce bus reset callback. And then implement pci bus reset. The main motivation is to implement pci bus reset. But I suppose scsi bus and ide bus also can take advantage of this patch series. Isaku Yamahata (8): apb: fix typo. qdev: export qdev_reset() for later use. pci: export pci_bus_reset() and pci_device_reset() for later use. pci: make pci_device_reset() aware of qdev. qdev: introduce bus reset callback and helper functions. pci: use qbus bus reset callback. pci: eliminate work around in pci_device_reset(). pci bridge: implement secondary bus reset. hw/apb_pci.c | 8 ++++-- hw/e1000.c | 1 + hw/lsi53c895a.c | 2 + hw/pci.c | 31 ++++++++++++++++++++++--- hw/pci.h | 5 ++++ hw/pci_bridge.c | 15 +++++++++++- hw/pcnet.c | 1 + hw/qdev.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++---- hw/qdev.h | 8 ++++++ hw/rtl8139.c | 2 + hw/virtio-pci.c | 1 + 11 files changed, 127 insertions(+), 13 deletions(-)