Commit 8ab30c15 authored by Alex Bennée's avatar Alex Bennée Committed by Marc Zyngier

KVM: add comments for kvm_debug_exit_arch struct

Bring into line with the comments for the other structures and their
KVM_EXIT_* cases. Also update api.txt to reflect use in kvm_run
documentation.
Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: default avatarAndrew Jones <drjones@redhat.com>
Acked-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent bc0195aa
...@@ -3111,11 +3111,13 @@ data_offset describes where the data is located (KVM_EXIT_IO_OUT) or ...@@ -3111,11 +3111,13 @@ data_offset describes where the data is located (KVM_EXIT_IO_OUT) or
where kvm expects application code to place the data for the next where kvm expects application code to place the data for the next
KVM_RUN invocation (KVM_EXIT_IO_IN). Data format is a packed array. KVM_RUN invocation (KVM_EXIT_IO_IN). Data format is a packed array.
/* KVM_EXIT_DEBUG */
struct { struct {
struct kvm_debug_exit_arch arch; struct kvm_debug_exit_arch arch;
} debug; } debug;
Unused. If the exit_reason is KVM_EXIT_DEBUG, then a vcpu is processing a debug event
for which architecture specific information is returned.
/* KVM_EXIT_MMIO */ /* KVM_EXIT_MMIO */
struct { struct {
......
...@@ -237,6 +237,7 @@ struct kvm_run { ...@@ -237,6 +237,7 @@ struct kvm_run {
__u32 count; __u32 count;
__u64 data_offset; /* relative to kvm_run start */ __u64 data_offset; /* relative to kvm_run start */
} io; } io;
/* KVM_EXIT_DEBUG */
struct { struct {
struct kvm_debug_exit_arch arch; struct kvm_debug_exit_arch arch;
} debug; } debug;
...@@ -285,6 +286,7 @@ struct kvm_run { ...@@ -285,6 +286,7 @@ struct kvm_run {
__u32 data; __u32 data;
__u8 is_write; __u8 is_write;
} dcr; } dcr;
/* KVM_EXIT_INTERNAL_ERROR */
struct { struct {
__u32 suberror; __u32 suberror;
/* Available with KVM_CAP_INTERNAL_ERROR_DATA: */ /* Available with KVM_CAP_INTERNAL_ERROR_DATA: */
...@@ -295,6 +297,7 @@ struct kvm_run { ...@@ -295,6 +297,7 @@ struct kvm_run {
struct { struct {
__u64 gprs[32]; __u64 gprs[32];
} osi; } osi;
/* KVM_EXIT_PAPR_HCALL */
struct { struct {
__u64 nr; __u64 nr;
__u64 ret; __u64 ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment