From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: [RFC PATCH 0/5] QEMU VFIO device assignment Date: Sun, 11 Jul 2010 12:09:10 -0600 Message-ID: <20100711180910.20121.93313.stgit@localhost6.localdomain6> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: pugs@cisco.com, chrisw@redhat.com, mst@redhat.com, alex.williamson@redhat.com To: kvm@vger.kernel.org, qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56631 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754267Ab0GKSJj (ORCPT ); Sun, 11 Jul 2010 14:09:39 -0400 Sender: kvm-owner@vger.kernel.org List-ID: The following series implements QEMU device assignment using the proposed VFIO/UIOMMU kernel interfaces. See the last patch for further vfio description. I've tested this on the v2 VFIO patch, with a number of fixes hacked in along the way. I'll update when Tom releases a new version of VFIO. Hopefully this will provide some support for the usefulness of such an interfaces. Thanks, Alex --- Alex Williamson (5): VFIO based device assignment APIC/IOAPIC EOI callback RAM API: Make use of it for x86 PC Minimal RAM API support qemu_ram_map/unmap: Allow pre-allocated space to be mapped Makefile.target | 2 cpu-common.h | 5 exec.c | 56 ++ hw/apic.c | 18 + hw/apic.h | 4 hw/ioapic.c | 29 + hw/linux-vfio.h | 200 ++++++++ hw/pc.c | 12 - hw/pc.h | 12 - hw/vfio.c | 1295 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/vfio.h | 90 ++++ memory.c | 77 +++ memory.h | 23 + 13 files changed, 1812 insertions(+), 11 deletions(-) create mode 100644 hw/linux-vfio.h create mode 100644 hw/vfio.c create mode 100644 hw/vfio.h create mode 100644 memory.c create mode 100644 memory.h