|
@@ -396,6 +396,10 @@ struct kvm_run {
|
|
|
char padding[256];
|
|
|
};
|
|
|
|
|
|
+ /* 2048 is the size of the char array used to bound/pad the size
|
|
|
+ * of the union that holds sync regs.
|
|
|
+ */
|
|
|
+ #define SYNC_REGS_SIZE_BYTES 2048
|
|
|
/*
|
|
|
* shared registers between kvm and userspace.
|
|
|
* kvm_valid_regs specifies the register classes set by the host
|
|
@@ -407,7 +411,7 @@ struct kvm_run {
|
|
|
__u64 kvm_dirty_regs;
|
|
|
union {
|
|
|
struct kvm_sync_regs regs;
|
|
|
- char padding[2048];
|
|
|
+ char padding[SYNC_REGS_SIZE_BYTES];
|
|
|
} s;
|
|
|
};
|
|
|
|