]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: make cmma usage conditionally
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Tue, 25 Mar 2014 12:47:11 +0000 (13:47 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 22 Apr 2014 11:24:13 +0000 (13:24 +0200)
commitf52b72e5a50a4cd0d6e91674ed64338111ef2e78
tree6dbda314904aeef619702812f7b6aab836459dde
parentf7b3aade93b922db4da6486736ca7979bd6ab3b7
KVM: s390: make cmma usage conditionally

When userspace reset the guest without notifying kvm, the CMMA state
of the pages might be unused, resulting in guest data corruption.
To avoid this, CMMA must be enabled only if userspace understands
the implications.

CMMA must be enabled before vCPU creation. It can't be switched off
once enabled.  All subsequently created vCPUs will be enabled for
CMMA according to the CMMA state of the VM.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
[remove now unnecessary calls to page_table_reset_pgste]
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/diag.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c