]> git.baikalelectronics.ru Git - kernel.git/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)
commit8948a41880def92bc4237f253eba4d53f5410359
treee7d5feba7b6912b1138f8c1e7635ffebefb5e78b
parenta2eb5570999b8d78b8649e3ce59c6b224a6f43a6
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