From mboxrd@z Thu Jan 1 00:00:00 1970 From: Logan Gunthorpe Subject: Re: PROBLEM: Resume form hibernate broken by setting NX on gap Date: Fri, 10 Jun 2016 16:28:01 -0600 Message-ID: <575B3EF1.3060507@deltatee.com> References: <573DF82D.50006@deltatee.com> <34107887.ATgOLutrT1@vostro.rjw.lan> <6452365.7hjtWaBW7Y@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from ale.deltatee.com ([207.54.116.67]:55799 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724AbcFJW2R (ORCPT ); Fri, 10 Jun 2016 18:28:17 -0400 In-Reply-To: <6452365.7hjtWaBW7Y@vostro.rjw.lan> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: "Rafael J. Wysocki" , Kees Cook Cc: "Rafael J. Wysocki" , Stephen Smalley , Ingo Molnar , Ingo Molnar , the arch/x86 maintainers , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List , Andy Lutomirski , Borislav Petkov , Denys Vlasenko , Brian Gerst On 10/06/16 04:29 PM, Rafael J. Wysocki wrote: > OK, I have a theory, but I need a bit of help. > > This may be a dumb question, but I don't quite remember the answer readily. > > Given a physical address, how do I get the corresponding virtual one under > the kernel identity mapping? Is that not just 'phys_to_virt(x)'?? Logan