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 | 403 | __u32 suberror; |
| 404 | 404 | __u32 ndata; |
| 405 | 405 | __u64 flags; |
| 406 | − __u8 insn_size; | |
| 407 | − __u8 insn_bytes[15]; | |
| 406 | + union { | |
| 407 | + struct { | |
| 408 | + __u8 insn_size; | |
| 409 | + __u8 insn_bytes[15]; | |
| 410 | + }; | |
| 411 | + }; | |
| 408 | 412 | } emulation_failure; |
| 409 | 413 | /* KVM_EXIT_OSI */ |
| 410 | 414 | struct { |