Re: [PATCH kernel] KVM: PPC: Preserve storage control bits

2017-03-27 Thread David Gibson
On Fri, Mar 24, 2017 at 05:49:22PM +1100, Alexey Kardashevskiy wrote: > PR KVM page fault handler performs eaddr to pte translation for a guest, > however kvmppc_mmu_book3s_64_xlate() does not preserve WIMG bits > (storage control) in the kvmppc_pte struct. If PR KVM is running as > a second level

[PATCH kernel] KVM: PPC: Preserve storage control bits

2017-03-23 Thread Alexey Kardashevskiy
PR KVM page fault handler performs eaddr to pte translation for a guest, however kvmppc_mmu_book3s_64_xlate() does not preserve WIMG bits (storage control) in the kvmppc_pte struct. If PR KVM is running as a second level guest under HV KVM, and PR KVM tries inserting HPT entry, this fails in HV KVM