Re: [PATCH v3 23/33] KVM: PPC: Book3S HV: Introduce rmap to track nested guest mappings

2018-10-03 Thread Paul Mackerras
On Wed, Oct 03, 2018 at 03:56:37PM +1000, David Gibson wrote: > On Tue, Oct 02, 2018 at 09:31:22PM +1000, Paul Mackerras wrote: > > From: Suraj Jitindar Singh > > > > When a host (L0) page which is mapped into a (L1) guest is in turn > > mapped through to a nested (L2) guest we keep a reverse map

Re: [PATCH v3 23/33] KVM: PPC: Book3S HV: Introduce rmap to track nested guest mappings

2018-10-02 Thread David Gibson
On Tue, Oct 02, 2018 at 09:31:22PM +1000, Paul Mackerras wrote: > From: Suraj Jitindar Singh > > When a host (L0) page which is mapped into a (L1) guest is in turn > mapped through to a nested (L2) guest we keep a reverse mapping (rmap) > so that these mappings can be retrieved later. > > Whenev

[PATCH v3 23/33] KVM: PPC: Book3S HV: Introduce rmap to track nested guest mappings

2018-10-02 Thread Paul Mackerras
From: Suraj Jitindar Singh When a host (L0) page which is mapped into a (L1) guest is in turn mapped through to a nested (L2) guest we keep a reverse mapping (rmap) so that these mappings can be retrieved later. Whenever we create an entry in a shadow_pgtable for a nested guest we create a corre