From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmiq6-0007a5-Vx for qemu-devel@nongnu.org; Thu, 15 Oct 2015 09:45:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zmiq3-0005H8-OS for qemu-devel@nongnu.org; Thu, 15 Oct 2015 09:45:02 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:61353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmiq3-0005GP-Iq for qemu-devel@nongnu.org; Thu, 15 Oct 2015 09:44:59 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NW9002LPKUVPVC0@mailout3.w1.samsung.com> for qemu-devel@nongnu.org; Thu, 15 Oct 2015 14:44:55 +0100 (BST) From: Pavel Fedin Date: Thu, 15 Oct 2015 16:44:49 +0300 Message-id: Subject: [Qemu-devel] [PATCH v6 0/3] Make KVM/MSI code device-ID-aware List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck , Paolo Bonzini On ARM architecture ITS (Interrupt Translation Service), additionally to normal MSI data, uses also side-band device IDs. This series prepares the infrastructure to handling them. This small series is actually an extraction from vITS support RFC (https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg07074.html). Nobody reviewed it so far, however some bits of it could actually be applied early. This series consists only of those parts, which do not depend on any new unreleased kernel APIs. v5 => v6: - Pass PCIDevice pointer also to kvm_arch_fixup_msi_route() v4 => v5: - pci_requester_id() moved back to architecture-independent PCI code. - Use pci_requester_id() in more places. v3 => v4: - Rename msi_requester_id() to pci_requester_id() and move from MSI to PCI code v2 => v3: - Use official "requester ID" denotion everywhere. Renamed getter function and MemTxAttrs field. v1 => v2: - Improved commit messages, more explanations - msi_device_id() function made architecture-specific Pavel Fedin (3): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/pci: Introduce pci_requester_id() kvm: Pass PCI device pointer to MSI routing functions hw/i386/kvm/pci-assign.c | 11 ++++++----- hw/pci/msi.c | 2 +- hw/pci/pcie_aer.c | 2 +- hw/vfio/pci.c | 11 ++++++----- hw/virtio/virtio-pci.c | 5 +++-- include/exec/memattrs.h | 4 ++-- include/hw/pci/pci.h | 5 +++++ include/sysemu/kvm.h | 16 +++++++++++++--- kvm-all.c | 19 ++++++++++--------- kvm-stub.c | 5 +++-- target-arm/kvm.c | 2 +- target-i386/kvm.c | 2 +- target-mips/kvm.c | 2 +- target-ppc/kvm.c | 2 +- target-s390x/kvm.c | 2 +- 15 files changed, 55 insertions(+), 35 deletions(-) -- 2.4.4