summaryrefslogtreecommitdiffstats
path: root/Documentation/virtual/kvm/api.txt
diff options
context:
space:
mode:
authorKen Hofsass <hofsass@google.com>2018-02-01 01:03:35 +0100
committerRadim Krčmář <rkrcmar@redhat.com>2018-03-06 18:40:43 +0100
commit7b7e39522a61f402d41dd9a67f3fa2133ef9d4e8 (patch)
tree2416acd62546483498495af33f6561ed00986b87 /Documentation/virtual/kvm/api.txt
parentkvm: x86: hyperv: guest->host event signaling via eventfd (diff)
downloadlinux-7b7e39522a61f402d41dd9a67f3fa2133ef9d4e8.tar.xz
linux-7b7e39522a61f402d41dd9a67f3fa2133ef9d4e8.zip
KVM: x86: add SYNC_REGS_SIZE_BYTES #define.
Replace hardcoded padding size value for struct kvm_sync_regs with #define SYNC_REGS_SIZE_BYTES. Also update the value specified in api.txt from outdated hardcoded value to SYNC_REGS_SIZE_BYTES. Signed-off-by: Ken Hofsass <hofsass@google.com> Reviewed-by: David Hildenbrand <david@redhat.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'Documentation/virtual/kvm/api.txt')
-rw-r--r--Documentation/virtual/kvm/api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index db992e036bdf..55867a2a460c 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -3905,7 +3905,7 @@ in userspace.
__u64 kvm_dirty_regs;
union {
struct kvm_sync_regs regs;
- char padding[1024];
+ char padding[SYNC_REGS_SIZE_BYTES];
} s;
If KVM_CAP_SYNC_REGS is defined, these fields allow userspace to access