浏览代码

KVM: Future-proof the exit information union ABI

Note that as the size of struct kvm_run is not part of the ABI, we can add
things at the end.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Avi Kivity 18 年之前
父节点
当前提交
24cbc7e9cb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/linux/kvm.h

+ 2 - 0
include/linux/kvm.h

@@ -111,6 +111,8 @@ struct kvm_run {
 			__u32 longmode;
 			__u32 pad;
 		} hypercall;
+		/* Fix the size of the union. */
+		char padding[256];
 	};
 };