From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX853-0008IQ-Bp for qemu-devel@nongnu.org; Tue, 09 Aug 2016 10:32:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX850-00068S-2k for qemu-devel@nongnu.org; Tue, 09 Aug 2016 10:32:33 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:32990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX84z-00068L-RU for qemu-devel@nongnu.org; Tue, 09 Aug 2016 10:32:30 -0400 Received: by mail-wm0-x242.google.com with SMTP id o80so3493126wme.0 for ; Tue, 09 Aug 2016 07:32:29 -0700 (PDT) From: David Kiarie Date: Tue, 9 Aug 2016 17:32:15 +0300 Message-Id: <1470753137-18354-1-git-send-email-davidkiarie4@gmail.com> Subject: [Qemu-devel] [RFC 0/2] Explicit SID for IOAPIC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, valentine.sinitsyn@gmail.com, mst@redhat.com, pbonzini@redhat.com, ehabkost@redhat.com, peter.maydell@linaro.org, David Kiarie IOMMU require platform device like IOAPIC and possibly HPET to make interrupt requests using explicit SIDs which the currently don't. This patches modify x86 code such that an MSIroute entry is affiliated with a requester ID and, if present, a PCI device. This change doesn't seem have any side effects as far as I can tell. David Kiarie (2): hw/msi: Allow platform devices to use explicit SID hw/i386: enforce SID verification hw/i386/intel_iommu.c | 82 ++++++++++++++++++++------------------- hw/i386/kvm/pci-assign.c | 12 ++++-- hw/intc/ioapic.c | 28 +++++++++++-- hw/misc/ivshmem.c | 6 ++- hw/vfio/pci.c | 6 ++- hw/virtio/virtio-pci.c | 6 ++- include/hw/i386/ioapic_internal.h | 1 + include/hw/i386/x86-iommu.h | 1 + include/sysemu/kvm.h | 7 ++-- kvm-all.c | 10 +++-- target-i386/kvm.c | 15 ++++--- 11 files changed, 108 insertions(+), 66 deletions(-) -- 2.1.4