tools/lguest: Force disable tboot and APM
[sfrench/cifs-2.6.git] / tools / lguest / lguest.c
index ff0aa580c6e1ba65c169dc31cec40081c4bab1e2..d9836c5eb694c48c30a6d07827ee36ed086b4309 100644 (file)
@@ -3357,6 +3357,12 @@ int main(int argc, char *argv[])
        /* Tell the entry path not to try to reload segment registers. */
        boot->hdr.loadflags |= KEEP_SEGMENTS;
 
+       /* We don't support tboot: */
+       boot->tboot_addr = 0;
+
+       /* Ensure this is 0 to prevent APM from loading: */
+       boot->apm_bios_info.version = 0;
+
        /* We tell the kernel to initialize the Guest. */
        tell_kernel(start);