qemu/target-s390x
Dominik Dingel 4cb88c3c37 s390x/kvm: enable/reset cmma via vm attributes
Exploit the new api for userspace-controlled cmma. If supported, enable
cmma during kvm initialization and register a reset handler for cmma,
which is also called directly from the load IPL code.

The reset functionality is needed to reset the cmma state of the guest
pages, e.g. if a system reset is triggered via qemu monitor; otherwise
this could result in data corruption.

A guest triggered reboot may now lead to multiple cmma resets; this is
OK, however, as this is slowpath anyway and the simplest way to achieve
the intended effects.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2014-06-10 09:50:27 +02:00
..
arch_dump.c target-s390x: Add missing 'static' and 'const' attributes 2014-03-27 19:22:48 +04:00
cc_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
cpu-qom.h s390x/kvm: hw debugging support via guest PER facility 2014-05-20 13:05:58 +02:00
cpu.c kvm: reset state from the CPU's reset method 2014-05-13 13:12:40 +02:00
cpu.h s390x/kvm: enable/reset cmma via vm attributes 2014-06-10 09:50:27 +02:00
fpu_helper.c softmmu: introduce cpu_ldst.h 2014-06-05 16:10:33 +02:00
gdbstub.c cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
helper.c softmmu: introduce cpu_ldst.h 2014-06-05 16:10:33 +02:00
helper.h tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
insn-data.def target-s390: Perform COMPARE AND SWAP inline 2013-01-05 12:18:46 -08:00
insn-format.def target-s390: Add format based disassassmbly infrastructure 2013-01-05 12:00:27 -08:00
int_helper.c tcg: Invert the inclusion of helper.h 2014-05-28 09:33:54 -07:00
interrupt.c target-s390x: Clean up cpu_inject_*() signatures 2013-02-01 02:02:20 +01:00
ioinst.c s390x/ioinst: CHSC has to set a condition code 2013-12-18 14:24:11 +01:00
ioinst.h s390x/virtio-ccw: Adapter interrupt support. 2014-03-05 09:42:05 +01:00
kvm.c s390x/kvm: enable/reset cmma via vm attributes 2014-06-10 09:50:27 +02:00
Makefile.objs s390: Implement dump-guest-memory support for target s390x 2013-07-30 16:12:25 +02:00
mem_helper.c softmmu: introduce cpu_ldst.h 2014-06-05 16:10:33 +02:00
misc_helper.c s390x/kvm: enable/reset cmma via vm attributes 2014-06-10 09:50:27 +02:00
translate.c softmmu: introduce cpu_ldst.h 2014-06-05 16:10:33 +02:00