Message ID | 20170619165753.25049-8-julien.grall@arm.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp942442obh; Mon, 19 Jun 2017 09:59:56 -0700 (PDT) X-Received: by 10.36.167.76 with SMTP id s12mr23623917iti.97.1497891596621; Mon, 19 Jun 2017 09:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497891596; cv=none; d=google.com; s=arc-20160816; b=BBWkGPn/BEP4mTjN0Xd7vAyb9Lj4GHAm8kdTzI13fWzNCG34E9LvkYuw6bKkWDeLcY fiwrKJ4d2N6NXVQBvApVrfF/Dn4pro3/XGHJhwhjOsT2Ed0cWzRBfMP8fppgy/zMD8HO XOM1pEBwR111E3H1hpvHHZ37SzIphBWJRjNIqitUAx4tG/h69BQt0EvDV80Pv3ScHVms SumO5Dq5yX7Kp3xPg3MeQeAw8CxzTJkoanyYxLgW14/P8JWmQgstsz3oxJ3k7iWsqoP4 MOUxK/Y6y3a3zZJJQ8s+rj4ZggXhgtU7OX5p0WlXUrMMtdKIj4EFc9IW7g3mNPIcrbBE 89sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=HMdBXsMFkpQ/pgoViJnEj1gO7GOGRlo1GqUHSMgs2As=; b=K+tPfyH+BYc3ozBsvA3pCmrB1z+1npaK8UiDQUEghLrfScjnwSD+IxlxG6LU9X+OWf R3lTsA9sqy/pea4KWtbi0ZsEht7DGjPwhBQq6dMGScFE+tOhHd8RAsFTCFIXCZq/aibJ ZnWURnw27rHw5ToEOZ1y964cYfsmtaGaiAgxBl5FmgucmXMamaKQ8BoNSlWeFNh7g4O5 Q/m9lOU+G1XkA2zn1GWG5cc0JXRlsH96DX855M3cw3blpW4inpEi1QHXhZVpPG7mEMb4 t1gM5pRXYVou5rbPWqQdjmix2F2n/CJszechc324BrzQEGuRyboRHKDAh46WVkKOg5wu PPTA== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: <xen-devel-bounces@lists.xen.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id y8si6508574iti.1.2017.06.19.09.59.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jun 2017 09:59:56 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1dN00A-0003lN-H8; Mon, 19 Jun 2017 16:58:10 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <julien.grall@arm.com>) id 1dN009-0003jg-Od for xen-devel@lists.xen.org; Mon, 19 Jun 2017 16:58:09 +0000 Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id D4/AE-01985-0A208495; Mon, 19 Jun 2017 16:58:08 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRWlGSWpSXmKPExsVysyfVTXcBk0e kQcNdMYslHxezODB6HN39mymAMYo1My8pvyKBNWPf39mMBZe4Kl5vvMbSwPiUo4uRi0NIYDOj xPTTf9kgnNOMEsv2LmXvYuTkYBPQlLjz+RMTiC0iIC1x7fNlRhCbWcBB4s3HeywgtrBAhMTU/ 9vB4iwCqhKzvl4Ci/MKWErM7f8PFpcQkJfY1XaRFcTmFLCS+D7/GlhcCKjm+JNbbBMYuRcwMq xi1ChOLSpLLdI1NNFLKspMzyjJTczM0TU0MNbLTS0uTkxPzUlMKtZLzs/dxAj0MAMQ7GBcsd3 zEKMkB5OSKO+s/+6RQnxJ+SmVGYnFGfFFpTmpxYcYZTg4lCR4rzB4RAoJFqWmp1akZeYAQw0m LcHBoyTCW/MbqJW3uCAxtzgzHSJ1ilGXY8Pq9V+YhFjy8vNSpcR5FRiBZgiAFGWU5sGNgIX9J UZZKWFeRqCjhHgKUotyM0tQ5V8xinMwKgnzPgWZwpOZVwK36RXQEUxARzCfcQE5oiQRISXVwO h1MeJfR7mqFYvfd0/j33JLTznU3/a+4ry+Xf3hBLH+UP6mlhktH7fEt7183HlMxfT5R9vvf39 PnDHdjp3h52YxDTkO5wnGeZOWFTfK2PQ+2Gh89nXcq+zV644t7zALO5tWJcWjp6ziMJWndd35 as7TPq+en/jXUHCSadOSDZaHE5o7Q/8uU1ZiKc5INNRiLipOBABe5pPVdgIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1497891487!67805838!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 38890 invoked from network); 19 Jun 2017 16:58:08 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-6.tower-31.messagelabs.com with SMTP; 19 Jun 2017 16:58:08 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9833415AD; Mon, 19 Jun 2017 09:58:07 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E8F7E3F41F; Mon, 19 Jun 2017 09:58:06 -0700 (PDT) From: Julien Grall <julien.grall@arm.com> To: xen-devel@lists.xen.org Date: Mon, 19 Jun 2017 17:57:44 +0100 Message-Id: <20170619165753.25049-8-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170619165753.25049-1-julien.grall@arm.com> References: <20170619165753.25049-1-julien.grall@arm.com> Cc: Julien Grall <julien.grall@arm.com>, sstabellini@kernel.org Subject: [Xen-devel] [PATCH v2 07/16] xen/arm: alternative: Redefine virt_to_mfn to support typesafe X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> |
Series |
xen/arm: Clean-up memory subsystems
|
expand
|
diff --git a/xen/arch/arm/alternative.c b/xen/arch/arm/alternative.c index 4d7e5b6155..a3bcda3117 100644 --- a/xen/arch/arm/alternative.c +++ b/xen/arch/arm/alternative.c @@ -32,6 +32,10 @@ #include <asm/insn.h> #include <asm/page.h> +/* Override macros from asm/page.h to make them work with mfn_t */ +#undef virt_to_mfn +#define virt_to_mfn(va) _mfn(__virt_to_mfn(va)) + extern const struct alt_instr __alt_instructions[], __alt_instructions_end[]; struct alt_region { @@ -154,7 +158,7 @@ static int __apply_alternatives_multi_stop(void *unused) { int ret; struct alt_region region; - mfn_t xen_mfn = _mfn(virt_to_mfn(_start)); + mfn_t xen_mfn = virt_to_mfn(_start); paddr_t xen_size = _end - _start; unsigned int xen_order = get_order_from_bytes(xen_size); void *xenmap;