OSDN Git Service

KVM: s390: Refactor host cmma and pfmfi interpretation controls
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Fri, 16 Feb 2018 11:16:14 +0000 (12:16 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 9 Mar 2018 09:44:17 +0000 (09:44 +0000)
commitc9f0a2b87f9e95197c2f81920a82bcef6ad3db99
tree53b2b9c906ee4b0e607cdb4aef867c114127351e
parentc3b9e3e1ea1c1d1524b56b6734711db2a6fc2163
KVM: s390: Refactor host cmma and pfmfi interpretation controls

use_cmma in kvm_arch means that the KVM hypervisor is allowed to use
cmma, whereas use_cmma in the mm context means cmm has been used before.
Let's rename the context one to uses_cmm, as the vm does use
collaborative memory management but the host uses the cmm assist
(interpretation facility).

Also let's introduce use_pfmfi, so we can remove the pfmfi disablement
when we activate cmma and rather not activate it in the first place.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Message-Id: <1518779775-256056-2-git-send-email-frankja@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/asm/mmu.h
arch/s390/include/asm/mmu_context.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c