]> err.no Git - linux-2.6/commit
x86_64: Early segment setup for VT
authorZachary Amsden <zach@vmware.com>
Fri, 10 Aug 2007 20:31:05 +0000 (22:31 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 11 Aug 2007 22:58:13 +0000 (15:58 -0700)
commit08da5a2ca479c5e8805dc3f77fd77176c4293399
treee7d5feba7b6912b1138f8c1e7635ffebefb5e78b
parentab144f5ec64c42218a555ec1dbde6b60cf2982d6
x86_64: Early segment setup for VT

VT is very picky about when it can enter execution.
Get all segments setup and get LDT and TR into valid state to allow
VT execution under VMware and KVM (untested).

This makes the boot decompression run under VT, which makes it several
orders of magnitude faster on 64-bit Intel hardware.

Before, I was seeing times up to a minute or more to decompress a 1.3MB kernel
on a very fast box.

Signed-off-by: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86_64/boot/compressed/head.S