]> xenbits.xensource.com Git - people/wipawel/livepatch-build-tools/commitdiff
Add 64 bytes of padding to xsplice_patch_funcs structure
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 3 Nov 2015 14:44:49 +0000 (14:44 +0000)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 3 Nov 2015 14:46:11 +0000 (14:46 +0000)
This gives the hypervisor scratch space for undo buffers and possibly
other uses.

common.h
create-diff-object.c

index d78275c861a9e92cbd2d2977000a8c4d9e927cca..e90455c620bb00788ef2a17b6b8ac37f56614026 100644 (file)
--- a/common.h
+++ b/common.h
@@ -122,7 +122,7 @@ struct xsplice_patch_func {
        unsigned long old_addr;
        unsigned long old_size;
        char *name;
-       unsigned char undo[8];
+       unsigned char pad[64];
 };
 
 struct special_section {
index 15c4115a912f89eebf2c5e76ff8abf6b04325fbc..fb9ef0b80883a932e527c901426b8a9b2b408f44 100644 (file)
@@ -1508,7 +1508,7 @@ static void xsplice_create_patches_sections(struct xsplice_elf *kelf,
                        funcs[index].old_size = result.size;
                        funcs[index].new_addr = 0;
                        funcs[index].new_size = sym->sym.st_size;
-                       memset(funcs[index].undo, 0, sizeof funcs[index].undo);
+                       memset(funcs[index].pad, 0, sizeof funcs[index].pad);
 
                        /*
                         * Add a relocation that will populate