Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/273560/?format=api
{ "id": 273560, "url": "http://patchwork.ozlabs.org/api/patches/273560/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20130909124402.5114.12599.stgit@bahia.local/", "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": "<20130909124402.5114.12599.stgit@bahia.local>", "list_archive_url": null, "date": "2013-09-09T12:44:04", "name": "hw/9pfs/virtio_9p_device: use virtio wrappers to access headers.", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ff88c10d5d6a3bb7f0ed2f3761e500848c962622", "submitter": { "id": 38899, "url": "http://patchwork.ozlabs.org/api/people/38899/?format=api", "name": "Greg Kurz", "email": "gkurz@linux.vnet.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20130909124402.5114.12599.stgit@bahia.local/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/273560/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/273560/checks/", "tags": {}, "related": [], "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", "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(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id 38F462C0139\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 9 Sep 2013 22:45:14 +1000 (EST)", "from localhost ([::1]:51208 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 1VJ0q8-0005oG-6i\n\tfor incoming@patchwork.ozlabs.org; Mon, 09 Sep 2013 08:45:12 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:46086)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <gkurz@linux.vnet.ibm.com>) id 1VJ0pI-00058k-Kl\n\tfor qemu-devel@nongnu.org; Mon, 09 Sep 2013 08:44:29 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <gkurz@linux.vnet.ibm.com>) id 1VJ0p9-0004Tg-NK\n\tfor qemu-devel@nongnu.org; Mon, 09 Sep 2013 08:44:20 -0400", "from e06smtp17.uk.ibm.com ([195.75.94.113]:49014)\n\tby eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <gkurz@linux.vnet.ibm.com>) id 1VJ0p9-0004TJ-6M\n\tfor qemu-devel@nongnu.org; Mon, 09 Sep 2013 08:44:11 -0400", "from /spool/local\n\tby e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <qemu-devel@nongnu.org> from <gkurz@linux.vnet.ibm.com>;\n\tMon, 9 Sep 2013 13:38:50 +0100", "from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13)\n\tby e06smtp17.uk.ibm.com (192.168.101.147) with IBM ESMTP SMTP\n\tGateway: Authorized Use Only! Violators will be prosecuted; \n\tMon, 9 Sep 2013 13:38:49 +0100", "from b06cxnps4076.portsmouth.uk.ibm.com\n\t(d06relay13.portsmouth.uk.ibm.com [9.149.109.198])\n\tby d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id\n\t32D3617D8057\n\tfor <qemu-devel@nongnu.org>; Mon, 9 Sep 2013 13:44:13 +0100 (BST)", "from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com\n\t[9.149.37.247])\n\tby b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with\n\tESMTP id r89ChsLB65929392\n\tfor <qemu-devel@nongnu.org>; Mon, 9 Sep 2013 12:43:55 GMT", "from d06av12.portsmouth.uk.ibm.com (localhost [127.0.0.1])\n\tby d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with\n\tESMTP id r89Ci6bv031238\n\tfor <qemu-devel@nongnu.org>; Mon, 9 Sep 2013 06:44:06 -0600", "from bahia.local (sig-9-145-73-45.uk.ibm.com [9.145.73.45])\n\tby d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with\n\tESMTP id r89Ci4jQ031124; Mon, 9 Sep 2013 06:44:05 -0600" ], "To": "qemu-devel@nongnu.org", "From": "Greg Kurz <gkurz@linux.vnet.ibm.com>", "Date": "Mon, 09 Sep 2013 14:44:04 +0200", "Message-ID": "<20130909124402.5114.12599.stgit@bahia.local>", "In-Reply-To": "<1376294363-4650-4-git-send-email-rusty@rustcorp.com.au>", "References": "<1376294363-4650-4-git-send-email-rusty@rustcorp.com.au>", "User-Agent": "StGit/0.16", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "X-TM-AS-MML": "No", "X-Content-Scanned": "Fidelis XPS MAILER", "x-cbid": "13090912-0542-0000-0000-0000066280A2", "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]", "X-Received-From": "195.75.94.113", "Cc": "rusty@rustcorp.com.au", "Subject": "[Qemu-devel] [PATCH] hw/9pfs/virtio_9p_device: use virtio wrappers\n\tto access headers.", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.14", "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>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Follow-up to Rusty's virtio endianness serie: enough to get a working\nvirtfs mount.\n\nNote that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p.\n\nSigned-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>\n---\n hw/9pfs/virtio-9p-device.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c\nindex f0ffbe8..bc2d0da 100644\n--- a/hw/9pfs/virtio-9p-device.c\n+++ b/hw/9pfs/virtio-9p-device.c\n@@ -19,6 +19,7 @@\n #include \"fsdev/qemu-fsdev.h\"\n #include \"virtio-9p-xattr.h\"\n #include \"virtio-9p-coth.h\"\n+#include \"hw/virtio/virtio-access.h\"\n \n static uint32_t virtio_9p_get_features(VirtIODevice *vdev, uint32_t features)\n {\n@@ -34,7 +35,7 @@ static void virtio_9p_get_config(VirtIODevice *vdev, uint8_t *config)\n \n len = strlen(s->tag);\n cfg = g_malloc0(sizeof(struct virtio_9p_config) + len);\n- stw_raw(&cfg->tag_len, len);\n+ virtio_stl_p(&cfg->tag_len, len);\n /* We don't copy the terminating null to config space */\n memcpy(cfg->tag, s->tag, len);\n memcpy(config, cfg, s->config_size);\n", "prefixes": [] }