History

KVM: x86: Clarify the kvm_run.emulation_failure structure layout

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.

David Edmondson committed 5 years ago

Commit a9d496d1 parent ed290e11 file · +6 −2Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/kvm.h+6−2
@@ -403,8 +403,12 @@ struct kvm_run { · 402 unmodified lines
403403 __u32 suberror;
404404 __u32 ndata;
405405 __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+ };
408412 } emulation_failure;
409413 /* KVM_EXIT_OSI */
410414 struct {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t