lguest: allow booting guest with CONFIG_RELOCATABLE=y
[firefly-linux-kernel-4.4.55.git] / Documentation / virtual / lguest / lguest.c
index cd9d6af61d070bbf3633753a45444eab46193541..aec80e53c2d79bc0d7844570f943d3ed9c4aa469 100644 (file)
@@ -2008,6 +2008,9 @@ int main(int argc, char *argv[])
        /* We use a simple helper to copy the arguments separated by spaces. */
        concat((char *)(boot + 1), argv+optind+2);
 
+       /* Set kernel alignment to 16M (CONFIG_PHYSICAL_ALIGN) */
+       boot->hdr.kernel_alignment = 0x1000000;
+
        /* Boot protocol version: 2.07 supports the fields for lguest. */
        boot->hdr.version = 0x207;