From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRKgt-0000Ym-JO for qemu-devel@nongnu.org; Wed, 02 Oct 2013 07:34:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRKgk-00026v-GH for qemu-devel@nongnu.org; Wed, 02 Oct 2013 07:34:03 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:54922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRKgj-00025o-Vs for qemu-devel@nongnu.org; Wed, 02 Oct 2013 07:33:54 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 2 Oct 2013 12:33:51 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id F2922219005C for ; Wed, 2 Oct 2013 12:33:48 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r92BXaAl66519282 for ; Wed, 2 Oct 2013 11:33:36 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r92BXl6O022844 for ; Wed, 2 Oct 2013 05:33:48 -0600 From: Michael Mueller Date: Wed, 2 Oct 2013 13:33:33 +0200 Message-Id: <1380713622-22325-3-git-send-email-mimu@linux.vnet.ibm.com> In-Reply-To: <1380713622-22325-1-git-send-email-mimu@linux.vnet.ibm.com> References: <1380713622-22325-1-git-send-email-mimu@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH RFC 02/11] s390/qemu: cpu model extend config device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Mueller This patch extends the s390 config device interface by the following attributes used to impelemt cpu models: - KVM_DEV_S390_CONFIG_CPU_TYPE - KVM_DEV_S390_CONFIG_CPU_FACILITIES - KVM_DEV_S390_CONFIG_KVM_FACILITY_MASK Signed-off-by: Michael Mueller --- linux-headers/asm-s390/kvm.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index aaddf03..d6f2ee9 100644 --- a/linux-headers/asm-s390/kvm.h +++ b/linux-headers/asm-s390/kvm.h @@ -58,7 +58,22 @@ struct kvm_s390_attr_name { char name[128]; }; +struct kvm_s390_attr_cpu_type { + __u16 type; +}; + +struct kvm_s390_attr_cpu_facilities { + __u64 facilities[256]; +}; + +struct kvm_s390_attr_kvm_facility_mask { + __u64 facility_mask[256]; +}; + #define KVM_DEV_S390_CONFIG_NAME _IOWR(0, 1, struct kvm_s390_attr_name) +#define KVM_DEV_S390_CONFIG_CPU_TYPE _IOWR(0, 2, struct kvm_s390_attr_cpu_type) +#define KVM_DEV_S390_CONFIG_CPU_FACILITIES _IOWR(0, 4, struct kvm_s390_attr_cpu_facilities) +#define KVM_DEV_S390_CONFIG_KVM_FACILITY_MASK _IOR(0, 6, struct kvm_s390_attr_kvm_facility_mask) /* definition of registers in kvm_run */ struct kvm_sync_regs { -- 1.8.3.1