From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQIBC-0008F9-2K for qemu-devel@nongnu.org; Sun, 29 Sep 2013 10:41:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQIB6-0001nr-49 for qemu-devel@nongnu.org; Sun, 29 Sep 2013 10:41:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQIB5-0001nb-T4 for qemu-devel@nongnu.org; Sun, 29 Sep 2013 10:40:56 -0400 From: Marcel Apfelbaum Date: Sun, 29 Sep 2013 17:40:54 +0300 Message-Id: <1380465657-22600-1-git-send-email-marcel.a@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] hw: set irq without selecting INTx pin List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.crosthwaite@xilinx.com, stefanha@redhat.com, mst@redhat.com, sw@weilnetz.de, jasowang@redhat.com, dkoch@verizon.com, alex.williamson@redhat.com, av1474@comtv.ru, paul@codesourcery.com, anthony@codemonkey.ws, pbonzini@redhat.com, afaerber@suse.de, kraxel@redhat.com Interrupt pin is selected and saved into PCI_INTERRUPT_PIN register during device initialization. Devices should not call directly qemu_set_irq and specify the INTx pin. Replaced the call to qemu_set_irq with a new wrapper pci_set_irq which triggers the irq based on PCI_INTERRUPT_PIN. Marcel Apfelbaum (3): hw/pci: set irq without selecting INTx pin hw/pci-bridge: set PCI_INTERRUPT_PIN register before shpc init hw: assert/deassert interrupts using pci_set_irq wrapper hw/audio/ac97.c | 4 ++-- hw/audio/es1370.c | 2 +- hw/audio/intel-hda.c | 2 +- hw/char/serial-pci.c | 2 +- hw/char/tpci200.c | 4 ++-- hw/display/qxl.c | 2 +- hw/ide/cmd646.c | 2 +- hw/isa/vt82c686.c | 2 +- hw/misc/ivshmem.c | 2 +- hw/net/e1000.c | 2 +- hw/net/rtl8139.c | 2 +- hw/pci-bridge/pci_bridge_dev.c | 2 +- hw/pci/pci.c | 6 +++--- hw/pci/shpc.c | 2 +- hw/scsi/lsi53c895a.c | 2 +- hw/scsi/vmw_pvscsi.c | 2 +- hw/virtio/virtio-pci.c | 4 ++-- include/hw/pci/pci.h | 7 +++++++ 18 files changed, 29 insertions(+), 22 deletions(-) -- 1.8.3.1