diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2018-01-11 06:54:26 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2018-01-18 02:05:19 +0100 |
commit | 00608e1f007e4cf6031485c5630e0e504bceef9b (patch) | |
tree | 4d77031b241c77ff089cfa6ee43c78020ec700a2 /net/ipv6/ip6_gre.c | |
parent | KVM: PPC: Book3S HV: Do SLB load/unload with guest LPCR value loaded (diff) | |
download | linux-00608e1f007e4cf6031485c5630e0e504bceef9b.tar.xz linux-00608e1f007e4cf6031485c5630e0e504bceef9b.zip |
KVM: PPC: Book3S HV: Allow HPT and radix on the same core for POWER9 v2.2
POWER9 chip versions starting with "Nimbus" v2.2 can support running
with some threads of a core in HPT mode and others in radix mode.
This means that we don't have to prohibit independent-threads mode
when running a HPT guest on a radix host, and we don't have to do any
of the synchronization between threads that was introduced in commit
c01015091a77 ("KVM: PPC: Book3S HV: Run HPT guests on POWER9 radix
hosts", 2017-10-19).
Rather than using up another CPU feature bit, we just do an
explicit test on the PVR (processor version register) at module
startup time to determine whether we have to take steps to avoid
having some threads in HPT mode and some in radix mode (so-called
"mixed mode"). We test for "Nimbus" (indicated by 0 or 1 in the top
nibble of the lower 16 bits) v2.2 or later, or "Cumulus" (indicated by
2 or 3 in that nibble) v1.1 or later.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
0 files changed, 0 insertions, 0 deletions