qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Michael Mueller <mimu@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org, kvm@vger.kernel.org,
	linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: mimu@linux.vnet.ibm.com, Gleb Natapov <gleb@kernel.org>,
	Alexander Graf <agraf@suse.de>,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	"Jason J. Herne" <jjherne@linux.vnet.ibm.com>,
	Cornelia Huck <cornelia.huck@de.ibm.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Andreas Faerber <afaerber@suse.de>,
	Richard Henderson <rth@twiddle.net>
Subject: [Qemu-devel] [PATCH v1 RFC 00/10] QEMU: s390: cpu model implementation
Date: Tue, 13 May 2014 17:00:12 +0200	[thread overview]
Message-ID: <1399993222-16339-1-git-send-email-mimu@linux.vnet.ibm.com> (raw)

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

             reply	other threads:[~2014-05-13 15:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13 15:00 Michael Mueller [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1399993222-16339-1-git-send-email-mimu@linux.vnet.ibm.com \
    --to=mimu@linux.vnet.ibm.com \
    --cc=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=gleb@kernel.org \
    --cc=jjherne@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).