KVM: Future-proof the exit information union ABI
authorAvi Kivity <avi@qumranet.com>
Tue, 17 Jul 2007 08:45:55 +0000 (11:45 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:17 +0000 (10:18 +0200)
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>
include/linux/kvm.h

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