get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806334,
    "url": "http://patchwork.ozlabs.org/api/patches/806334/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170828015654.2530-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": "<20170828015654.2530-2-Sergio.G.DelReal@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-28T01:56:41",
    "name": "[01/14] hvf: add support for Hypervisor.framework in the configure script",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "39a0fe552a2b969b30b1c98f1201eb19e1d1e21f",
    "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/20170828015654.2530-2-Sergio.G.DelReal@gmail.com/mbox/",
    "series": [
        {
            "id": 56,
            "url": "http://patchwork.ozlabs.org/api/series/56/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=56",
            "date": "2017-08-28T01:56:40",
            "name": "add support for Hypervisor.framework in QEMU",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/56/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806334/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806334/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=\"dgNFbgwu\"; 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 3xgZfl2BgWz9sNw\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 11:58:07 +1000 (AEST)",
            "from localhost ([::1]:36496 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 1dm9JV-0004oN-3Q\n\tfor incoming@patchwork.ozlabs.org; Sun, 27 Aug 2017 21:58:05 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:41971)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dm9Im-0004mb-IW\n\tfor qemu-devel@nongnu.org; Sun, 27 Aug 2017 21:57:21 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dm9Il-0000uy-Bm\n\tfor qemu-devel@nongnu.org; Sun, 27 Aug 2017 21:57:20 -0400",
            "from mail-ua0-x243.google.com ([2607:f8b0:400c:c08::243]:36116)\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 1dm9Il-0000ug-6A\n\tfor qemu-devel@nongnu.org; Sun, 27 Aug 2017 21:57:19 -0400",
            "by mail-ua0-x243.google.com with SMTP id b3so2018467uag.3\n\tfor <qemu-devel@nongnu.org>; Sun, 27 Aug 2017 18:57:19 -0700 (PDT)",
            "from localhost.localdomain ([191.109.6.191])\n\tby smtp.gmail.com with ESMTPSA id\n\ty12sm2696824uad.22.2017.08.27.18.57.16\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 27 Aug 2017 18:57:17 -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=740RUQDnxsmUGuDcVpC5CnaRezzoAHAhR18tTVk7po8=;\n\tb=dgNFbgwuXYbYYc4eg3zfr1fZkWPyc6qkkJJY37zKTkqofI80e5mYmPW8yNAe48t9nh\n\tu4w3L+RZZTlx0QYKfeTfIqPr1ceq+RFwZaFZT/I4D4tatTHOiZYXyI6IzWrcwQLyiWed\n\t4HMQ8zEhh+Ld9OOMQ5ldNFEgsXBJrnxyPgm+hTkfHvBAEiJz3nraqM4cIKlfsDnEHmiw\n\tgiOhHmiu7xPS3rSLJ89ZSwOviH18ccjkHaB1Tp3F8TK3ff2+zRrRgb2upYKvQhiw6mZM\n\tNU84Z8eioo3yGgGYauY3BqeCFvzFEfCdB5OlQ239Ru2Rk+Xk1TcVbbwp8mxH9QkcoPaW\n\tMn/Q==",
        "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=740RUQDnxsmUGuDcVpC5CnaRezzoAHAhR18tTVk7po8=;\n\tb=sTBbgew+vMgEQimS3bw0eMLctdlgkvZfsGyKYHesHxgtw5uyUheq1IOMQ9gQ0BJPGT\n\tkU89l83+i1QxW5gVokwh/DEDBCWABNbNAXVq8+Z8JZkXmHqi/cej4ttw8l6wNL1R8t3r\n\t0H+YpVZzT91EQz5+Sg/oT1w/OuwB3zXEBojLR/CFBV5HXjD5RCtB3Vx5thgkKH71hTuU\n\tHlosEKGRpvSfFEhmfhv8BHUGpyypSZq2Tu5kWzjBI3zqtJOJp5rlc1c3BNPLUk65vCNG\n\t3EIOAkcDhcyk6BHGPpieRt+0bkt06YrOOUAW3zwdBggMBlzRkDX3aoojVtlerq604g3d\n\tKEGg==",
        "X-Gm-Message-State": "AHYfb5izKF4qzzEbjRnPZFtFFQShsgZ/fd6J2maEt1DGJ+IjXEbxzVc7\n\tXXtVL+3/vlAcCtRN",
        "X-Received": "by 10.159.50.16 with SMTP id x16mr3576800uad.20.1503885438223;\n\tSun, 27 Aug 2017 18:57:18 -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": "Sun, 27 Aug 2017 20:56:41 -0500",
        "Message-Id": "<20170828015654.2530-2-Sergio.G.DelReal@gmail.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170828015654.2530-1-Sergio.G.DelReal@gmail.com>",
        "References": "<20170828015654.2530-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:c08::243",
        "Subject": "[Qemu-devel] [PATCH 01/14] 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\n\nSigned-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com>\n---\n configure       | 32 ++++++++++++++++++++++++++++++++\n qemu-options.hx | 20 +++++++++++++++-----\n 2 files changed, 47 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/configure b/configure\nindex dd73cce62f..d9126462a1 100755\n--- a/configure\n+++ b/configure\n@@ -309,6 +309,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 +728,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 +1029,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 +1505,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 +4907,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 +5378,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 +6411,15 @@ fi\n if supported_hax_target $target; then\n     echo \"CONFIG_HAX=y\" >> $config_target_mak\n fi\n+if test \"$hvf\" = \"yes\" ; then\n+  if test \"$target_softmmu\" = \"yes\" ; then\n+    case \"$target_name\" in\n+    i386|x86_64)\n+      echo \"CONFIG_HVF=y\" >> $config_target_mak\n+    ;;\n+    esac\n+  fi\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..841d75cf6c 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@@ -3619,6 +3619,16 @@ applicable to MAC and Windows platform, and thus does not conflict with\n KVM.\n ETEXI\n \n+DEF(\"enable-hvf\", 0, QEMU_OPTION_enable_hvf, \\\n+    \"-enable-hvf     enable Hypervisor.framework virtualization support\\n\", QEMU_ARCH_I386)\n+STEXI\n+@item -enable-hvf\n+@findex -enable-hvf\n+Enable Hypervisor.framework support. This option is only available if\n+HVF support is enabled when compiling. HVF is only applicable to MAC\n+platform, and thus does not conflict with KVM.\n+ETEXI\n+\n DEF(\"xen-domid\", HAS_ARG, QEMU_OPTION_xen_domid,\n     \"-xen-domid id   specify xen guest domain id\\n\", QEMU_ARCH_ALL)\n DEF(\"xen-create\", 0, QEMU_OPTION_xen_create,\n",
    "prefixes": [
        "01/14"
    ]
}