diff options
author | Janosch Frank | 2016-03-07 09:04:21 +0100 |
---|---|---|
committer | Cornelia Huck | 2016-03-10 10:37:16 +0100 |
commit | 8b8a61ad8cc054e52b5d17c8ba45691d2dc0acbd (patch) | |
tree | 4d36d88ad217c6c52b8e1f24f0620c3c3f52c04b /hw/s390x/s390-virtio-ccw.c | |
parent | s390x: Introduce machine definition macros (diff) | |
download | qemu-8b8a61ad8cc054e52b5d17c8ba45691d2dc0acbd.tar.gz qemu-8b8a61ad8cc054e52b5d17c8ba45691d2dc0acbd.tar.xz qemu-8b8a61ad8cc054e52b5d17c8ba45691d2dc0acbd.zip |
s390x: Introduce S390MachineClass
As we now have the new machine definitions, that let us disable/enable
machine options more easily, we need a way to save them and make them
publicly available.
The new s390-virtio-ccw.h header exports the s390 ccw machine state
and class, so they can be easily used in other C files.
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/s390-virtio-ccw.c')
-rw-r--r-- | hw/s390x/s390-virtio-ccw.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 16de63f425..3d8c3c4fa8 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -22,20 +22,7 @@ #include "s390-pci-bus.h" #include "hw/s390x/storage-keys.h" #include "hw/compat.h" - -#define TYPE_S390_CCW_MACHINE "s390-ccw-machine" - -#define S390_CCW_MACHINE(obj) \ - OBJECT_CHECK(S390CcwMachineState, (obj), TYPE_S390_CCW_MACHINE) - -typedef struct S390CcwMachineState { - /*< private >*/ - MachineState parent_obj; - - /*< public >*/ - bool aes_key_wrap; - bool dea_key_wrap; -} S390CcwMachineState; +#include "hw/s390x/s390-virtio-ccw.h" static const char *const reset_dev_types[] = { "virtual-css-bridge", |