Until more flags for kvm_run.emulation_failure flags are defined, it is undetermined whether new payload elements corresponding to those flags will be additive or alternative. As a hint to userspace that an alternative is possible, wrap the current payload elements in a union.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -403,8 +403,12 @@ struct kvm_run { · 402 unmodified lines | |||
| 403 | __u32 suberror; | 403 | __u32 suberror; |
| 404 | __u32 ndata; | 404 | __u32 ndata; |
| 405 | __u64 flags; | 405 | __u64 flags; |
| 406 | __u8 insn_size; | 406 | union { |
| 407 | __u8 insn_bytes[15]; | 407 | struct { |
| 408 | __u8 insn_size; | ||
| 409 | __u8 insn_bytes[15]; | ||
| 410 | }; | ||
| 411 | }; | ||
| 408 | } emulation_failure; | 412 | } emulation_failure; |
| 409 | /* KVM_EXIT_OSI */ | 413 | /* KVM_EXIT_OSI */ |
| 410 | struct { | 414 | struct { |