]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Adapt to new HPTE format on POWER9
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 16 Nov 2016 05:57:24 +0000 (16:57 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 23 Nov 2016 22:24:23 +0000 (09:24 +1100)
commit2bfb34f518a517666076cd5746f6eea4e79844aa
treedd5f04da7edb82084a021d726c2787ecbc5a4eee
parent2952347f0e169c6d02eea1cd51d0d32275b8c9f7
KVM: PPC: Book3S HV: Adapt to new HPTE format on POWER9

This adapts the KVM-HV hashed page table (HPT) code to read and write
HPT entries in the new format defined in Power ISA v3.00 on POWER9
machines.  The new format moves the B (segment size) field from the
first doubleword to the second, and trims some bits from the AVA
(abbreviated virtual address) and ARPN (abbreviated real page number)
fields.  As far as possible, the conversion is done when reading or
writing the HPT entries, and the rest of the code continues to use
the old format.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_rm_mmu.c