Cover Letter Detail
Show a cover letter.
GET /api/covers/812544/?format=api
{ "id": 812544, "url": "http://patchwork.ozlabs.org/api/covers/812544/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/cover/1505156192-18994-1-git-send-email-wexu@redhat.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1505156192-18994-1-git-send-email-wexu@redhat.com>", "list_archive_url": null, "date": "2017-09-11T18:56:29", "name": "[0/3] vfio: reusing address space for the same iommu group devices", "submitter": { "id": 68181, "url": "http://patchwork.ozlabs.org/api/people/68181/?format=api", "name": "Wei Xu", "email": "wexu@redhat.com" }, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/cover/1505156192-18994-1-git-send-email-wexu@redhat.com/mbox/", "series": [ { "id": 2541, "url": "http://patchwork.ozlabs.org/api/series/2541/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=2541", "date": "2017-09-11T18:56:29", "name": "vfio: reusing address space for the same iommu group devices", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/2541/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/812544/comments/", "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)", "ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com", "ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=wexu@redhat.com" ], "Received": [ "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrc9P5JNNz9sPs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 04:37:28 +1000 (AEST)", "from localhost ([::1]:59925 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1drTaH-0001Rl-Ol\n\tfor incoming@patchwork.ozlabs.org; Mon, 11 Sep 2017 14:37:25 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:42352)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <wexu@redhat.com>) id 1drTZi-0001RO-6u\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 14:36:51 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <wexu@redhat.com>) id 1drTZc-0005iY-6j\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 14:36:50 -0400", "from mx1.redhat.com ([209.132.183.28]:33540)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <wexu@redhat.com>) id 1drTZc-0005hU-09\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 14:36:44 -0400", "from smtp.corp.redhat.com\n\t(int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 07BEC5D685\n\tfor <qemu-devel@nongnu.org>; Mon, 11 Sep 2017 18:36:42 +0000 (UTC)", "from Wei-Dev.nay.redhat.com (dhcp-15-231.nay.redhat.com\n\t[10.66.15.231])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 253F7600C4;\n\tMon, 11 Sep 2017 18:36:34 +0000 (UTC)" ], "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 07BEC5D685", "From": "wexu@redhat.com", "To": "qemu-devel@nongnu.org", "Date": "Tue, 12 Sep 2017 02:56:29 +0800", "Message-Id": "<1505156192-18994-1-git-send-email-wexu@redhat.com>", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.11", "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.39]);\n\tMon, 11 Sep 2017 18:36:42 +0000 (UTC)", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]", "X-Received-From": "209.132.183.28", "Subject": "[Qemu-devel] [Patch 0/3] vfio: reusing address space for the same\n\tiommu group devices", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Id": "<qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "marcel@redhat.com, jasowang@redhat.com, alex.williamson@redhat.com,\n\tWei Xu <wexu@redhat.com>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "From: Wei Xu <wexu@redhat.com>\n\nRecently I have been testing passing through 2 ixgbe(82599ES) nics which\nbelong to the same iommu group to a guest with virtual iommu(vIOMMU) on\nmy desktop, while vfio failed to realize the second device and prompted\nerror message as 'group xxx used in multiple address spaces'.\n\nIt turned out to be that vtd doesn't know any group info while choosing\nan address space for the two devices, therefore it creates two separate\naddress space for each which breaks granularity isolation.\n\nThis patch fixes this by looking up if there is any exist device within\nthe same iommu group and shares the address space before creating a new\none.\n\nI am not sure if this fixes the problem in a correct way due to my limited\nknowledge about vfio, please come back to me for any feedback & comments,\nThanks.\n\nWei Xu (3):\n vfio: reusing address space for the same iommu group devices\n vfio: invoke looking up address space.\n vfio: remove checking duplicated vfio device\n\n hw/vfio/common.c | 28 ++++++++++++++++++++++++++++\n hw/vfio/pci.c | 15 ++++++---------\n include/hw/vfio/vfio-common.h | 1 +\n 3 files changed, 35 insertions(+), 9 deletions(-)" }