Re: [kvm-devel] kvm-13

2007-02-19 Thread Avi Kivity
Muli Ben-Yehuda wrote: > Thanks for the analysis, this problem is understood. Avi commited a > fix for -14 a few days back, but the fix re-breaks > --kerneldir. Reenabling --kerneldir is simple - see attached patch - > but since this is obviously a fragile area, I decided not to push for > its incl

Re: [kvm-devel] [RFC] QEMU KVM target

2007-02-19 Thread Avi Kivity
Anthony Liguori wrote: > Howdy, > > Here's a tiny patch that adds a i386-kvm target. The main difference > between the i386-kvm and i386-softmmu target is that the -kvm target > does not have any of the dyngen infrastructure. This means that it > will build with gcc-4. I know you can do --cc=

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Avi Kivity
Aurelien Jarno wrote: > The bad news is that kvm-14 seems to be a lot slower than kvm-12 + > modules from kernel 2.6.20. This is the case with a GNU/kFreeBSD guest. > kvm-12 was about 1.5 time faster than qemu + kqemu. kvm-20 is slower > than qemu without kqemu... > > Does anybody have an idea abou

Re: [kvm-devel] paravirtualization structure

2007-02-19 Thread Avi Kivity
Omar Khan wrote: > Dor Laor <[EMAIL PROTECTED]> writes: > > > >> Theoretically speaking the answer is yes, vmcall is a special >> instruction that it one and only purpose is the exit from the guest. >> While mov cr3 instruction might be bound to other actions of the >> processor and might have m

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread James Morris
On Tue, 20 Feb 2007, Rusty Russell wrote: > Stable ABIs are hard, and this is CONFIG_EXPERIMENTAL after all. I > don't think KVM needs ABI stability until CONFIG_EXPERIMENTAL is removed > (of course, sooner is always nice if it doesn't create problems). FC7 will ship with kvm and 2.6.21, so chan

Re: [kvm-devel] [RFC] QEMU KVM target

2007-02-19 Thread Anthony Liguori
Jun Koi wrote: > Howdy Anthony, > >> Here's a tiny patch that adds a i386-kvm target. The main difference >> between the i386-kvm and i386-softmmu target is that the -kvm target >> does not have any of the dyngen infrastructure. This means that it will >> build with gcc-4. I know you can do --cc

Re: [kvm-devel] [RFC] QEMU KVM target

2007-02-19 Thread Jun Koi
Howdy Anthony, > Here's a tiny patch that adds a i386-kvm target. The main difference > between the i386-kvm and i386-softmmu target is that the -kvm target > does not have any of the dyngen infrastructure. This means that it will > build with gcc-4. I know you can do --cc=gcc to use gcc-4 but

[kvm-devel] [RFC] QEMU KVM target

2007-02-19 Thread Anthony Liguori
Howdy, Here's a tiny patch that adds a i386-kvm target. The main difference between the i386-kvm and i386-softmmu target is that the -kvm target does not have any of the dyngen infrastructure. This means that it will build with gcc-4. I know you can do --cc=gcc to use gcc-4 but quite a few

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Rusty Russell
On Mon, 2007-02-19 at 10:37 -0500, James Morris wrote: > On Mon, 19 Feb 2007, Avi Kivity wrote: > > > Daniel P. Berrange wrote: > > >> Note that if you use the modules from Linux 2.6.20, you need to use > > >> kvm-12. You can use kvm-14 with Linux 2.6.20, provided you use the > > >> external mo

Re: [kvm-devel] paravirtualization structure

2007-02-19 Thread Omar Khan
Dor Laor <[EMAIL PROTECTED]> writes: > > Theoretically speaking the answer is yes, vmcall is a special > instruction that it one and only purpose is the exit from the guest. > While mov cr3 instruction might be bound to other actions of the > processor and might have more effects on the pipeline

Re: [kvm-devel] kvm-13

2007-02-19 Thread Muli Ben-Yehuda
Thanks for the analysis, this problem is understood. Avi commited a fix for -14 a few days back, but the fix re-breaks --kerneldir. Reenabling --kerneldir is simple - see attached patch - but since this is obviously a fragile area, I decided not to push for its inclusion. Maybe I'm the sole --kerne

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Aurelien Jarno
Avi Kivity a écrit : > The big news here is the update to qemu 0.9.0. > > Changes from kvm-13: > - qemu 0.9.0 >- too many goodies to list >- kvm can no longer share qemu's bios on Intel hosts due to real mode > trouble. use the supplied bios. > - migration now based on Anthony Liguori's

Re: [kvm-devel] kvm-13

2007-02-19 Thread Omar Khan
Muli Ben-Yehuda <[EMAIL PROTECTED]> writes: > That does not explain why the change you made (from ?= to :=) made any > difference. Could you send a full log of ./configure && make && make > install with and without your change? > Well from what I have observed this makes a difference because in

Re: [kvm-devel] paravirtualization structure

2007-02-19 Thread Dor Laor
>> The hypercall sequence does not avoid a vmexit. The guest issues a >> vmcall instruction, which is trapped and processed by the host. >> > >Thanks for replying Avi. In your response > (http://article.gmane.org/gmane.linux.kernel/481457) to the announcement >of the > KVM paravirtualization patch

Re: [kvm-devel] paravirtualization structure

2007-02-19 Thread Omar Khan
Avi Kivity <[EMAIL PROTECTED]> writes: > The hypercall sequence does not avoid a vmexit. The guest issues a > vmcall instruction, which is trapped and processed by the host. > Thanks for replying Avi. In your response (http://article.gmane.org/gmane.linux.kernel/481457) to the announcement o

Re: [kvm-devel] unhandled vm exit: 0x80000021

2007-02-19 Thread Avi Kivity
Jorge Boncompte [DTI2] wrote: > Hi, > > My kvm/qemu setup exits realiably with the error from the subject every > time that I do a reboot at the guest. Aside from this annoyance kvm/qemu > works pretty well on my workload. > > HOST: Debian (etch) + kernel.org 2.6.20 (32bits) + kvm-14

[kvm-devel] unhandled vm exit: 0x80000021

2007-02-19 Thread Jorge Boncompte [DTI2]
Hi, My kvm/qemu setup exits realiably with the error from the subject every time that I do a reboot at the guest. Aside from this annoyance kvm/qemu works pretty well on my workload. HOST: Debian (etch) + kernel.org 2.6.20 (32bits) + kvm-14 GUEST: Custom embedded distribution +

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Avi Kivity
James Morris wrote: > It's traditional for the mainline kernel to maintain backward > compatibility with existing userspace ABIs (e.g. syscalls). > > The idea of a userspace application breaking because of a mainline kernel > upgrade is not acceptable to users and also pretty much unsupportable b

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread James Morris
On Mon, 19 Feb 2007, Avi Kivity wrote: > Daniel P. Berrange wrote: > >> Note that if you use the modules from Linux 2.6.20, you need to use > >> kvm-12. You can use kvm-14 with Linux 2.6.20, provided you use the > >> external module included in kvm-14. > >> > > > > Is there back-compatabil

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Avi Kivity
Omar Khan wrote: > Andreas Hasenack <[EMAIL PROTECTED]> writes: > >> How are you guys in general dealing with the gcc-3.x requirement? Most >> distros >> already use gcc-4.x. >> >> > > gcc-3.x for qemu? Here is how you can install gcc-3.x without breaking > gcc-4.x: > > http://en.opensus

Re: [kvm-devel] paravirtualization structure

2007-02-19 Thread Avi Kivity
Omar Khan wrote: > hi, > >I have a couple of kvm/kernel newbie questions: > >1. What is the sequence of events for a paravirtualization hypercall? I > understand how VMX architecture works, but how does the paravirt fit in? When > we > make a paravirt sys call we avoid a VMexit, but which

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Omar Khan
Andreas Hasenack <[EMAIL PROTECTED]> writes: > > How are you guys in general dealing with the gcc-3.x requirement? Most > distros > already use gcc-4.x. > gcc-3.x for qemu? Here is how you can install gcc-3.x without breaking gcc-4.x: http://en.opensuse.org/Qemu_with_kqemu_kernel_module_suppo

[kvm-devel] paravirtualization structure

2007-02-19 Thread Omar Khan
hi, I have a couple of kvm/kernel newbie questions: 1. What is the sequence of events for a paravirtualization hypercall? I understand how VMX architecture works, but how does the paravirt fit in? When we make a paravirt sys call we avoid a VMexit, but which address space does the call go t

[kvm-devel] kvm development moving to git

2007-02-19 Thread Avi Kivity
kvm kernel code is now developed using git. This was done for two reasons: - with the paravirtualization work, we have code in the kernel beyond drivers/kvm/. Subversion is not quite up to hosting an entire kernel tree efficiently. - people have expressed interest in maintaining long-term branc

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Avi Kivity
Andreas Hasenack wrote: > How are you guys in general dealing with the gcc-3.x requirement? Most > distros > already use gcc-4.x. > If you're not planning to use the -no-kvm option, you can use gcc 4. Otherwise, you can use the gcc 3 compat packages that most distros provide. Note that onl

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Andreas Hasenack
On Monday 19 February 2007 09:01:36 Avi Kivity wrote: > The big news here is the update to qemu 0.9.0. > > Changes from kvm-13: > - qemu 0.9.0 >- too many goodies to list >- kvm can no longer share qemu's bios on Intel hosts due to real mode > trouble. use the supplied bios. > - migration

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Avi Kivity
Daniel P. Berrange wrote: >> Note that if you use the modules from Linux 2.6.20, you need to use >> kvm-12. You can use kvm-14 with Linux 2.6.20, provided you use the >> external module included in kvm-14. >> > > Is there back-compatability in the reverse direction ? ie, will the > new kmod

Re: [kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Daniel P. Berrange
On Mon, Feb 19, 2007 at 01:01:36PM +0200, Avi Kivity wrote: > The big news here is the update to qemu 0.9.0. > > Changes from kvm-13: > - qemu 0.9.0 >- too many goodies to list >- kvm can no longer share qemu's bios on Intel hosts due to real mode > trouble. use the supplied bios. > - mi

[kvm-devel] [ANNOUNCE] kvm-14 release

2007-02-19 Thread Avi Kivity
The big news here is the update to qemu 0.9.0. Changes from kvm-13: - qemu 0.9.0 - too many goodies to list - kvm can no longer share qemu's bios on Intel hosts due to real mode trouble. use the supplied bios. - migration now based on Anthony Liguori's live migration patches (Uri Lublin)

[kvm-devel] [PATCH 13/13] KVM: More 0 -> NULL conversions

2007-02-19 Thread Avi Kivity
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/kvm_main.c === --- linux-2.6.orig/drivers/kvm/kvm_main.c +++ linux-2.6/drivers/kvm/kvm_main.c @@ -2229,13 +2229,13 @@ static void kvm_exit_debug(void) static

[kvm-devel] [PATCH 12/13] KVM: SVM: intercept SMI to handle it at host level

2007-02-19 Thread Avi Kivity
From: Joerg Roedel <[EMAIL PROTECTED]> This patch changes the SVM code to intercept SMIs and handle it outside the guest. Signed-off-by: Joerg Roedel <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/svm.c =

[kvm-devel] [PATCH 11/13] KVM: svm: init cr0 with the wp bit set

2007-02-19 Thread Avi Kivity
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/svm.c === --- linux-2.6.orig/drivers/kvm/svm.c +++ linux-2.6/drivers/kvm/svm.c @@ -554,7 +554,7 @@ static void init_vmcb(struct vmcb *vmcb) * cr0 val

[kvm-devel] [PATCH 10/13] KVM: Wire up hypercall handlers to a central arch-independent location

2007-02-19 Thread Avi Kivity
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/kvm_main.c === --- linux-2.6.orig/drivers/kvm/kvm_main.c +++ linux-2.6/drivers/kvm/kvm_main.c @@ -1138,6 +1138,42 @@ int emulate_instruction(struct kvm_vcpu

[kvm-devel] [PATCH 9/13] KVM: Add hypercall host support for svm

2007-02-19 Thread Avi Kivity
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/svm.c === --- linux-2.6.orig/drivers/kvm/svm.c +++ linux-2.6/drivers/kvm/svm.c @@ -1076,6 +1076,20 @@ static int halt_interception(struct kvm_ return 0

[kvm-devel] [PATCH 8/13] KVM: Add host hypercall support for vmx

2007-02-19 Thread Avi Kivity
From: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/include/linux/kvm_para.h === --- linux-2.6.orig/include/linux/kvm_para.h +++ linux-2.6/include/linux/kvm_para.h @@ -52,4 +52,22 @@ s

[kvm-devel] [PATCH 7/13] KVM: add MSR based hypercall API

2007-02-19 Thread Avi Kivity
From: Ingo Molnar <[EMAIL PROTECTED]> This adds a special MSR based hypercall API to KVM. This is to be used by paravirtual kernels and virtual drivers. Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/kvm_main.c ==

[kvm-devel] [PATCH 6/13] KVM: Use page_private()/set_page_private() apis

2007-02-19 Thread Avi Kivity
From: Markus Rechberger <[EMAIL PROTECTED]> Besides using an established api, this allows using kvm in older kernels. Signed-off-by: Markus Rechberger <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/mmu.c

[kvm-devel] [PATCH 5/13] KVM: Use ARRAY_SIZE macro instead of manual calculation.

2007-02-19 Thread Avi Kivity
From: Ahmed S. Darwish <[EMAIL PROTECTED]> Signed-off-by: Ahmed S. Darwish <[EMAIL PROTECTED]> Signed-off-by: Dor Laor <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/svm.c === --- linux

[kvm-devel] [PATCH 4/13] KVM: vmx: hack set_cr0_no_modeswitch() to actually do modeswitch

2007-02-19 Thread Avi Kivity
From: Markus Rechberger <[EMAIL PROTECTED]> From: Joerg Roedel <[EMAIL PROTECTED]> The whole thing is rotten, but this allows vmx to boot with the guest reboot fix. Signed-off-by: Markus Rechberger <[EMAIL PROTECTED]> Signed-off-by: Joerg Roedel <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMA

[kvm-devel] [PATCH 3/13] KVM: Cosmetics

2007-02-19 Thread Avi Kivity
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/kvm_main.c === --- linux-2.6.orig/drivers/kvm/kvm_main.c +++ linux-2.6/drivers/kvm/kvm_main.c @@ -126,10 +126,8 @@ static inline int valid_vcpu(int n)

[kvm-devel] [PATCH 2/13] KVM: Move virtualization deactivation from CPU_DEAD state to CPU_DOWN_PREPARE

2007-02-19 Thread Avi Kivity
From: Jeremy Katz <[EMAIL PROTECTED]> This gives it more chances of surviving suspend. Signed-off-by: Jeremy Katz <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/kvm_main.c === --- linu

[kvm-devel] [PATCH 1/13] KVM: mmu: add missing dirty page tracking cases

2007-02-19 Thread Avi Kivity
We fail to mark a page dirty in three cases: - setting the accessed bit in a pte - setting the dirty bit in a pte - emulating a write into a pagetable This fix adds the missing cases. Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> Index: linux-2.6/drivers/kvm/paging_tmpl.h ==

[kvm-devel] [PATCH 0/13] kvm updates for 2.6.21

2007-02-19 Thread Avi Kivity
Following is a series of kvm updates. Please apply to Linux 2.6.21. -- error compiling committee.c: too many arguments to function - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel

Re: [kvm-devel] [PATCH] Lazy FPU save/restore

2007-02-19 Thread Avi Kivity
Anthony Liguori wrote: > Avi Kivity wrote: >> Avi Kivity wrote: I'll have to try and setup a 64 bit system. I cannot reproduce on my 32bit system with your test program. >>> >>> It may be related to 64-bit (as that uses sse for floating point), >>> or to the fact that I use ssh on