get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/807463/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 807463,
    "url": "http://patchwork.ozlabs.org/api/patches/807463/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170830082702.3011-2-Sergio.G.DelReal@gmail.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": "<20170830082702.3011-2-Sergio.G.DelReal@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-30T08:26:50",
    "name": "[v2,01/13] hvf: add support for Hypervisor.framework in the configure script",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d40b22a08871036f777111af0793ec051814fe6c",
    "submitter": {
        "id": 70675,
        "url": "http://patchwork.ozlabs.org/api/people/70675/?format=api",
        "name": "Sergio Andres Gomez Del Real",
        "email": "sergio.g.delreal@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170830082702.3011-2-Sergio.G.DelReal@gmail.com/mbox/",
    "series": [
        {
            "id": 548,
            "url": "http://patchwork.ozlabs.org/api/series/548/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=548",
            "date": "2017-08-30T08:26:49",
            "name": "add support for Hypervisor.framework in QEMU",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/548/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807463/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807463/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=\"VBd6qNcG\"; 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 3xhzD11wrVz9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 18:28:17 +1000 (AEST)",
            "from localhost ([::1]:48978 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 1dmyM9-0002Kg-4U\n\tfor incoming@patchwork.ozlabs.org; Wed, 30 Aug 2017 04:28:14 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:60425)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dmyLR-0002Ja-Hu\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:30 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dmyLN-0000FK-JN\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:29 -0400",
            "from mail-vk0-x242.google.com ([2607:f8b0:400c:c05::242]:35936)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <sergio.g.delreal@gmail.com>)\n\tid 1dmyLN-0000Ef-Cz\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:25 -0400",
            "by mail-vk0-x242.google.com with SMTP id d124so2188210vkf.3\n\tfor <qemu-devel@nongnu.org>; Wed, 30 Aug 2017 01:27:24 -0700 (PDT)",
            "from localhost.localdomain ([191.109.6.85])\n\tby smtp.gmail.com with ESMTPSA id\n\th74sm1079197vka.8.2017.08.30.01.27.22\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 01:27:22 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=DtmkP1sElrkOXuzj2agLnJnLK86CstdrvAjOxmiM05w=;\n\tb=VBd6qNcGb5ApPslbvSzwx9ToB8X8Jom1qpfNuJg5WFsdafkD9x33zjQicTFlwMGcvp\n\tIQX+sPEzPedJ3dZp7h0lQFIP4eKcO5jp/2RsECHQ3avo0u2Hbyc8AT5w9B1g42MIGKsF\n\tluXWyM0w0Sbw4TJRpXf+VoTUfhmETZV83uzlCQaFsmSm9SdAa60K9/Ri/c0fgjoOABbk\n\tOs25/wd+Uzt6igxAm6zCTymSz2OrDXtE8TAlQIjfUlBD4mtydgTVYdTtldaaXx1TDwQB\n\tdW5VvVGNB9xaHh/G6zD5IrOv4+Est2v/h2IC8rFrizo2mgFIiLTz+lCPgZu5qZY1oivM\n\trNiA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=DtmkP1sElrkOXuzj2agLnJnLK86CstdrvAjOxmiM05w=;\n\tb=pYamlVAqJtxojOl8B6aAryHEtOWBqAtM2M7IHhn+o6LoPeHPBOfdAQ7/CKE7YldP/E\n\t3GSRc4ukPDrJ1BGmQZHDFBRm+8s97IWUiTUjGOEM/WmyyHAMN3kFe6+I03kfJpsOW42v\n\t56C/DtF1gPzW1KLTe6ErWX9mTisyEBZG7abxleNlPzwbj1P3x+OziQZy2i0QKjzIeg5x\n\tw1kwOFo/LHHDa763TuFeMipbp6zLOh5YP20dPAyGNcflmRYpjCloYXeymuR0SkCo7g04\n\t9m2tJ6DgqRsBgK5gkYJuokeRvHwylwKIRhOS3DYF2bagxZM9021kUur5iPWP37Qpi+kP\n\ttBbQ==",
        "X-Gm-Message-State": "AHPjjUgNHvb2KYWIrdldYTfAI2tPwzR3V2jnLFMGCbif0ukA8taW1nUR\n\tae5J7yorWBrKflKQ",
        "X-Received": "by 10.31.85.67 with SMTP id j64mr337013vkb.175.1504081643385;\n\tWed, 30 Aug 2017 01:27:23 -0700 (PDT)",
        "From": "Sergio Andres Gomez Del Real <sergio.g.delreal@gmail.com>",
        "X-Google-Original-From": "Sergio Andres Gomez Del Real\n\t<Sergio.G.DelReal@gmail.com>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Wed, 30 Aug 2017 03:26:50 -0500",
        "Message-Id": "<20170830082702.3011-2-Sergio.G.DelReal@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170830082702.3011-1-Sergio.G.DelReal@gmail.com>",
        "References": "<20170830082702.3011-1-Sergio.G.DelReal@gmail.com>",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2607:f8b0:400c:c05::242",
        "Subject": "[Qemu-devel] [PATCH v2 01/13] hvf: add support for\n\tHypervisor.framework in the configure script",
        "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": "Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.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": "This patch adds to the configure script the code to support the\n--enable-hvf argument. If the OS is Darwin, it checks for presence of\nHVF in the system. The patch also adds strings related to HVF in the\nfile qemu-options.hx.\nQEMU will only support the modern syntax style '-M accel=hvf' no enable\nhvf; the legacy '-enable-hvf' will not be supported.\n\nSigned-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com>\n---\n configure       | 38 ++++++++++++++++++++++++++++++++++++++\n qemu-options.hx | 10 +++++-----\n 2 files changed, 43 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/configure b/configure\nindex dd73cce62f..5d9152b80a 100755\n--- a/configure\n+++ b/configure\n@@ -211,6 +211,17 @@ supported_xen_target() {\n     return 1\n }\n \n+supported_hvf_target() {\n+    test \"$hvf\" = \"yes\" || return 1\n+    glob \"$1\" \"*-softmmu\" || return 1\n+    case \"${1%-softmmu}\" in\n+        x86_64)\n+            return 0\n+        ;;\n+    esac\n+    return 1\n+}\n+\n supported_target() {\n     case \"$1\" in\n         *-softmmu)\n@@ -236,6 +247,7 @@ supported_target() {\n     supported_kvm_target \"$1\" && return 0\n     supported_xen_target \"$1\" && return 0\n     supported_hax_target \"$1\" && return 0\n+    supported_hvf_target \"$1\" && return 0\n     print_error \"TCG disabled, but hardware accelerator not available for '$target'\"\n     return 1\n }\n@@ -309,6 +321,7 @@ vhost_vsock=\"no\"\n vhost_user=\"\"\n kvm=\"no\"\n hax=\"no\"\n+hvf=\"no\"\n rdma=\"\"\n gprof=\"no\"\n debug_tcg=\"no\"\n@@ -727,6 +740,7 @@ Darwin)\n   bsd=\"yes\"\n   darwin=\"yes\"\n   hax=\"yes\"\n+  hvf=\"yes\"\n   LDFLAGS_SHARED=\"-bundle -undefined dynamic_lookup\"\n   if [ \"$cpu\" = \"x86_64\" ] ; then\n     QEMU_CFLAGS=\"-arch x86_64 $QEMU_CFLAGS\"\n@@ -1027,6 +1041,10 @@ for opt do\n   ;;\n   --enable-hax) hax=\"yes\"\n   ;;\n+  --disable-hvf) hvf=\"no\"\n+  ;;\n+  --enable-hvf) hvf=\"yes\"\n+  ;;\n   --disable-tcg-interpreter) tcg_interpreter=\"no\"\n   ;;\n   --enable-tcg-interpreter) tcg_interpreter=\"yes\"\n@@ -1499,6 +1517,7 @@ disabled with --disable-FEATURE, default is enabled if available:\n   bluez           bluez stack connectivity\n   kvm             KVM acceleration support\n   hax             HAX acceleration support\n+  hvf             Hypervisor.framework acceleration support\n   rdma            RDMA-based migration support\n   vde             support for vde network\n   netmap          support for netmap network\n@@ -4900,6 +4919,21 @@ then\n fi\n \n \n+#################################################\n+# Check to see if we have the Hypervisor framework\n+if [ \"$darwin\" == \"yes\" ] ; then\n+  cat > $TMPC << EOF\n+#include <Hypervisor/hv.h>\n+int main() { return 0;}\n+EOF\n+  if ! compile_object \"\"; then\n+    hvf='no'\n+  else\n+    hvf='yes'\n+    LDFLAGS=\"-framework Hypervisor $LDFLAGS\"\n+  fi\n+fi\n+\n #################################################\n # Sparc implicitly links with --relax, which is\n # incompatible with -r, so --no-relax should be\n@@ -5356,6 +5390,7 @@ if test \"$tcg\" = \"yes\" ; then\n     echo \"TCG debug enabled $debug_tcg\"\n     echo \"TCG interpreter   $tcg_interpreter\"\n fi\n+echo \"HVF support       $hvf\"\n echo \"RDMA support      $rdma\"\n echo \"fdt support       $fdt\"\n echo \"preadv support    $preadv\"\n@@ -6388,6 +6423,9 @@ fi\n if supported_hax_target $target; then\n     echo \"CONFIG_HAX=y\" >> $config_target_mak\n fi\n+if supported_hvf_target $target; then\n+    echo \"CONFIG_HVF=y\" >> $config_target_mak\n+fi\n if test \"$target_bigendian\" = \"yes\" ; then\n   echo \"TARGET_WORDS_BIGENDIAN=y\" >> $config_target_mak\n fi\ndiff --git a/qemu-options.hx b/qemu-options.hx\nindex 9f6e2adfff..bcb44420ee 100644\n--- a/qemu-options.hx\n+++ b/qemu-options.hx\n@@ -31,7 +31,7 @@ DEF(\"machine\", HAS_ARG, QEMU_OPTION_machine, \\\n     \"-machine [type=]name[,prop[=value][,...]]\\n\"\n     \"                selects emulated machine ('-machine help' for list)\\n\"\n     \"                property accel=accel1[:accel2[:...]] selects accelerator\\n\"\n-    \"                supported accelerators are kvm, xen, hax or tcg (default: tcg)\\n\"\n+    \"                supported accelerators are kvm, xen, hax, hvf or tcg (default: tcg)\\n\"\n     \"                kernel_irqchip=on|off|split controls accelerated irqchip support (default=off)\\n\"\n     \"                vmport=on|off|auto controls emulation of vmport (default: auto)\\n\"\n     \"                kvm_shadow_mem=size of KVM shadow MMU in bytes\\n\"\n@@ -66,7 +66,7 @@ Supported machine properties are:\n @table @option\n @item accel=@var{accels1}[:@var{accels2}[:...]]\n This is used to enable an accelerator. Depending on the target architecture,\n-kvm, xen, hax or tcg can be available. By default, tcg is used. If there is\n+kvm, xen, hax, hvf or tcg can be available. By default, tcg is used. If there is\n more than one accelerator specified, the next one is used if the previous one\n fails to initialize.\n @item kernel_irqchip=on|off\n@@ -120,13 +120,13 @@ ETEXI\n \n DEF(\"accel\", HAS_ARG, QEMU_OPTION_accel,\n     \"-accel [accel=]accelerator[,thread=single|multi]\\n\"\n-    \"                select accelerator (kvm, xen, hax or tcg; use 'help' for a list)\\n\"\n-    \"                thread=single|multi (enable multi-threaded TCG)\\n\", QEMU_ARCH_ALL)\n+    \"                select accelerator (kvm, xen, hax, hvf or tcg; use 'help' for a list)\\n\"\n+    \"                thread=single|multi (enable multi-threaded TCG)\", QEMU_ARCH_ALL)\n STEXI\n @item -accel @var{name}[,prop=@var{value}[,...]]\n @findex -accel\n This is used to enable an accelerator. Depending on the target architecture,\n-kvm, xen, hax or tcg can be available. By default, tcg is used. If there is\n+kvm, xen, hax, hvf or tcg can be available. By default, tcg is used. If there is\n more than one accelerator specified, the next one is used if the previous one\n fails to initialize.\n @table @option\n",
    "prefixes": [
        "v2",
        "01/13"
    ]
}