[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1460592813-402-1-git-send-email-mcgrof@kernel.org>
Date: Wed, 13 Apr 2016 17:13:33 -0700
From: "Luis R. Rodriguez" <mcgrof@...nel.org>
To: bp@...en8.de, hpa@...or.com, tglx@...utronix.de, mingo@...hat.com,
rusty@...tcorp.com.au
Cc: x86@...nel.org, linux-kernel@...r.kernel.org, luto@...capital.net,
boris.ostrovsky@...cle.com, jgross@...e.com,
david.vrabel@...rix.com, konrad.wilk@...cle.com,
xen-devel@...ts.xensource.com, lguest@...ts.ozlabs.org,
andriy.shevchenko@...ux.intel.com, jlee@...e.com, glin@...e.com,
matt@...eblueprint.co.uk, andrew.cooper3@...rix.com,
rjw@...ysocki.net, lenb@...nel.org, robert.moore@...el.com,
lv.zheng@...el.com, toshi.kani@...com, linux-acpi@...r.kernel.org,
kozerkov@...allels.com, josh@...htriplett.org,
bigeasy@...utronix.de, ffainelli@...ebox.fr,
george.dunlap@...rix.com, julien.grall@...aro.org,
mbizon@...ebox.fr, tiwai@...e.de,
"Luis R. Rodriguez" <mcgrof@...nel.org>
Subject: [PATCH v6 07/16] tools/lguest: force disable tboot and apm
The paravirt_enabled() check is going away, the area tossed to
the kernel on lguest is not zeroed out, so ensure lguest force
disables tboot and apm just in case the kernel file being read
might have this set for whatever reason.
Acked-by: Rusty Russell <rusty@...tcorp.com.au>
Signed-off-by: Luis R. Rodriguez <mcgrof@...nel.org>
---
tools/lguest/lguest.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c
index ff0aa580c6e1..0aa75af6e862 100644
--- a/tools/lguest/lguest.c
+++ b/tools/lguest/lguest.c
@@ -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);
--
2.7.2
Powered by blists - more mailing lists