Received: from [140.186.70.92] (port=34624 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIZyb-0004TZ-Kc for qemu-devel@nongnu.org; Tue, 16 Nov 2010 23:50:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIZyZ-0000lE-UB for qemu-devel@nongnu.org; Tue, 16 Nov 2010 23:50:33 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:55504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIZyZ-0000k7-KG for qemu-devel@nongnu.org; Tue, 16 Nov 2010 23:50:31 -0500 From: Isaku Yamahata Date: Wed, 17 Nov 2010 13:50:20 +0900 Message-Id: Subject: [Qemu-devel] [PATCH 0/7] qdev reset refactoring and 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: skandasa@cisco.com, yamahata@valinux.co.jp, etmartin@cisco.com, wexu2@cisco.com, mst@redhat.com The goal of this patch series is to implement secondary bus reset emulation in pci-to-pci bridge. At first, this patch series refactors qdev reset, and then cleans up pci bus reset. Lastly implements pci bridge control secondary bus reset bit. This patch series is for pci bus reset, which is ported from the following repo. git://repo.or.cz/qemu/aliguori.git qdev-refactor Anthony Liguori (2): qbus: add functions to walk both devices and busses qdev: reset qdev along with qdev tree Isaku Yamahata (5): qdev: introduce reset call back for qbus level qdev: introduce a helper function which triggers reset from a given device pci: make use of qdev reset frame work to pci bus reset. pci: teach pci devices that have reset callback how to reset common registers pci bridge: implement secondary bus reset hw/e1000.c | 1 + hw/lsi53c895a.c | 2 + hw/pci.c | 32 +++++++++++++++++-- hw/pci.h | 3 ++ hw/pci_bridge.c | 12 +++++++- hw/pcnet.c | 1 + hw/qdev.c | 87 +++++++++++++++++++++++++++++++++++++++++++++++++------ hw/qdev.h | 16 ++++++++++ hw/rtl8139.c | 2 + hw/virtio-pci.c | 1 + vl.c | 1 + 11 files changed, 144 insertions(+), 14 deletions(-)