linux/tools/arch
Jim Mattson 59073aaf6d kvm: x86: Add exception payload fields to kvm_vcpu_events
The per-VM capability KVM_CAP_EXCEPTION_PAYLOAD (to be introduced in a
later commit) adds the following fields to struct kvm_vcpu_events:
exception_has_payload, exception_payload, and exception.pending.

With this capability set, all of the details of vcpu->arch.exception,
including the payload for a pending exception, are reported to
userspace in response to KVM_GET_VCPU_EVENTS.

With this capability clear, the original ABI is preserved, and the
exception.injected field is set for either pending or injected
exceptions.

When userspace calls KVM_SET_VCPU_EVENTS with
KVM_CAP_EXCEPTION_PAYLOAD clear, exception.injected is no longer
translated to exception.pending. KVM_SET_VCPU_EVENTS can now only
establish a pending exception when KVM_CAP_EXCEPTION_PAYLOAD is set.

Reported-by: Jim Mattson <jmattson@google.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-10-17 19:07:38 +02:00
..
alpha/include tools include arch: Grab a copy of errno.h for arch's supported by perf 2018-01-23 09:51:37 -03:00
arc/include/uapi/asm License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
arm/include tools headers uapi: Update tools's copies of kvm headers 2018-09-11 13:09:26 -03:00
arm64/include tools headers uapi: Update tools's copies of kvm headers 2018-09-11 13:09:26 -03:00
h8300/include License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
hexagon/include/uapi/asm License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
ia64/include License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
microblaze/include/uapi/asm License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
mips/include tools include arch: Grab a copy of errno.h for arch's supported by perf 2018-01-23 09:51:37 -03:00
parisc/include/uapi/asm parisc: Drop architecture-specific ENOTSUP define 2018-08-13 09:30:41 +02:00
powerpc/include tools headers powerpc: Update asm/unistd.h copy to pick new 2018-07-30 11:51:13 -03:00
s390/include tools headers uapi: Update tools's copies of kvm headers 2018-09-11 13:09:26 -03:00
sh/include License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
sparc/include tools include arch: Grab a copy of errno.h for arch's supported by perf 2018-01-23 09:51:37 -03:00
x86 kvm: x86: Add exception payload fields to kvm_vcpu_events 2018-10-17 19:07:38 +02:00
xtensa/include License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00