diff mbox

[RFC,02/11] s390/qemu: cpu model extend config device

Message ID 1380713622-22325-3-git-send-email-mimu@linux.vnet.ibm.com
State New
Headers show

Commit Message

Michael Mueller Oct. 2, 2013, 11:33 a.m. UTC
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 <mimu@linux.vnet.ibm.com>
---
 linux-headers/asm-s390/kvm.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
diff mbox

Patch

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 {