qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH RFC 02/11] s390/qemu: cpu model extend config device


From: Michael Mueller
Subject: [Qemu-devel] [PATCH RFC 02/11] s390/qemu: cpu model extend config device
Date: Wed, 2 Oct 2013 13:33:33 +0200

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 <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]