Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/831255/?format=api
{ "id": 831255, "url": "http://patchwork.ozlabs.org/api/1.2/patches/831255/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/1509101470-7881-24-git-send-email-Dave.Martin@arm.com/", "project": { "id": 19, "url": "http://patchwork.ozlabs.org/api/1.2/projects/19/?format=api", "name": "Linux IMX development", "link_name": "linux-imx", "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org", "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1509101470-7881-24-git-send-email-Dave.Martin@arm.com>", "list_archive_url": null, "date": "2017-10-27T10:51:05", "name": "[v4,23/28] arm64/sve: KVM: Treat guest SVE use as undefined instruction execution", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ff702674acb760006be37586c8d446813639c387", "submitter": { "id": 26612, "url": "http://patchwork.ozlabs.org/api/1.2/people/26612/?format=api", "name": "Dave Martin", "email": "Dave.Martin@arm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-imx/patch/1509101470-7881-24-git-send-email-Dave.Martin@arm.com/mbox/", "series": [ { "id": 10556, "url": "http://patchwork.ozlabs.org/api/1.2/series/10556/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-imx/list/?series=10556", "date": "2017-10-27T10:50:43", "name": "ARM Scalable Vector Extension (SVE)", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/10556/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/831255/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/831255/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming-imx@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"MItL843f\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"0OwDHlQ5\"; dkim-atps=neutral" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yNh3z0h04z9sPm\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 27 Oct 2017 22:10:07 +1100 (AEDT)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e82WZ-0003OW-5y; Fri, 27 Oct 2017 11:10:03 +0000", "from merlin.infradead.org ([2001:8b0:10b:1231::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e82VP-0002lQ-MC for linux-arm-kernel@bombadil.infradead.org;\n\tFri, 27 Oct 2017 11:08:51 +0000", "from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]\n\thelo=foss.arm.com)\n\tby merlin.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e82Ff-0005EV-5s for linux-arm-kernel@lists.infradead.org;\n\tFri, 27 Oct 2017 10:52:37 +0000", "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 93B931715;\n\tFri, 27 Oct 2017 03:52:04 -0700 (PDT)", "from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com\n\t[10.72.51.249])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\tB5F323F24A; Fri, 27 Oct 2017 03:52:02 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=Reqijc3ZuFFZ+ReMiyi3pxqOGj+GAskiHd72XScdgBs=;\n\tb=MItL843fpuLjv5\n\tbNTy8WjV3IWNedsbPPdph3E5U2Ay9P6QWl8gZYx/Xle/GvLeOJNSVyVcMFUrW8CT+smTF6YRm6xRU\n\tZ8TtrrZ4ehfYtrFPAZdhNl4OJcDFV/N88Nx6Spz/y/D6vj9qHUPlmH3S6F2h8CpD+cLqpexQMoa66\n\twIuRanHVO26cDElek1sDG6tHKBLJi/PvDMmteEO9kZ2bYKs61thJxMhbC3dCJDS8p3KZxmgJxO3j1\n\tDx/t3+FjDnjy+g0DFnTGPWP2wCYgMJMxXQi1ss7y85fVXLmXFM82BmLQQrjcbhcrJiD8hiwdkIt2I\n\tEgX28riKbAi917WDBa8Q==;", "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=merlin.20170209;\n\th=Content-Transfer-Encoding:Content-Type:\n\tMIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender\n\t:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:\n\tList-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=2F4Rxxzk6bL/KJ/N6itD3I/ww+VySVUS/aDEKhyo++o=;\n\tb=0OwDHlQ5EOInXRe5Tb3eHtRBDN\n\twmrARO+4r0UNZo587Je4SN0JEDLnpC5euRSgp2rqUEkYanlgHcmFasr+eJBu0+t5kTe4KqwbL/oLM\n\trc4qvMEdyrU3E/VoOnyquhD9iLLSRWc9remWpl19IPAfHIC2eCgxsWKXpD585lgW8iqRGjsl+QcA+\n\t7kPmNGIsaSz/XYTaZa11AxeVO0zD6oucHG8unKvYKQAONXUIfeGr1I/ILMihGZjAv6um60HK9al83\n\tyjjpsdwCDv+EDAWm6/fyAQ/zbnAcKt7AzU3zEiDKaqPoq61r1nJtkIxJCC9G7FgI3ZOl93f3XlJxO\n\tY/ylJwWg==;" ], "From": "Dave Martin <Dave.Martin@arm.com>", "To": "linux-arm-kernel@lists.infradead.org", "Subject": "[PATCH v4 23/28] arm64/sve: KVM: Treat guest SVE use as undefined\n\tinstruction execution", "Date": "Fri, 27 Oct 2017 11:51:05 +0100", "Message-Id": "<1509101470-7881-24-git-send-email-Dave.Martin@arm.com>", "X-Mailer": "git-send-email 2.1.4", "In-Reply-To": "<1509101470-7881-1-git-send-email-Dave.Martin@arm.com>", "References": "<1509101470-7881-1-git-send-email-Dave.Martin@arm.com>", "MIME-Version": "1.0", "X-Spam-Note": "CRM114 invocation failed", "X-Spam-Score": "-6.9 (------)", "X-Spam-Report": "SpamAssassin version 3.4.1 on merlin.infradead.org summary:\n\tContent analysis details: (-6.9 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [217.140.101.70 listed in list.dnswl.org]\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 SPF_PASS SPF: sender matches SPF record\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]", "X-BeenThere": "linux-arm-kernel@lists.infradead.org", "X-Mailman-Version": "2.1.21", "Precedence": "list", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>", "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>", "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>", "Cc": "linux-arch@vger.kernel.org, Okamoto Takayuki <tokamoto@jp.fujitsu.com>,\n\tlibc-alpha@sourceware.org, Ard Biesheuvel <ard.biesheuvel@linaro.org>, \n\tSzabolcs Nagy <szabolcs.nagy@arm.com>, \n\tCatalin Marinas <catalin.marinas@arm.com>,\n\tWill Deacon <will.deacon@arm.com>, =?utf-8?q?Alex_Benn=C3=A9e?=\n\t<alex.bennee@linaro.org>, kvmarm@lists.cs.columbia.edu", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>", "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org", "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org" }, "content": "When trapping forbidden attempts by a guest to use SVE, we want the\nguest to see a trap consistent with SVE not being implemented.\n\nThis patch injects an undefined instruction exception into the\nguest in response to such an exception.\n\nSigned-off-by: Dave Martin <Dave.Martin@arm.com>\nReviewed-by: Alex Bennée <alex.bennee@linaro.org>\nAcked-by: Catalin Marinas <catalin.marinas@arm.com>\nAcked-by: Christoffer Dall <christoffer.dall@linaro.org>\n---\n arch/arm64/kvm/handle_exit.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/arch/arm64/kvm/handle_exit.c b/arch/arm64/kvm/handle_exit.c\nindex 7debb74..b712479 100644\n--- a/arch/arm64/kvm/handle_exit.c\n+++ b/arch/arm64/kvm/handle_exit.c\n@@ -147,6 +147,13 @@ static int kvm_handle_unknown_ec(struct kvm_vcpu *vcpu, struct kvm_run *run)\n \treturn 1;\n }\n \n+static int handle_sve(struct kvm_vcpu *vcpu, struct kvm_run *run)\n+{\n+\t/* Until SVE is supported for guests: */\n+\tkvm_inject_undefined(vcpu);\n+\treturn 1;\n+}\n+\n static exit_handle_fn arm_exit_handlers[] = {\n \t[0 ... ESR_ELx_EC_MAX]\t= kvm_handle_unknown_ec,\n \t[ESR_ELx_EC_WFx]\t= kvm_handle_wfx,\n@@ -160,6 +167,7 @@ static exit_handle_fn arm_exit_handlers[] = {\n \t[ESR_ELx_EC_HVC64]\t= handle_hvc,\n \t[ESR_ELx_EC_SMC64]\t= handle_smc,\n \t[ESR_ELx_EC_SYS64]\t= kvm_handle_sys_reg,\n+\t[ESR_ELx_EC_SVE]\t= handle_sve,\n \t[ESR_ELx_EC_IABT_LOW]\t= kvm_handle_guest_abort,\n \t[ESR_ELx_EC_DABT_LOW]\t= kvm_handle_guest_abort,\n \t[ESR_ELx_EC_SOFTSTP_LOW]= kvm_handle_guest_debug,\n", "prefixes": [ "v4", "23/28" ] }