From: Fengguang Wu <wfg@mail.ustc.edu.cn>
To: Zachary Amsden <zach@vmware.com>
Cc: Avi Kivity <avi@argo.co.il>, lkml <linux-kernel@vger.kernel.org>,
Andi Kleen <ak@suse.de>,
david-g@263.net
Subject: Re: x86_64 : kernel initial decompression hangs on vmware
Date: Wed, 10 Oct 2007 15:37:39 +0800 [thread overview]
Message-ID: <392001863.28140@ustc.edu.cn> (raw)
Message-ID: <20071010073739.GA5952@mail.ustc.edu.cn> (raw)
Hi Zachary,
One of my friends' vmware "hangs" on booting Linux 2.6.23, and then get
it to work by applying your patch at http://lkml.org/lkml/2007/8/4/72.
It would be nice to see your fix going into mainline :-)
Thank you,
Fengguang
---
PS. the original patch:
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>
===================================================================
--- a/arch/x86_64/boot/compressed/head.S
+++ a/arch/x86_64/boot/compressed/head.S
@@ -195,6 +195,11 @@
movl %eax, %ds
movl %eax, %es
movl %eax, %ss
+ movl %eax, %fs
+ movl %eax, %gs
+ lldt %ax
+ movl $0x20, %eax
+ ltr %ax
/* Compute the decompressed kernel start address. It is where
* we were loaded at aligned to a 2M boundary. %rbp contains the
@@ -295,6 +300,8 @@
.quad 0x0000000000000000 /* NULL descriptor */
.quad 0x00af9a000000ffff /* __KERNEL_CS */
.quad 0x00cf92000000ffff /* __KERNEL_DS */
+ .quad 0x0080890000000000 /* TS descriptor */
+ .quad 0x0000000000000000 /* TS continued */
gdt_end:
.bss
/* Stack for uncompression */
next reply other threads:[~2007-10-10 7:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20071010073739.GA5952@mail.ustc.edu.cn>
2007-10-10 7:37 ` Fengguang Wu [this message]
2007-10-10 13:18 ` x86_64 : kernel initial decompression hangs on vmware Andi Kleen
[not found] ` <20071010203232.GA6088@mail.ustc.edu.cn>
2007-10-10 20:32 ` Fengguang Wu
2007-10-10 19:16 ` Zachary Amsden
[not found] ` <20071010211517.GA11612@mail.ustc.edu.cn>
2007-10-10 21:15 ` Fengguang Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=392001863.28140@ustc.edu.cn \
--to=wfg@mail.ustc.edu.cn \
--cc=ak@suse.de \
--cc=avi@argo.co.il \
--cc=david-g@263.net \
--cc=linux-kernel@vger.kernel.org \
--cc=zach@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox