]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S PR: Set hflag to indicate that POWER9 supports 1T segments
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 7 Dec 2018 01:17:03 +0000 (12:17 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 14 Dec 2018 04:39:47 +0000 (15:39 +1100)
commit9bd7d50a9c01d688feafc6f1291b4b43a175fc44
tree773d7d7a0133a662aaecc01db51f2c6e0e7960b9
parent2053c02d374213d700a0c1258000897da2c3dcb8
KVM: PPC: Book3S PR: Set hflag to indicate that POWER9 supports 1T segments

When booting a kvm-pr guest on a POWER9 machine the following message is
observed:
"qemu-system-ppc64: KVM does not support 1TiB segments which guest expects"

This is because the guest is expecting to be able to use 1T segments
however we don't indicate support for it. This is because we don't set
the BOOK3S_HFLAG_MULTI_PGSIZE flag in the hflags in kvmppc_set_pvr_pr()
on POWER9.

POWER9 does indeed have support for 1T segments, so add a case for
POWER9 to the switch statement to ensure it is set.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_pr.c