Received: from eggs.gnu.org ([2001:4830:134:3::10]:37562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmguW-0007dw-9p for qemu-devel@nongnu.org; Thu, 15 Oct 2015 07:41:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmguR-0000Pc-AM for qemu-devel@nongnu.org; Thu, 15 Oct 2015 07:41:28 -0400 Received: from e06smtp08.uk.ibm.com ([195.75.94.104]:57555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmguQ-0000Nh-W3 for qemu-devel@nongnu.org; Thu, 15 Oct 2015 07:41:23 -0400 Received: from localhost by e06smtp08.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 Oct 2015 12:41:21 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id CF40317D8056 for ; Thu, 15 Oct 2015 12:41:25 +0100 (BST) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t9FBfJYg36897012 for ; Thu, 15 Oct 2015 11:41:19 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t9FBfJvK024193 for ; Thu, 15 Oct 2015 05:41:19 -0600 Date: Thu, 15 Oct 2015 13:41:15 +0200 From: Cornelia Huck Message-ID: <20151015134115.0a7b0b74.cornelia.huck@de.ibm.com> In-Reply-To: <563ff802708c96d128f2d0dda662433044c987ea.1444906971.git.p.fedin@samsung.com> References: <563ff802708c96d128f2d0dda662433044c987ea.1444906971.git.p.fedin@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 3/3] kvm: Pass PCI device pointer to MSI routing functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Fedin Cc: Peter Maydell , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Paolo Bonzini On Thu, 15 Oct 2015 14:05:17 +0300 Pavel Fedin wrote: > In-kernel ITS emulation on ARM64 will require to supply requester IDs. > These IDs can now be retrieved from the device pointer using new > pci_requester_id() function. > > This patch adds pci_dev pointer to KVM GSI routing functions and makes > callers passing it. Should the pci_dev be passed to kvm_arch_fixup_msi_route() as well? Currently, the only implementer of this function (s390x) does not need it; but it shouldn't hurt? > > x86 architecture does not use requester IDs, but hw/i386/kvm/pci-assign.c > also made passing PCI device pointer instead of NULL for consistency with > the rest of the code. > > Signed-off-by: Pavel Fedin > --- > hw/i386/kvm/pci-assign.c | 9 +++++---- > hw/vfio/pci.c | 11 ++++++----- > hw/virtio/virtio-pci.c | 5 +++-- > include/sysemu/kvm.h | 5 +++-- > kvm-all.c | 5 +++-- > kvm-stub.c | 5 +++-- > 6 files changed, 23 insertions(+), 17 deletions(-)