]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: radix: Refine IO region partition scope attributes
authorNicholas Piggin <npiggin@gmail.com>
Thu, 17 May 2018 07:06:30 +0000 (17:06 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 18 May 2018 05:38:23 +0000 (15:38 +1000)
commit0067778ab01ebf42f1f8cdae2220e24faea2fd87
treebcd6ca72d319d222568584a39ffcb1851eec756a
parent41a6d38fa3bd0cf2828d1443f074166a981951d6
KVM: PPC: Book3S HV: radix: Refine IO region partition scope attributes

When the radix fault handler has no page from the process address
space (e.g., for IO memory), it looks up the process pte and sets
partition table pte using that to get attributes like CI and guarded.
If the process table entry is to be writable, set _PAGE_DIRTY as well
to avoid an RC update. If not, then ensure _PAGE_DIRTY does not come
across. Set _PAGE_ACCESSED as well to avoid RC update.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_mmu_radix.c