Re: [kvm-devel] [PATCH 0/14] KVM: Kernel-based Virtual Machine (v4)

2006-11-07 Thread Andrew Morton
On Wed, 08 Nov 2006 09:14:50 +0200 Avi Kivity <[EMAIL PROTECTED]> wrote: > Roland Dreier wrote: > > > That's gas 2.16.1. I assume it needs some super-new binutils. > > > > > > I'm not sure what to do about this. What's the minimum version? > > > > According to http://kvm.sourceforge.net/howt

Re: [kvm-devel] [PATCH 0/14] KVM: Kernel-based Virtual Machine (v4)

2006-11-07 Thread Avi Kivity
Roland Dreier wrote: > > That's gas 2.16.1. I assume it needs some super-new binutils. > > > > I'm not sure what to do about this. What's the minimum version? > > According to http://kvm.sourceforge.net/howto.html : > A recent enough binutils (>= 2.16.91.0.2) for vmx instruction support >

Re: [kvm-devel] [PATCH 0/14] KVM: Kernel-based Virtual Machine (v4)

2006-11-07 Thread Roland Dreier
> That's gas 2.16.1. I assume it needs some super-new binutils. > > I'm not sure what to do about this. What's the minimum version? According to http://kvm.sourceforge.net/howto.html : A recent enough binutils (>= 2.16.91.0.2) for vmx instruction support - R. -

Re: [kvm-devel] [PATCH 0/14] KVM: Kernel-based Virtual Machine (v4)

2006-11-07 Thread Andrew Morton
On Sun, 05 Nov 2006 22:27:45 +0200 Avi Kivity <[EMAIL PROTECTED]> wrote: > The following patchset adds a driver for Intel's hardware > virtualization extensions to the x86 architecture. kapow. {standard input}: Assembler messages: {standard input}:157: Error: no such instruction: `vmxon -20(%eb

Re: [kvm-devel] [PATCH 0/14] KVM: Kernel-based Virtual Machine (v4)

2006-11-07 Thread Avi Kivity
Yinghai Lu wrote: > On 11/5/06, Avi Kivity <[EMAIL PROTECTED]> wrote: >> - Windows 64-bit does not work. That's also true for qemu, so it's >> probably a problem with the device model. > > Windows 64bit could work as guest with qemu latest cvs version. > That's good to know. Once the next qemu

Re: [kvm-devel] [PATCH 0/14] KVM: Kernel-based Virtual Machine (v4)

2006-11-07 Thread Yinghai Lu
On 11/5/06, Avi Kivity <[EMAIL PROTECTED]> wrote: > - Windows 64-bit does not work. That's also true for qemu, so it's > probably a problem with the device model. Windows 64bit could work as guest with qemu latest cvs version. YH ---

[kvm-devel] [PATCH] KVM: Fix guest cr4 corruption

2006-11-07 Thread Avi Kivity
Upon entry to protected mode, we set cr4 to a value derived from cr0 accidentally. Fix. This could cause a guest to crash (though I never observed it). Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/kvm_main.c =

[kvm-devel] [PATCH] KVM: Workaround cr0.cd (cache disable) bit leak from guest to host

2006-11-07 Thread Avi Kivity
On Core-not-2 processors (or on laptops - not sure what the cause is), the cache disable bit sometimes leaks from the guest cr0 to the host cr0. This leaves the host limping along at a snail's pace long after the guest has left. This might be a bug in the processor or in the smm (system managemen

Re: [kvm-devel] [PATCH] KVM: fix calculation of initial value of rdx register

2006-11-07 Thread Avi Kivity
Hesse, Christian wrote: On Tuesday 07 November 2006 14:25, Avi Kivity wrote: Hesse, Christian wrote: On Tuesday 07 November 2006 13:31, Avi Kivity wrote: Hesse, Christian wrote: Then, please apply the attached patch. You will need serial console or netconsole, and to

Re: [kvm-devel] [PATCH 12/14] KVM: x86 emulator

2006-11-07 Thread Hesse, Christian
On Tuesday 07 November 2006 13:55, Avi Kivity wrote: > Pavel Machek wrote: > >> Index: linux-2.6/drivers/kvm/x86_emulate.c > >> === > >> --- /dev/null > >> +++ linux-2.6/drivers/kvm/x86_emulate.c > >> @@ -0,0 +1,1370 @@ > >> +/

Re: [kvm-devel] [PATCH] KVM: fix calculation of initial value of rdx register

2006-11-07 Thread Hesse, Christian
On Tuesday 07 November 2006 14:25, Avi Kivity wrote: > Hesse, Christian wrote: > > On Tuesday 07 November 2006 13:31, Avi Kivity wrote: > >> Hesse, Christian wrote: > Then, please apply the attached patch. You will need serial console > or netconsole, and to > > echo 9 > /pr

Re: [kvm-devel] [PATCH 12/14] KVM: x86 emulator

2006-11-07 Thread Arjan van de Ven
On Tue, 2006-11-07 at 15:22 +0200, Avi Kivity wrote: > Arjan van de Ven wrote: > >> The entire patchset is GPL'ed. Do you mean to make it explicit? If so, > >> how? I'd rather not copy the entire license into each file. > >> > > > > a simple one liner like > > "This file is licensed under

Re: [kvm-devel] [PATCH 12/14] KVM: x86 emulator

2006-11-07 Thread Miguel Ojeda
On 11/7/06, Avi Kivity <[EMAIL PROTECTED]> wrote: > Arjan van de Ven wrote: > >> The entire patchset is GPL'ed. Do you mean to make it explicit? If so, > >> how? I'd rather not copy the entire license into each file. > >> > > > > a simple one liner like > > "This file is licensed under the terms

Re: [kvm-devel] [PATCH] KVM: fix calculation of initial value of rdx register

2006-11-07 Thread Avi Kivity
Hesse, Christian wrote: On Tuesday 07 November 2006 13:31, Avi Kivity wrote: Hesse, Christian wrote: Then, please apply the attached patch. You will need serial console or netconsole, and to echo 9 > /proc/sysrq-trigger before launching the VM. There is no patch attached

Re: [kvm-devel] [PATCH 12/14] KVM: x86 emulator

2006-11-07 Thread Avi Kivity
Arjan van de Ven wrote: >> The entire patchset is GPL'ed. Do you mean to make it explicit? If so, >> how? I'd rather not copy the entire license into each file. >> > > a simple one liner like > "This file is licensed under the terms of the GPL v2 license" > (add "or later" if you feel like

Re: [kvm-devel] [PATCH] KVM: fix calculation of initial value of rdx register

2006-11-07 Thread Hesse, Christian
On Tuesday 07 November 2006 13:31, Avi Kivity wrote: > Hesse, Christian wrote: > >> Then, please apply the attached patch. You will need serial console or > >> netconsole, and to > >> > >>echo 9 > /proc/sysrq-trigger > >> > >> before launching the VM. > > > > There is no patch attached to this

Re: [kvm-devel] [PATCH 12/14] KVM: x86 emulator

2006-11-07 Thread Arjan van de Ven
> The entire patchset is GPL'ed. Do you mean to make it explicit? If so, > how? I'd rather not copy the entire license into each file. a simple one liner like "This file is licensed under the terms of the GPL v2 license" (add "or later" if you feel like doing that) is going to be generally us

Re: [kvm-devel] [PATCH 12/14] KVM: x86 emulator

2006-11-07 Thread Avi Kivity
Pavel Machek wrote: >> Index: linux-2.6/drivers/kvm/x86_emulate.c >> === >> --- /dev/null >> +++ linux-2.6/drivers/kvm/x86_emulate.c >> @@ -0,0 +1,1370 @@ >> +/***

Re: [kvm-devel] [PATCH 12/14] KVM: x86 emulator

2006-11-07 Thread Pavel Machek
HI! > Add an x86 instruction emulator for kvm. > > We need an x86 emulator for the following reasons: > > - mmio instructions are intercepted as page faults, with no information about > the operation to be performed other than the virtual address > - real-mode is emulated using the old-fashine

Re: [kvm-devel] [PATCH] KVM: fix calculation of initial value of rdx register

2006-11-07 Thread Avi Kivity
Hesse, Christian wrote: Then, please apply the attached patch. You will need serial console or netconsole, and to echo 9 > /proc/sysrq-trigger before launching the VM. There is no patch attached to this mail... Sorry, attaching now. BTW, what OS are you trying to run in th

Re: [kvm-devel] [PATCH] KVM: fix calculation of initial value of rdx register

2006-11-07 Thread Hesse, Christian
On Tuesday 07 November 2006 09:14, Avi Kivity wrote: > Hesse, Christian wrote: > > On Monday 06 November 2006 14:15, you wrote: > >> On bootup, the rdx register contains information about the processor. > >> The function which calculates this value has the bugs: > >> > >> - missing 'cpuid' to get

Re: [kvm-devel] [PATCH] KVM: fix calculation of initial value of rdx register

2006-11-07 Thread Avi Kivity
Hesse, Christian wrote: > On Monday 06 November 2006 14:15, you wrote: > >> On bootup, the rdx register contains information about the processor. The >> function which calculates this value has the bugs: >> >> - missing 'cpuid' to get the value from the processor >> - missing register clobber