Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808002/?format=api
{ "id": 808002, "url": "http://patchwork.ozlabs.org/api/patches/808002/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170831035306.29170-2-f4bug@amsat.org/", "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": "<20170831035306.29170-2-f4bug@amsat.org>", "list_archive_url": null, "date": "2017-08-31T03:53:00", "name": "[1/7] serial: add serial_chr_nonnull() to use the null backend when none provided", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "eebb84bb3a5068696d0497d68a014e8d169d8191", "submitter": { "id": 70924, "url": "http://patchwork.ozlabs.org/api/people/70924/?format=api", "name": "Philippe Mathieu-Daudé", "email": "f4bug@amsat.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170831035306.29170-2-f4bug@amsat.org/mbox/", "series": [ { "id": 736, "url": "http://patchwork.ozlabs.org/api/series/736/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=736", "date": "2017-08-31T03:52:59", "name": "serial: add serial_chr_nonnull()", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/736/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808002/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808002/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", "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>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Ku6mZG1Q\"; dkim-atps=neutral" ], "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 3xjT546j8cz9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 13:53:58 +1000 (AEST)", "from localhost ([::1]:53784 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 1dnGYG-0000eO-3P\n\tfor incoming@patchwork.ozlabs.org; Wed, 30 Aug 2017 23:53:56 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:55513)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnGXf-0000dz-N8\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:20 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnGXd-0006Xb-L9\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:19 -0400", "from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:33891)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1dnGXd-0006XR-Gq\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:17 -0400", "by mail-qk0-x242.google.com with SMTP id a77so6862277qkb.1\n\tfor <qemu-devel@nongnu.org>; Wed, 30 Aug 2017 20:53:17 -0700 (PDT)", "from yoga.offpageads.com ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tx20sm5072398qtb.5.2017.08.30.20.53.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 20:53:16 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=M5Y6XpYE3ancXSqx2zLPj7PPgxbZL9MQ3G62xkjg7B8=;\n\tb=Ku6mZG1QjPZHbIGQGIqe9GGA4ItifSPj7I4T476El0QR6Dbxw24zIPy+jPwVQ739XB\n\tuMNFUX0s5phntFXno5rfyaZ1Wzo/2Q8ELxEa+yMYAlD+YEFetl7nbWY2h6J7JPpE5CNr\n\tg6b+UXfUpY3hDwwujn5J+md0ven2bZveAPnOwZ+JR8TqtxE7BILSZLLgNxW5LVBeLOGz\n\t/Xh7t+Vkvx0ljz7epYP//K8TCuVUqGhRRjNRmVuFT6m0x73zY7YbqZZme4Say2gViGjp\n\tS52oPC5DwD0bvgJkoNIpHsACCurNVnPGw46xYpcOLnpPSI4bogM01G13KxjJVMs8gOWl\n\tKLCg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references:mime-version:content-transfer-encoding;\n\tbh=M5Y6XpYE3ancXSqx2zLPj7PPgxbZL9MQ3G62xkjg7B8=;\n\tb=DD20VD4JJK/PpgCFoptSmUTxhTvVGMBEmqjXazJsNlIWnxEkFA/P15RzO91f2pBN5L\n\t7ntLalxnxOSrI6uj0oD2f6yaS/rW/5RqQX7EKtPCv/4suGN0t5fqAWvBbZjVnh9Iid5J\n\tigJPgxEMbkyP1J6bU8tlqi+ABtY6P39380MednsvmJzGPVTGTiOf+VK847ypxHd0l+AY\n\tcFBPjPE7RUcGkuFp4zlResWN3C3FM8/6fwOnnC5eZwCdbk7uDuIY0kW4XifVNfNIOtUU\n\td2n1j4DGpu4j/MmFzTsPl3y8l4lmgisIF1SHQ2JbMMrjA1EthtPYeMEGkY2DFWO9lf9C\n\tvnUQ==", "X-Gm-Message-State": "AHYfb5iqnnYfEUH9eiiqQjyzCWwl5z2Vddm88ErZECBC+P9d7vX+v3/D\n\tvmOwmfSyC978FC2YlRjpTA==", "X-Received": "by 10.55.200.131 with SMTP id t3mr2023908qkl.18.1504151596957;\n\tWed, 30 Aug 2017 20:53:16 -0700 (PDT)", "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>", "To": "Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell\n\t<peter.maydell@linaro.org>, =?utf-8?q?Marc-Andr=C3=A9_Lureau?=\n\t<marcandre.lureau@redhat.com>, \tThomas Huth <thuth@redhat.com>", "Date": "Thu, 31 Aug 2017 00:53:00 -0300", "Message-Id": "<20170831035306.29170-2-f4bug@amsat.org>", "X-Mailer": "git-send-email 2.14.1", "In-Reply-To": "<20170831035306.29170-1-f4bug@amsat.org>", "References": "<20170831035306.29170-1-f4bug@amsat.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.", "X-Received-From": "2607:f8b0:400d:c09::242", "Subject": "[Qemu-devel] [PATCH 1/7] serial: add serial_chr_nonnull() to use\n\tthe null backend when none provided", "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": "\"Michael S. Tsirkin\" <mst@redhat.com>, =?utf-8?q?Philippe_Mathieu-Daud?=\n\t=?utf-8?b?w6k=?= <f4bug@amsat.org>, \tqemu-devel@nongnu.org", "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": "Suggested-by: Peter Maydell <peter.maydell@linaro.org>\nSigned-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n---\n include/hw/char/serial.h | 1 +\n hw/char/serial.c | 13 +++++++++++++\n 2 files changed, 14 insertions(+)", "diff": "diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h\nindex c4daf11a14..96bccb39e1 100644\n--- a/include/hw/char/serial.h\n+++ b/include/hw/char/serial.h\n@@ -93,6 +93,7 @@ SerialState *serial_mm_init(MemoryRegion *address_space,\n hwaddr base, int it_shift,\n qemu_irq irq, int baudbase,\n Chardev *chr, enum device_endian end);\n+Chardev *serial_chr_nonnull(Chardev *chr);\n \n /* serial-isa.c */\n #define TYPE_ISA_SERIAL \"isa-serial\"\ndiff --git a/hw/char/serial.c b/hw/char/serial.c\nindex 9aec6c60d8..7a100db107 100644\n--- a/hw/char/serial.c\n+++ b/hw/char/serial.c\n@@ -1025,6 +1025,19 @@ static const MemoryRegionOps serial_mm_ops[3] = {\n },\n };\n \n+Chardev *serial_chr_nonnull(Chardev *chr)\n+{\n+ static int serial_id;\n+ char *label;\n+\n+ label = g_strdup_printf(\"discarding-serial%d\", serial_id++);\n+ chr = qemu_chr_new(label, \"null\");\n+ assert(chr);\n+ g_free(label);\n+\n+ return chr;\n+}\n+\n SerialState *serial_mm_init(MemoryRegion *address_space,\n hwaddr base, int it_shift,\n qemu_irq irq, int baudbase,\n", "prefixes": [ "1/7" ] }