File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
tools/testing/selftests/kvm Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ enum kvm_mem_region_type {
90
90
struct kvm_vm {
91
91
int mode ;
92
92
unsigned long type ;
93
+ uint8_t subtype ;
93
94
int kvm_fd ;
94
95
int fd ;
95
96
unsigned int pgtable_levels ;
@@ -191,10 +192,14 @@ enum vm_guest_mode {
191
192
};
192
193
193
194
struct vm_shape {
194
- enum vm_guest_mode mode ;
195
- unsigned int type ;
195
+ uint32_t type ;
196
+ uint8_t mode ;
197
+ uint8_t subtype ;
198
+ uint16_t padding ;
196
199
};
197
200
201
+ kvm_static_assert (sizeof (struct vm_shape ) == sizeof (uint64_t ));
202
+
198
203
#define VM_TYPE_DEFAULT 0
199
204
200
205
#define VM_SHAPE (__mode ) \
Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ struct kvm_vm *____vm_create(struct vm_shape shape)
225
225
226
226
vm -> mode = shape .mode ;
227
227
vm -> type = shape .type ;
228
+ vm -> subtype = shape .subtype ;
228
229
229
230
vm -> pa_bits = vm_guest_mode_params [vm -> mode ].pa_bits ;
230
231
vm -> va_bits = vm_guest_mode_params [vm -> mode ].va_bits ;
You can’t perform that action at this time.
0 commit comments