Re: [PATCH v6 06/18] spapr, ppc: Remove VPM0/RMLS hacks for POWER9

2020-02-25 Thread David Gibson
On Tue, Feb 25, 2020 at 04:58:01PM +0100, Greg Kurz wrote: > On Tue, 25 Feb 2020 12:29:00 +0100 > Greg Kurz wrote: > > > On Tue, 25 Feb 2020 10:37:12 +1100 > > David Gibson wrote: > > > > > For the "pseries" machine, we use "virtual hypervisor" mode where we > > > only model the CPU in non-hype

Re: [PATCH v6 06/18] spapr, ppc: Remove VPM0/RMLS hacks for POWER9

2020-02-25 Thread Greg Kurz
On Tue, 25 Feb 2020 12:29:00 +0100 Greg Kurz wrote: > On Tue, 25 Feb 2020 10:37:12 +1100 > David Gibson wrote: > > > For the "pseries" machine, we use "virtual hypervisor" mode where we > > only model the CPU in non-hypervisor privileged mode. This means that > > we need guest physical address

Re: [PATCH v6 06/18] spapr, ppc: Remove VPM0/RMLS hacks for POWER9

2020-02-25 Thread Greg Kurz
On Tue, 25 Feb 2020 10:37:12 +1100 David Gibson wrote: > For the "pseries" machine, we use "virtual hypervisor" mode where we > only model the CPU in non-hypervisor privileged mode. This means that > we need guest physical addresses within the modelled cpu to be treated > as absolute physical ad

[PATCH v6 06/18] spapr, ppc: Remove VPM0/RMLS hacks for POWER9

2020-02-24 Thread David Gibson
For the "pseries" machine, we use "virtual hypervisor" mode where we only model the CPU in non-hypervisor privileged mode. This means that we need guest physical addresses within the modelled cpu to be treated as absolute physical addresses. We used to do that by clearing LPCR[VPM0] and setting L