Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/807469/?format=api
{ "id": 807469, "url": "http://patchwork.ozlabs.org/api/patches/807469/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170830082702.3011-8-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-8-Sergio.G.DelReal@gmail.com>", "list_archive_url": null, "date": "2017-08-30T08:26:56", "name": "[v2,07/13] apic: add function to apic that will be used by hvf", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c3f93af30990786fd50bb54434816e5ba0ba0692", "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-8-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/807469/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/807469/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=\"LJJXWjL/\"; 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 3xhzH11ykNz9t0M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 18:30:53 +1000 (AEST)", "from localhost ([::1]:48990 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 1dmyOg-0004Xj-N2\n\tfor incoming@patchwork.ozlabs.org; Wed, 30 Aug 2017 04:30:50 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:60519)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dmyLi-0002UB-JT\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:47 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <sergio.g.delreal@gmail.com>) id 1dmyLg-0000NL-1A\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:46 -0400", "from mail-ua0-x244.google.com ([2607:f8b0:400c:c08::244]:36832)\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 1dmyLf-0000N8-T8\n\tfor qemu-devel@nongnu.org; Wed, 30 Aug 2017 04:27:43 -0400", "by mail-ua0-x244.google.com with SMTP id y50so2343467uay.3\n\tfor <qemu-devel@nongnu.org>; Wed, 30 Aug 2017 01:27:43 -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.42\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 30 Aug 2017 01:27:42 -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=2wAdGKBDZdwPdxg49ZXuQja2uoNNK/CXjUJtPiiThno=;\n\tb=LJJXWjL/Fgf3FsSPLY+Utt86WJoXnpT4xkfBmZxoXmRKT2S0uVcPJI2HQ3QM6MWwhS\n\tA6yNcQZoD/2JbizJnFXfVVD+74IJI3Bi+90ToZ7DvPdm/30oXR+NdFfFgv7v9YP3I5mx\n\td/N7tTY7ET0eXYEvHV3xavn3REM/RTtEr/8ljFyIHMpUvzOfmbABmAL7++r16QdME2OP\n\tu9mCSmVF3QCf1tbx9F8eEJ5eJlAwQhtF0uVnaHzGlf/QUHKXWpLcoDgBnAits6DAxIBS\n\tUgViKk/LmKBF5Ju/stT5pBw1cvJm75UR8dPyuquuF7U2SkhjAAe6rStOQZhemfGcwWar\n\ttDLA==", "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=2wAdGKBDZdwPdxg49ZXuQja2uoNNK/CXjUJtPiiThno=;\n\tb=AzAoi4eU8dHIe1R6dKQB2yS/4GYz3lbBgk7+gA85t3CRpbKLhrkmLs2kSP8k1uQDx4\n\tU/XtFhPMk/XJulTaCW0wVLPw/JwX1sixtYMSkaQKDsLzC74vHe2GZqGd+uv8KAiFpewX\n\tbzRsKJfSBR8XGMFFcQ2aCscpbCsuQJZtduRU0pUfFWtofUhsO+Z59axD01Zd3A+zjD64\n\tFXmjjN31dsGLHti59jV5/fykZNdMQi4q5HHCeukLeGrL/L5kSvph3osnjmfqamYm5/Sh\n\thkLlOJ7uDdAdYerWV+wpvrlsw0QtUwOF3J2LkLwCEyN4MrUl7QDJVFMZOv6COBimgW/d\n\tXigA==", "X-Gm-Message-State": "AHYfb5iNqU6Yv1/4MbwjNFUnr2SfnADnsd//0ty919KRXptQV82h9uZ6\n\tfwuAjq0k3pvBiSc5", "X-Received": "by 10.176.77.146 with SMTP id s18mr433969uag.106.1504081663213; \n\tWed, 30 Aug 2017 01:27:43 -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:56 -0500", "Message-Id": "<20170830082702.3011-8-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:c08::244", "Subject": "[Qemu-devel] [PATCH v2 07/13] apic: add function to apic that will\n\tbe used by hvf", "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 commit adds the function apic_get_highest_priority_irr to\napic.c and exports it through the interface in apic.h for use by hvf.\n\nSigned-off-by: Sergio Andres Gomez Del Real <Sergio.G.DelReal@gmail.com>\n---\n hw/intc/apic.c | 11 +++++++++++\n include/hw/i386/apic.h | 1 +\n 2 files changed, 12 insertions(+)", "diff": "diff --git a/hw/intc/apic.c b/hw/intc/apic.c\nindex fe15fb6024..3de59d07fd 100644\n--- a/hw/intc/apic.c\n+++ b/hw/intc/apic.c\n@@ -305,6 +305,17 @@ static void apic_set_tpr(APICCommonState *s, uint8_t val)\n }\n }\n \n+int apic_get_highest_priority_irr(DeviceState *dev)\n+{\n+ APICCommonState *s;\n+\n+ if (!dev) {\n+ return -1;\n+ }\n+ s = APIC_COMMON(dev);\n+ return get_highest_priority_int(s->irr);\n+}\n+\n static uint8_t apic_get_tpr(APICCommonState *s)\n {\n apic_sync_vapic(s, SYNC_FROM_VAPIC);\ndiff --git a/include/hw/i386/apic.h b/include/hw/i386/apic.h\nindex ea48ea9389..a9f6c0aa33 100644\n--- a/include/hw/i386/apic.h\n+++ b/include/hw/i386/apic.h\n@@ -20,6 +20,7 @@ void apic_init_reset(DeviceState *s);\n void apic_sipi(DeviceState *s);\n void apic_poll_irq(DeviceState *d);\n void apic_designate_bsp(DeviceState *d, bool bsp);\n+int apic_get_highest_priority_irr(DeviceState *dev);\n \n /* pc.c */\n DeviceState *cpu_get_current_apic(void);\n", "prefixes": [ "v2", "07/13" ] }