From patchwork Tue Jan 26 20:57:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 8127301 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 952799F1C0 for ; Tue, 26 Jan 2016 21:01:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A1AE320251 for ; Tue, 26 Jan 2016 21:00:58 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D158C20266 for ; Tue, 26 Jan 2016 21:00:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aOAgJ-0001Ni-7g; Tue, 26 Jan 2016 20:57:43 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aOAgH-0001Nb-UX for xen-devel@lists.xenproject.org; Tue, 26 Jan 2016 20:57:42 +0000 Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id F0/05-24375-4CDD7A65; Tue, 26 Jan 2016 20:57:40 +0000 X-Env-Sender: bp@alien8.de X-Msg-Ref: server-15.tower-31.messagelabs.com!1453841860!17985649!1 X-Originating-IP: [78.46.96.112] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 22408 invoked from network); 26 Jan 2016 20:57:40 -0000 Received: from mail.skyhub.de (HELO mail.skyhub.de) (78.46.96.112) by server-15.tower-31.messagelabs.com with SMTP; 26 Jan 2016 20:57:40 -0000 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1dvYHKxdOnXg; Tue, 26 Jan 2016 21:57:39 +0100 (CET) Received: from pd.tnic (p54AF4117.dip0.t-ipconnect.de [84.175.65.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C0FF7245AA5; Tue, 26 Jan 2016 21:57:37 +0100 (CET) Received: by pd.tnic (Postfix, from userid 1000) id 7AC281619C6; Tue, 26 Jan 2016 21:57:33 +0100 (CET) From: Borislav Petkov To: Ingo Molnar Date: Tue, 26 Jan 2016 21:57:24 +0100 Message-Id: <1453841853-11383-9-git-send-email-bp@alien8.de> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1453841853-11383-1-git-send-email-bp@alien8.de> References: <1453841853-11383-1-git-send-email-bp@alien8.de> Cc: linux-arch@vger.kernel.org, Andrew Banman , Naoya Horiguchi , Dan Williams , LKML , Tang Chen , linux-mm , David Vrabel , David Rientjes , Gu Zheng , xen-devel@lists.xenproject.org, Boris Ostrovsky , Mel Gorman , Andrew Morton Subject: [Xen-devel] [PATCH 08/17] xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Toshi Kani Set IORESOURCE_SYSTEM_RAM in struct resource.flags of "System RAM" entries. Signed-off-by: Toshi Kani Acked-by: David Vrabel # xen Cc: Andrew Banman Cc: Andrew Morton Cc: Boris Ostrovsky Cc: Dan Williams Cc: David Rientjes Cc: David Vrabel Cc: Gu Zheng Cc: Konrad Rzeszutek Wilk Cc: linux-arch@vger.kernel.org Cc: linux-mm Cc: Mel Gorman Cc: Naoya Horiguchi Cc: Tang Chen Cc: xen-devel@lists.xenproject.org Link: http://lkml.kernel.org/r/1452020081-26534-8-git-send-email-toshi.kani@hpe.com Signed-off-by: Borislav Petkov --- drivers/xen/balloon.c | 2 +- mm/memory_hotplug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index 12eab503efd1..dc4305b407bf 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -257,7 +257,7 @@ static struct resource *additional_memory_resource(phys_addr_t size) return NULL; res->name = "System RAM"; - res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; + res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; ret = allocate_resource(&iomem_resource, res, size, 0, -1, diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 4af58a3a8ffa..979b18cbd343 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -138,7 +138,7 @@ static struct resource *register_memory_resource(u64 start, u64 size) res->name = "System RAM"; res->start = start; res->end = start + size - 1; - res->flags = IORESOURCE_MEM | IORESOURCE_BUSY; + res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; if (request_resource(&iomem_resource, res) < 0) { pr_debug("System RAM resource %pR cannot be added\n", res); kfree(res);