s390x/kvm: disable cpu model for the 2.7 machine
[qemu.git] / include / hw / s390x / s390-virtio-ccw.h
blob6ecae0038609301169b1fbc3efba8297b4dcf1f2
1 /*
2 * virtio ccw machine definitions
4 * Copyright 2012, 2016 IBM Corp.
5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
7 * This work is licensed under the terms of the GNU GPL, version 2 or (at
8 * your option) any later version. See the COPYING file in the top-level
9 * directory.
11 #ifndef HW_S390X_S390_VIRTIO_CCW_H
12 #define HW_S390X_S390_VIRTIO_CCW_H
14 #include "hw/boards.h"
16 #define TYPE_S390_CCW_MACHINE "s390-ccw-machine"
18 #define S390_CCW_MACHINE(obj) \
19 OBJECT_CHECK(S390CcwMachineState, (obj), TYPE_S390_CCW_MACHINE)
21 #define S390_MACHINE_CLASS(klass) \
22 OBJECT_CLASS_CHECK(S390CcwMachineClass, (klass), TYPE_S390_CCW_MACHINE)
24 typedef struct S390CcwMachineState {
25 /*< private >*/
26 MachineState parent_obj;
28 /*< public >*/
29 bool aes_key_wrap;
30 bool dea_key_wrap;
31 } S390CcwMachineState;
33 typedef struct S390CcwMachineClass {
34 /*< private >*/
35 MachineClass parent_class;
37 /*< public >*/
38 bool ri_allowed;
39 bool cpu_model_allowed;
40 } S390CcwMachineClass;
42 /* runtime-instrumentation allowed by the machine */
43 bool ri_allowed(void);
44 /* cpu model allowed by the machine */
45 bool cpu_model_allowed(void);
47 #endif