Subject: Re: [RFC 00/10] Process-local memory allocations for hiding KVM secrets References: <20190612170834.14855-1-mhillenb@amazon.de> <58788f05-04c3-e71c-12c3-0123be55012c@amazon.com> <63b1b249-6bc7-ffd9-99db-d36dd3f1a962@intel.com> <698ca264-123d-46ae-c165-ed62ea149896@intel.com> <5AA8BF10-8987-4FCB-870C-667A5228D97B@gmail.com> <3131CDA2-F6CF-43AC-A9FC-448DC6983596@gmail.com> From: Dave Hansen Message-ID: <57a319bf-73da-c04b-cdff-1717f3699268@intel.com> Date: Mon, 17 Jun 2019 11:55:58 -0700 MIME-Version: 1.0 In-Reply-To: <3131CDA2-F6CF-43AC-A9FC-448DC6983596@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit To: Nadav Amit Cc: Andy Lutomirski , Alexander Graf , Thomas Gleixner , Marius Hillenbrand , kvm list , LKML , Kernel Hardening , Linux-MM , Alexander Graf , David Woodhouse , the arch/x86 maintainers , Peter Zijlstra List-ID: On 6/17/19 11:50 AM, Nadav Amit wrote: >> The idea is that you have a per-cpu address space. Certain kernel >> virtual addresses would map to different physical address based on where >> you are running. Each of the physical addresses would be "owned" by a >> single CPU and would, by convention, never use a PGD that mapped an >> address unless that CPU that "owned" it. >> >> In that case, you never really invalidate those addresses. > I understand, but as I see it, this is not related directly to PCIDs. Yeah, the only link I was thinking of is that we can manage per-CPU PGDs in the same way that we manage PCIDs. Basically we can reuse a chunk of the software concept.