Received: by 10.213.65.68 with SMTP id h4csp82692imn; Fri, 30 Mar 2018 01:09:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx48EQcXCyh7lsDQIy2WMB8cSPHbfiAV3EVmHcWl+CU//ewa9r5zt0qskrmIkQMi3XhqPy+mj X-Received: by 10.99.94.197 with SMTP id s188mr7804035pgb.21.1522397379378; Fri, 30 Mar 2018 01:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522397379; cv=none; d=google.com; s=arc-20160816; b=KIjw9cpGyL8YHyw/dOJJrX6G9TIdSX7u/mu4SGoDUpCq03d/x/SMVZGiypZJXzoRiR kYEfcMPMeGWD9gGRopIGWftmly3Dgrc6n+TtqzaJH9YV5OiOIlaTKrc+x+6rozubkSue FkNYNFJuye63Da/eR6TV1IFcDAUMxt6O34MEud+sKT6v1KRhafaVqv7gBcLJ58UOOyNZ YzqcbNZhp5lkEY29uWAawQFrC1Pt2DDdxFYC4qT9+txJ3MKKmf0kMSZFIplJKdwN6G0Y /nWobdouBctgF1zB43/hGBPNx1P1PO8cv5ig1Mw/j4LCqmEWK70/OT8FOL6IZKpXiVkK wapA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=povo5a3FuA8M4cfK3P5tvYRonE/uZrck9J4lN/rFUIY=; b=LdG9n/PqFdekF6tLzrvUF2BWcbrv/K2QLK7DsHJxJsQCj2cFaiiieUJiWqUKAycRGa M1wEHQkrYCKw4FRq4kAXbsEbMc/vWi81nSCuAatJpwjXn2GHKSYi6Q9EbidXcQLBwr0U 3lIsPahGtMBWzubrlaeOVWbVq9vWAzXqn3mBR4J9qF1v6UF0aE0i3YDxvjnuduO/dK25 4DNMzOqrF98zYGG7DNteqyfuTyGeGuirCabQVXsnjDB0kInwxjdDhxmQ9TeS3/gErEMl zhUVnOpSrEiMQyIPxfnwSfLvcRQNG19wpFRyZ3/5eUEv7dedVyL4qneyevY0ukMeX+QU 7NDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=yBBgGcT3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si1645978pfi.213.2018.03.30.01.09.25; Fri, 30 Mar 2018 01:09:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=yBBgGcT3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751238AbeC3IIR (ORCPT + 99 others); Fri, 30 Mar 2018 04:08:17 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35658 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbeC3IIO (ORCPT ); Fri, 30 Mar 2018 04:08:14 -0400 Received: by mail-wm0-f43.google.com with SMTP id r82so15615144wme.0 for ; Fri, 30 Mar 2018 01:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=povo5a3FuA8M4cfK3P5tvYRonE/uZrck9J4lN/rFUIY=; b=yBBgGcT30DwufY5dgJmIscOhHh/bhn0oWQRYKF9XoMiklsCx1WbwpKK4Qx04foj1s8 uXvHQi1YT+hVMjRC1OgXxDPe0Jah+rggXdz9EUalLUyLrBMtsWmE6tmQX1+SzZrMCohT qxKtqbzR1O4FIeBgsRzuAqalKPTv1tq7CGTADnrMvMXUqXbxisVi4bB2d+BZVpAoE7zH yqJKx6ocme9ICFrjY9i08wYJtqHGjOJPsFtL1PlkHY5pUgDN8E6Lvmh5zCcVVNhptdnc lzRX7FlhwMr2gW5p9guGmS1EBzFYTSzgpopDw4c4VFkdPKxW2tKgA06xIZzeZO9eWXnB Tlbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=povo5a3FuA8M4cfK3P5tvYRonE/uZrck9J4lN/rFUIY=; b=H73OZOUybxSHtXxZJd8n5S31GyjnkEq4ozNNZxs800Uqfs1kVDVeqS2rho38DnR1fw YQguA/yTdO975zlG6f/6Y7eOs7XnoVGOpTawBVesy7aogQ1O/QYDnaSIfkRnkrYMpBYl rElmS6uwQE99NV3xJw4mdpHk90gffuP6iErMua6R32DPKLZpDrk7M4RgZmDdsNzBpqNO yaU7hSUUMNMORnwI8s8nUnDtnCeVqafyVKdsm/hBhytsLEpY1cZZgH+5kaHkOX4zW94j PU3WBCAO0Jh0HMeldoEVUijl+QjzaF8+zgYZ5IYy3i+SV2WCu3A+JLMHoG5x5XuzVEnf KdIQ== X-Gm-Message-State: AElRT7FT3kwRSp1ietGRhBnThqnt2JIhzNA0kxwzUcsteMhoJtqrAXOu uE36xegCVmOFFN+sUte6IJz8RA== X-Received: by 10.80.169.50 with SMTP id l47mr2085636edc.106.1522397293034; Fri, 30 Mar 2018 01:08:13 -0700 (PDT) Received: from node.shutemov.name ([178.124.220.81]) by smtp.gmail.com with ESMTPSA id k8sm4770379edn.37.2018.03.30.01.08.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Mar 2018 01:08:12 -0700 (PDT) Received: by node.shutemov.name (Postfix, from userid 1000) id E603A648D520; Fri, 30 Mar 2018 11:07:35 +0300 (+03) Date: Fri, 30 Mar 2018 11:07:35 +0300 From: "Kirill A. Shutemov" To: "Kirill A. Shutemov" Cc: Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky , Dave Hansen , Kai Huang , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv2 06/14] mm/page_alloc: Propagate encryption KeyID through page allocator Message-ID: <20180330080735.cvajv6dbzbi2in7b@node.shutemov.name> References: <20180328165540.648-1-kirill.shutemov@linux.intel.com> <20180328165540.648-7-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180328165540.648-7-kirill.shutemov@linux.intel.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 28, 2018 at 07:55:32PM +0300, Kirill A. Shutemov wrote: > diff --git a/arch/tile/mm/homecache.c b/arch/tile/mm/homecache.c > index 4432f31e8479..99580091830b 100644 > --- a/arch/tile/mm/homecache.c > +++ b/arch/tile/mm/homecache.c > @@ -398,7 +398,7 @@ struct page *homecache_alloc_pages_node(int nid, gfp_t gfp_mask, > { > struct page *page; > BUG_ON(gfp_mask & __GFP_HIGHMEM); /* must be lowmem */ > - page = alloc_pages_node(nid, gfp_mask, order); > + page = alloc_pages_node(rch/x86/events/intel/pt.cnid, gfp_mask, order, 0); > if (page) > homecache_change_page_home(page, order, home); > return page; Ouch. Fixup: diff --git a/arch/tile/mm/homecache.c b/arch/tile/mm/homecache.c index 99580091830b..9eb14da556a8 100644 --- a/arch/tile/mm/homecache.c +++ b/arch/tile/mm/homecache.c @@ -398,7 +398,7 @@ struct page *homecache_alloc_pages_node(int nid, gfp_t gfp_mask, { struct page *page; BUG_ON(gfp_mask & __GFP_HIGHMEM); /* must be lowmem */ - page = alloc_pages_node(rch/x86/events/intel/pt.cnid, gfp_mask, order, 0); + page = alloc_pages_node(nid, gfp_mask, order, 0); if (page) homecache_change_page_home(page, order, home); return page; -- Kirill A. Shutemov