]>
Commit | Line | Data |
---|---|---|
8b8a61ad JF |
1 | /* |
2 | * virtio ccw machine definitions | |
3 | * | |
4 | * Copyright 2012, 2016 IBM Corp. | |
5 | * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> | |
6 | * | |
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. | |
10 | */ | |
11 | #ifndef HW_S390X_S390_VIRTIO_CCW_H | |
12 | #define HW_S390X_S390_VIRTIO_CCW_H | |
13 | ||
14 | #include "hw/boards.h" | |
15 | ||
16 | #define TYPE_S390_CCW_MACHINE "s390-ccw-machine" | |
17 | ||
18 | #define S390_CCW_MACHINE(obj) \ | |
19 | OBJECT_CHECK(S390CcwMachineState, (obj), TYPE_S390_CCW_MACHINE) | |
20 | ||
21 | #define S390_MACHINE_CLASS(klass) \ | |
22 | OBJECT_CLASS_CHECK(S390CcwMachineClass, (klass), TYPE_S390_CCW_MACHINE) | |
23 | ||
24 | typedef struct S390CcwMachineState { | |
25 | /*< private >*/ | |
26 | MachineState parent_obj; | |
27 | ||
28 | /*< public >*/ | |
29 | bool aes_key_wrap; | |
30 | bool dea_key_wrap; | |
7104bae9 | 31 | uint8_t loadparm[8]; |
274250c3 | 32 | bool s390_squash_mcss; |
8b8a61ad JF |
33 | } S390CcwMachineState; |
34 | ||
35 | typedef struct S390CcwMachineClass { | |
36 | /*< private >*/ | |
37 | MachineClass parent_class; | |
38 | ||
39 | /*< public >*/ | |
9700230b | 40 | bool ri_allowed; |
e73316d5 | 41 | bool cpu_model_allowed; |
52629b3b | 42 | bool css_migration_enabled; |
62deb62d | 43 | bool gs_allowed; |
8b8a61ad JF |
44 | } S390CcwMachineClass; |
45 | ||
9700230b FZ |
46 | /* runtime-instrumentation allowed by the machine */ |
47 | bool ri_allowed(void); | |
e73316d5 CB |
48 | /* cpu model allowed by the machine */ |
49 | bool cpu_model_allowed(void); | |
62deb62d FZ |
50 | /* guarded-storage allowed by the machine */ |
51 | bool gs_allowed(void); | |
9700230b | 52 | |
52629b3b HP |
53 | /** |
54 | * Returns true if (vmstate based) migration of the channel subsystem | |
55 | * is enabled, false if it is disabled. | |
56 | */ | |
57 | bool css_migration_enabled(void); | |
58 | ||
8b8a61ad | 59 | #endif |