public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [ANNOUNCE] kvm howto
@ 2006-11-02 13:25 Avi Kivity
  2006-11-02 14:27 ` Hesse, Christian
  2006-11-05 17:14 ` Tomasz Torcz
  0 siblings, 2 replies; 11+ messages in thread
From: Avi Kivity @ 2006-11-02 13:25 UTC (permalink / raw)
  To: kvm-devel; +Cc: linux-kernel, Andrew Morton

I've just uploaded a HOWTO to http://kvm.sourceforge.net, including 
(hopefuly) everything needed to get kvm running.  Please take a look and 
comment.

BTW, we have the AMD port running with fairly impressive performance.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ANNOUNCE] kvm howto
  2006-11-02 13:25 [ANNOUNCE] kvm howto Avi Kivity
@ 2006-11-02 14:27 ` Hesse, Christian
  2006-11-02 14:32   ` Avi Kivity
  2006-11-05 17:14 ` Tomasz Torcz
  1 sibling, 1 reply; 11+ messages in thread
From: Hesse, Christian @ 2006-11-02 14:27 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel, linux-kernel, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

On Thursday 02 November 2006 14:25, Avi Kivity wrote:
> I've just uploaded a HOWTO to http://kvm.sourceforge.net, including
> (hopefuly) everything needed to get kvm running.  Please take a look and
> comment.

  CC [M]  /tmp/kvm-module/kvm_main.o
{standard input}: Assembler messages:
{standard input}:168: Error: no such instruction: `vmxon 16(%esp)'
{standard input}:182: Error: no such instruction: `vmxoff'
{standard input}:192: Error: no such instruction: `vmread %eax,%eax'
{standard input}:415: Error: no such instruction: `vmwrite %ebx,%esi'
{standard input}:1103: Error: no such instruction: `vmclear 16(%esp)'
{standard input}:1676: Error: no such instruction: `vmptrld 16(%esp)'
{standard input}:4107: Error: no such instruction: `vmwrite %esp,%eax'
{standard input}:4119: Error: no such instruction: `vmlaunch '
{standard input}:4121: Error: no such instruction: `vmresume '

I get a number of errors compiling the module. No difference between the 
downloaded tarball and my patched kernel tree. Any hints?
-- 
Regards,
Christian

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ANNOUNCE] kvm howto
  2006-11-02 14:27 ` Hesse, Christian
@ 2006-11-02 14:32   ` Avi Kivity
  2006-11-02 15:14     ` Magnus Damm
  0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2006-11-02 14:32 UTC (permalink / raw)
  To: Hesse, Christian; +Cc: kvm-devel, linux-kernel, Andrew Morton

Hesse, Christian wrote:
> On Thursday 02 November 2006 14:25, Avi Kivity wrote:
>   
>> I've just uploaded a HOWTO to http://kvm.sourceforge.net, including
>> (hopefuly) everything needed to get kvm running.  Please take a look and
>> comment.
>>     
>
>   CC [M]  /tmp/kvm-module/kvm_main.o
> {standard input}: Assembler messages:
> {standard input}:168: Error: no such instruction: `vmxon 16(%esp)'
> {standard input}:182: Error: no such instruction: `vmxoff'
> {standard input}:192: Error: no such instruction: `vmread %eax,%eax'
> {standard input}:415: Error: no such instruction: `vmwrite %ebx,%esi'
> {standard input}:1103: Error: no such instruction: `vmclear 16(%esp)'
> {standard input}:1676: Error: no such instruction: `vmptrld 16(%esp)'
> {standard input}:4107: Error: no such instruction: `vmwrite %esp,%eax'
> {standard input}:4119: Error: no such instruction: `vmlaunch '
> {standard input}:4121: Error: no such instruction: `vmresume '
>
> I get a number of errors compiling the module. No difference between the 
> downloaded tarball and my patched kernel tree. Any hints?
>   

You need a newer binutils.  I'm using binutils-2.16.91.0.6 (gotta love 
that version number), shipped with Fedora Core 5.

I'll update the howto to reflect this.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ANNOUNCE] kvm howto
  2006-11-02 14:32   ` Avi Kivity
@ 2006-11-02 15:14     ` Magnus Damm
  2006-11-02 15:19       ` Avi Kivity
  0 siblings, 1 reply; 11+ messages in thread
From: Magnus Damm @ 2006-11-02 15:14 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Hesse, Christian, kvm-devel, linux-kernel, Andrew Morton

On 11/2/06, Avi Kivity <avi@qumranet.com> wrote:
> Hesse, Christian wrote:
> > On Thursday 02 November 2006 14:25, Avi Kivity wrote:
> >
> >> I've just uploaded a HOWTO to http://kvm.sourceforge.net, including
> >> (hopefuly) everything needed to get kvm running.  Please take a look and
> >> comment.
> >>
> >
> >   CC [M]  /tmp/kvm-module/kvm_main.o
> > {standard input}: Assembler messages:
> > {standard input}:168: Error: no such instruction: `vmxon 16(%esp)'
> > {standard input}:182: Error: no such instruction: `vmxoff'
> > {standard input}:192: Error: no such instruction: `vmread %eax,%eax'
> > {standard input}:415: Error: no such instruction: `vmwrite %ebx,%esi'
> > {standard input}:1103: Error: no such instruction: `vmclear 16(%esp)'
> > {standard input}:1676: Error: no such instruction: `vmptrld 16(%esp)'
> > {standard input}:4107: Error: no such instruction: `vmwrite %esp,%eax'
> > {standard input}:4119: Error: no such instruction: `vmlaunch '
> > {standard input}:4121: Error: no such instruction: `vmresume '
> >
> > I get a number of errors compiling the module. No difference between the
> > downloaded tarball and my patched kernel tree. Any hints?
> >
>
> You need a newer binutils.  I'm using binutils-2.16.91.0.6 (gotta love
> that version number), shipped with Fedora Core 5.

The VT-extensions added by Intel and AMD only adds a limited number of
instructions each. If you want to be user friendly it might be a good
idea to implement these instructions as macros. I'm pretty sure
VT-extension support in Xen works with my old binutils version.

/ magnus

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ANNOUNCE] kvm howto
  2006-11-02 15:14     ` Magnus Damm
@ 2006-11-02 15:19       ` Avi Kivity
  0 siblings, 0 replies; 11+ messages in thread
From: Avi Kivity @ 2006-11-02 15:19 UTC (permalink / raw)
  To: Magnus Damm; +Cc: Hesse, Christian, kvm-devel, linux-kernel, Andrew Morton

Magnus Damm wrote:
>>
>> You need a newer binutils.  I'm using binutils-2.16.91.0.6 (gotta love
>> that version number), shipped with Fedora Core 5.
>
> The VT-extensions added by Intel and AMD only adds a limited number of
> instructions each. If you want to be user friendly it might be a good
> idea to implement these instructions as macros. I'm pretty sure
> VT-extension support in Xen works with my old binutils version.
>

Yes, Xen uses macros.

I figured a newish machine will have a newish binutils.  Looks like I 
was wrong.  I don't like uglifying the code, but if many users hit this, 
there won't be much of a choice.

[A minor problem with macros is that you can't let gcc choose the 
registers for you with instructions that have operands]

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ANNOUNCE] kvm howto
  2006-11-02 13:25 [ANNOUNCE] kvm howto Avi Kivity
  2006-11-02 14:27 ` Hesse, Christian
@ 2006-11-05 17:14 ` Tomasz Torcz
  2006-11-06  8:15   ` Dor Laor
  2006-11-06  8:51   ` [ANNOUNCE] kvm howto Avi Kivity
  1 sibling, 2 replies; 11+ messages in thread
From: Tomasz Torcz @ 2006-11-05 17:14 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

On Thu, Nov 02, 2006 at 03:25:41PM +0200, Avi Kivity wrote:
> I've just uploaded a HOWTO to http://kvm.sourceforge.net, including 
> (hopefuly) everything needed to get kvm running.  Please take a look and 
> comment.

  I have some problems on Thinkpad z61t with Core Duo T2500.
/proc/cpuinfo shows "vmx" in flags, but module refuses to load:
[17462106.632000] kvm: disabled by bios

 I wandered around BIOS setup (latest version), but didn't found
anything about virtualization. Is BIOS check really necessary?

-- 
Tomasz Torcz                                                       72->|   80->|
zdzichu@irc.-nie.spam-.pl                                          72->|   80->|


[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: [ANNOUNCE] kvm howto
  2006-11-05 17:14 ` Tomasz Torcz
@ 2006-11-06  8:15   ` Dor Laor
  2006-11-13 20:34     ` overriding BIOS (was: Re: [ANNOUNCE] kvm howto) Tomasz Torcz
  2006-11-06  8:51   ` [ANNOUNCE] kvm howto Avi Kivity
  1 sibling, 1 reply; 11+ messages in thread
From: Dor Laor @ 2006-11-06  8:15 UTC (permalink / raw)
  To: Tomasz Torcz, linux-kernel

The BIOS check is a must, it checks bit #0 of MSR_IA32_FEATURE_CONTROL,
if it set this means that software cannot write to the MSR. If bit #2 is
clear too then when executing vmxon you'll get #GP.

So the check should better be there...

--
Dor Laor

-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Tomasz Torcz
Sent: Sunday, November 05, 2006 7:14 PM
To: linux-kernel
Subject: Re: [ANNOUNCE] kvm howto

On Thu, Nov 02, 2006 at 03:25:41PM +0200, Avi Kivity wrote:
> I've just uploaded a HOWTO to http://kvm.sourceforge.net, including 
> (hopefuly) everything needed to get kvm running.  Please take a look
and 
> comment.

  I have some problems on Thinkpad z61t with Core Duo T2500.
/proc/cpuinfo shows "vmx" in flags, but module refuses to load:
[17462106.632000] kvm: disabled by bios

 I wandered around BIOS setup (latest version), but didn't found
anything about virtualization. Is BIOS check really necessary?

-- 
Tomasz Torcz                                                       72->|
80->|
zdzichu@irc.-nie.spam-.pl                                          72->|
80->|


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ANNOUNCE] kvm howto
  2006-11-05 17:14 ` Tomasz Torcz
  2006-11-06  8:15   ` Dor Laor
@ 2006-11-06  8:51   ` Avi Kivity
  2006-11-06 10:14     ` Arjan van de Ven
  1 sibling, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2006-11-06  8:51 UTC (permalink / raw)
  To: linux-kernel

Tomasz Torcz wrote:
> On Thu, Nov 02, 2006 at 03:25:41PM +0200, Avi Kivity wrote:
>   
>> I've just uploaded a HOWTO to http://kvm.sourceforge.net, including 
>> (hopefuly) everything needed to get kvm running.  Please take a look and 
>> comment.
>>     
>
>   I have some problems on Thinkpad z61t with Core Duo T2500.
> /proc/cpuinfo shows "vmx" in flags, but module refuses to load:
> [17462106.632000] kvm: disabled by bios
>
>   

See 
http://forum.thinkpads.com/viewtopic.php?p=203419&sid=8f3fe5a07430fe35c6bf8c32e6058a87


>  I wandered around BIOS setup (latest version), but didn't found
> anything about virtualization. Is BIOS check really necessary?
>   

Yes.  The thing is a brick as far as hardware virtualization is 
concerned.  Complain to your vendor.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ANNOUNCE] kvm howto
  2006-11-06  8:51   ` [ANNOUNCE] kvm howto Avi Kivity
@ 2006-11-06 10:14     ` Arjan van de Ven
  0 siblings, 0 replies; 11+ messages in thread
From: Arjan van de Ven @ 2006-11-06 10:14 UTC (permalink / raw)
  To: Avi Kivity; +Cc: linux-kernel


> 
> See 
> http://forum.thinkpads.com/viewtopic.php?p=203419&sid=8f3fe5a07430fe35c6bf8c32e6058a87
> 
> 
> >  I wandered around BIOS setup (latest version), but didn't found
> > anything about virtualization. Is BIOS check really necessary?
> >   
> 
> Yes.  The thing is a brick as far as hardware virtualization is 
> concerned.  Complain to your vendor.

is there an easy way this can be checked for? If so I'd love to add this
as check to the linux-ready firmware developer kit (see URL in sig) as
something to test bioses for...

> 
-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


^ permalink raw reply	[flat|nested] 11+ messages in thread

* overriding BIOS (was: Re: [ANNOUNCE] kvm howto)
  2006-11-06  8:15   ` Dor Laor
@ 2006-11-13 20:34     ` Tomasz Torcz
  2006-11-13 20:39       ` Arjan van de Ven
  0 siblings, 1 reply; 11+ messages in thread
From: Tomasz Torcz @ 2006-11-13 20:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: kvm-devel

[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

On Mon, Nov 06, 2006 at 12:15:02AM -0800, Dor Laor wrote:
> The BIOS check is a must, it checks bit #0 of MSR_IA32_FEATURE_CONTROL,
> if it set this means that software cannot write to the MSR. If bit #2 is
> clear too then when executing vmxon you'll get #GP.
> 
> So the check should better be there...

  You were right, just writing to this MSR (via kvm_enable) halts my laptop.
 Which is kinda strange, as this solution works on Intel Mac Minis.

  Anyway, complaint to Lenovo sent and got ignored.

-- 
Tomasz Torcz       ,,(...) today's high-end is tomorrow's embedded processor.''
zdzichu@irc.-nie.spam-.pl                      -- Mitchell Blank on LKML


[-- Attachment #2: Type: application/pgp-signature, Size: 229 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: overriding BIOS (was: Re: [ANNOUNCE] kvm howto)
  2006-11-13 20:34     ` overriding BIOS (was: Re: [ANNOUNCE] kvm howto) Tomasz Torcz
@ 2006-11-13 20:39       ` Arjan van de Ven
  0 siblings, 0 replies; 11+ messages in thread
From: Arjan van de Ven @ 2006-11-13 20:39 UTC (permalink / raw)
  To: Tomasz Torcz; +Cc: linux-kernel, kvm-devel

On Mon, 2006-11-13 at 21:34 +0100, Tomasz Torcz wrote:
> On Mon, Nov 06, 2006 at 12:15:02AM -0800, Dor Laor wrote:
> > The BIOS check is a must, it checks bit #0 of MSR_IA32_FEATURE_CONTROL,
> > if it set this means that software cannot write to the MSR. If bit #2 is
> > clear too then when executing vmxon you'll get #GP.
> > 
> > So the check should better be there...
> 
>   You were right, just writing to this MSR (via kvm_enable) halts my laptop.
>  Which is kinda strange, as this solution works on Intel Mac Minis.
> 
>   Anyway, complaint to Lenovo sent and got ignored.
> 

the linux-ready firmware developer kit now tries to test for this; with
some luck the bios people will run this and fix it ;)

-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-11-13 20:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-02 13:25 [ANNOUNCE] kvm howto Avi Kivity
2006-11-02 14:27 ` Hesse, Christian
2006-11-02 14:32   ` Avi Kivity
2006-11-02 15:14     ` Magnus Damm
2006-11-02 15:19       ` Avi Kivity
2006-11-05 17:14 ` Tomasz Torcz
2006-11-06  8:15   ` Dor Laor
2006-11-13 20:34     ` overriding BIOS (was: Re: [ANNOUNCE] kvm howto) Tomasz Torcz
2006-11-13 20:39       ` Arjan van de Ven
2006-11-06  8:51   ` [ANNOUNCE] kvm howto Avi Kivity
2006-11-06 10:14     ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox