qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH/RFC] s390: Provide a configuration and control device
@ 2014-04-01 14:47 Christian Borntraeger
  2014-04-01 14:47 ` [Qemu-devel] [PATCH/RFC] KVM: s390: Add S390 configuration and control kvm device Christian Borntraeger
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Christian Borntraeger @ 2014-04-01 14:47 UTC (permalink / raw)
  To: qemu-devel, KVM
  Cc: linux-s390, Michael Mueller, Ekaterina Tumanova, Alexander Graf,
	Christian Borntraeger, Jens Freimann, Cornelia Huck

We want to configure several things in KVM that go beyond what
ENABLE_CAP (we need payload) or ONE_REG (we need it for the VM
and we need to do more complex actions) can provide. Instead of
adding several s390 specific ioctls, lets provide a configuration
and control device that encapsulates different commands into
groups of the same area (MEMORY, CPU, ..)

We also provide an initial nameless base group, with a simple first
user to set the guest name. We need that name in the kernel for
the emulation of STSI (which provides the guest name to the guest)
but we need to implement the emulation in supervisor mode, as it
also provides the underlying levels of hipervisors.

Currently we have the following GROUPS and ATTRs pending, which
configure some memory management related function or allow to set
the guest facilities, cpuids etc:

#define KVM_DEV_CONFIG_GROUP            0
#define KVM_DEV_CONFIG_NAME             0

#define KVM_DEV_CONFIG_GROUP_MEM        1
#define KVM_DEV_CONFIG_MEM_ENABLE_CMMA  0
#define KVM_DEV_CONFIG_MEM_CLR_CMMA     1
#define KVM_DEV_CONFIG_MEM_CLR_PAGES    2

#define KVM_DEV_CONFIG_GROUP_CPU        2
#define KVM_DEV_CONFIG_CPU_TYPE         0
#define KVM_DEV_CONFIG_CPU_FAC          1
#define KVM_DEV_CONFIG_CPU_FAC_MASK     2
#define KVM_DEV_CONFIG_CPU_IBC          3
#define KVM_DEV_CONFIG_CPU_IBC_RANGE    4



In addition other groups like 
#define KVM_DEV_CONFIG_GROUP_CRYPTO 
are under consideration to configure crypto acceleration.

Unless there is a major concern, I will add this to the next
s390 PULL requests for KVM.

Christian

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

end of thread, other threads:[~2014-04-02  8:54 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 14:47 [Qemu-devel] [PATCH/RFC] s390: Provide a configuration and control device Christian Borntraeger
2014-04-01 14:47 ` [Qemu-devel] [PATCH/RFC] KVM: s390: Add S390 configuration and control kvm device Christian Borntraeger
2014-04-01 14:58   ` Alexander Graf
2014-04-01 15:04     ` Christian Borntraeger
2014-04-01 15:12       ` Alexander Graf
2014-04-01 19:19         ` Christian Borntraeger
2014-04-01 19:36           ` Alexander Graf
2014-04-01 20:08             ` Christian Borntraeger
2014-04-01 19:37           ` Alexander Graf
2014-04-01 14:47 ` [Qemu-devel] [PATCH/RFC] s390x/kvm: implement and use QEMU config device for s390 Christian Borntraeger
2014-04-01 15:38   ` Paolo Bonzini
2014-04-01 18:56     ` Christian Borntraeger
2014-04-01 14:59 ` [Qemu-devel] [PATCH/RFC] s390: Provide a configuration and control device Alexander Graf
2014-04-01 19:23   ` Christian Borntraeger
2014-04-01 19:37     ` Alexander Graf
2014-04-02  8:31 ` Christian Borntraeger
2014-04-02  8:39   ` Alexander Graf
2014-04-02  8:54     ` Christian Borntraeger

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).