qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1 RFC 00/10] QEMU: s390: cpu model implementation
@ 2014-05-13 15:00 Michael Mueller
  2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 01/10] QEMU: introduce function cpudesc_avail Michael Mueller
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Michael Mueller @ 2014-05-13 15:00 UTC (permalink / raw)
  To: qemu-devel, kvm, linux-s390, linux-kernel
  Cc: mimu, Gleb Natapov, Alexander Graf, Christian Borntraeger,
	Jason J. Herne, Cornelia Huck, Paolo Bonzini, Andreas Faerber,
	Richard Henderson

This patch set in combination with its kernel kvm patch set proposes an
implementation of S390 cpu models. The origin of this item is to provide
a means for management interfaces like libvirt to draw decisions if life
guest migration to a target hypervisor is reasonable.

A migration constraint is that a target hypervisor is capable to run a
guest with the same S390 cpu model as the source hypervisor does. To
verify this condition, the administration interface employes the existing
QMP command "query-cpu-definitions" which returns a list of all currently
supported S390 cpu models of a given host system. Together with the newly
defined QMP command "query-cpu-model", which returns the current active
S390 cpu model of a guest, a conclusion can be drawn if a migration is
possible.

A S390 cpu model is defined as a triple of machine type, cpu facility set
and IBC value. Each historic, current and future triple receives a name
composed of the machine type and its general availability counter. This name
forms the cpu model name (e.g.: "2817-GA2".)

With means of the Instruction Blocking Control feature (IBC), the instruction
set available to a given guest is limitable.

Michael Mueller (10):
  QEMU: introduce function cpudesc_avail
  QEMU: s390: cpu model cpu class definition
  QEMU: s390: cpu model facilities support
  QEMU: s390: cpu model alias support
  s390: update linux-headers for kvm VM device attributes
  QEMU: s390: cpu model kvm VM attr interface routines
  QEMU: s390: cpu model class initialization
  QEMU: s390: cpu model QMP query-cpu-definitions
  QEMU: s390: cpu model QMP query-cpu-model
  QEMU: s390: cpu model enablement

 arch_init.c                  |   8 +
 hw/s390x/s390-virtio-ccw.c   |   2 +
 hw/s390x/s390-virtio.c       | 104 ++++++++
 hw/s390x/s390-virtio.h       |   1 +
 include/sysemu/arch_init.h   |   2 +
 linux-headers/asm-s390/kvm.h |  26 ++
 linux-headers/linux/kvm.h    |   1 +
 qapi-schema.json             |  23 ++
 qmp-commands.hx              |   6 +
 qmp.c                        |   5 +
 stubs/Makefile.objs          |   1 +
 stubs/arch-query-cpu-mod.c   |   9 +
 target-s390x/Makefile.objs   |   1 +
 target-s390x/cpu-models.c    | 586 +++++++++++++++++++++++++++++++++++++++++++
 target-s390x/cpu-models.h    | 362 ++++++++++++++++++++++++++
 target-s390x/cpu-qom.h       |  22 ++
 target-s390x/cpu.c           | 171 ++++++++++++-
 target-s390x/cpu.h           |   3 +
 target-s390x/kvm.c           |  66 +++++
 vl.c                         |   2 +-
 20 files changed, 1395 insertions(+), 6 deletions(-)
 create mode 100644 stubs/arch-query-cpu-mod.c
 create mode 100644 target-s390x/cpu-models.c
 create mode 100644 target-s390x/cpu-models.h

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-14  9:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 15:00 [Qemu-devel] [PATCH v1 RFC 00/10] QEMU: s390: cpu model implementation Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 01/10] QEMU: introduce function cpudesc_avail Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 02/10] QEMU: s390: cpu model cpu class definition Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 03/10] QEMU: s390: cpu model facilities support Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 04/10] QEMU: s390: cpu model alias support Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 05/10] s390: update linux-headers for kvm VM device attributes Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 06/10] QEMU: s390: cpu model kvm VM attr interface routines Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 07/10] QEMU: s390: cpu model class initialization Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 08/10] QEMU: s390: cpu model QMP query-cpu-definitions Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 09/10] QEMU: s390: cpu model QMP query-cpu-model Michael Mueller
2014-05-13 15:29   ` Eric Blake
2014-05-14  9:07     ` Michael Mueller
2014-05-13 15:00 ` [Qemu-devel] [PATCH v1 RFC 10/10] QEMU: s390: cpu model enablement Michael Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).