Re: [PATCH kernel] KVM: PPC: Fix clearing never mapped TCEs in realmode

2021-09-03 Thread Michael Ellerman
On Fri, 27 Aug 2021 14:07:06 +1000, Alexey Kardashevskiy wrote: > Since e1a1ef84cd07, pages for TCE tables for KVM guests are allocated > only when needed. This allows skipping any update when clearing TCEs. > This works mostly fine as TCE updates are handled when MMU is enabled. > The realmode han

Re: [PATCH kernel] KVM: PPC: Fix clearing never mapped TCEs in realmode

2021-08-31 Thread Leonardo BrĂ¡s
Hello Alexey, On Fri, 2021-08-27 at 14:07 +1000, Alexey Kardashevskiy wrote: > Since e1a1ef84cd07, pages for TCE tables for KVM guests are allocated > only when needed. This allows skipping any update when clearing TCEs. > This works mostly fine as TCE updates are handled when MMU is enabled. > Th

[PATCH kernel] KVM: PPC: Fix clearing never mapped TCEs in realmode

2021-08-26 Thread Alexey Kardashevskiy
Since e1a1ef84cd07, pages for TCE tables for KVM guests are allocated only when needed. This allows skipping any update when clearing TCEs. This works mostly fine as TCE updates are handled when MMU is enabled. The realmode handlers fail with H_TOO_HARD when pages are not yet allocated except when