]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Clarify the kvm_run.emulation_failure structure layout
authorDavid Edmondson <david.edmondson@oracle.com>
Mon, 20 Sep 2021 10:37:34 +0000 (11:37 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Oct 2021 10:48:24 +0000 (06:48 -0400)
commit8d69240e95fb725c3eac3ff7b2394680d95ea0f9
tree006b7cc131512bef2d43149ecaf869c6cac2635a
parentb170d2a6c620c89a8cff14a78c7bbaec2dfc8dc0
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.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210920103737.2696756-2-david.edmondson@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/uapi/linux/kvm.h