qemu-e2k/target/s390x
Christian Borntraeger 0280b3eb7c s390x/kvm: use cpu model for gscb on compat machines
Starting a guest with
   <os>
    <type arch='s390x' machine='s390-ccw-virtio-2.9'>hvm</type>
  </os>
  <cpu mode='host-model'/>

on an IBM z14 results in

"qemu-system-s390x: Some features requested in the CPU model are not
available in the configuration: gs"

This is because guarded storage is fenced for compat machines that did
not have guarded storage support. While this prevents future migration
abort (by not starting the guest at all), not being able to start a
"host-model" guest is very much unexpected.  As it turns out, even if we
would modify libvirt to not expand the cpu model to contain "gs" for
compat machines, it cannot guarantee that a migration will succeed. For
example if the kernel changes its features (or the user has nested=1 on
one host but not on the other) the migration will fail nevertheless.  So
instead of fencing "gs" for machines <= 2.9 lets allow it for all
machine types that support the CPU model. This will make "host-model"
runnable all the time, while relying on the CPU model to reject invalid
migration attempts. We also need to change the migration for guarded
storage.
Additional discussions about host-model are still pending but are out
of scope of this patch.

Suggested-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Cornelia Huck <Cornelia Huck <cohuck@redhat.com>
Acked-by: Halil Pasic <pasic@linux.vnet.ibm.com>
2017-10-30 09:03:45 +01:00
..
Makefile.objs s390x/kvm: factor out SIGP code into sigp.c 2017-10-20 13:32:10 +02:00
arch_dump.c exec,dump,i386,ppc,s390x: don't include exec/cpu-all.h explicitly 2017-09-19 18:21:33 +02:00
cc_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
cpu-qom.h target/s390x: change CPU type name to "s390x-cpu" 2017-10-30 08:56:28 +01:00
cpu.c tcg: Avoid setting tcg_initialize if !CONFIG_TCG 2017-10-26 17:47:36 +01:00
cpu.h s390x: move s390x_new_cpu() into board code 2017-10-20 13:32:10 +02:00
cpu_features.c s390x/cpumodel: fix max STFL(E) bit number 2017-10-06 10:53:02 +02:00
cpu_features.h target/s390x: introduce (test|set)_be_bit 2017-07-25 09:17:42 +02:00
cpu_features_def.h s390x/cpumodel: wire up new hardware features 2017-07-14 12:29:49 +02:00
cpu_models.c target/s390x: change CPU type name to "s390x-cpu" 2017-10-30 08:56:28 +01:00
cpu_models.h target/s390x: move some s390x typedefs to cpu-qom.h 2017-09-19 18:31:31 +02:00
crypto_helper.c s390x/tcg: add basic MSA features 2017-10-06 10:53:01 +02:00
diag.c S390: use g_new() family of functions 2017-10-20 13:32:10 +02:00
excp_helper.c s390x/tcg: low-address protection support 2017-10-20 13:32:10 +02:00
fpu_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
gdbstub.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
gen-features.c s390x/cpumodel: remove ais from z14 default model-> also for 2.10.1 2017-09-27 11:13:32 +02:00
helper.c s390x: move s390x_new_cpu() into board code 2017-10-20 13:32:10 +02:00
helper.h target/s390x: check CF_PARALLEL instead of parallel_cpus 2017-10-24 13:53:42 -07:00
insn-data.def s390x/tcg: switch to new SIGP handling code 2017-10-20 13:32:10 +02:00
insn-format.def target/s390x: Implement load-on-condition-2 insns 2017-06-23 09:17:44 -07:00
int_helper.c target/s390x: introduce internal.h 2017-08-30 18:23:25 +02:00
internal.h s390x/tcg: implement STOP and RESET interrupts for TCG 2017-10-20 13:32:10 +02:00
interrupt.c s390x/tcg: implement STOP and RESET interrupts for TCG 2017-10-20 13:32:10 +02:00
ioinst.c s390x: refactor error handling for MSCH handler 2017-10-20 13:32:10 +02:00
kvm-stub.c s390x/kvm: factor out SIGP code into sigp.c 2017-10-20 13:32:10 +02:00
kvm.c s390x/kvm: use cpu model for gscb on compat machines 2017-10-30 09:03:45 +01:00
kvm_s390x.h s390x/kvm: factor out SIGP code into sigp.c 2017-10-20 13:32:10 +02:00
machine.c s390x/kvm: use cpu model for gscb on compat machines 2017-10-30 09:03:45 +01:00
mem_helper.c target/s390x: check CF_PARALLEL instead of parallel_cpus 2017-10-24 13:53:42 -07:00
misc_helper.c s390x/tcg: refactor stfl(e) to use s390_get_feat_block() 2017-10-20 13:32:10 +02:00
mmu_helper.c s390x/tcg: low-address protection support 2017-10-20 13:32:10 +02:00
sigp.c target/s390x: special handling when starting a CPU with WAIT PSW 2017-10-20 13:32:10 +02:00
trace-events s390x/kvm: factor out SIGP code into sigp.c 2017-10-20 13:32:10 +02:00
translate.c Capstone disassembler 2017-10-27 08:04:51 +01:00