Re: [kvm-devel] [RFC] Handling VMEXITS with interrupts disabled?

2007-04-23 Thread Avi Kivity
Anthony Liguori wrote: > Howdy, > > I had an idea for improving VMEXIT time by only saving/restoring > sys{enter,call,ret} MSRs when exiting from kernel space code since as > long as these instructions aren't executed on the host, everything > should be fine. > Yup. > This worked fine for M

Re: [kvm-devel] SEP regression in kvm-20?

2007-04-23 Thread Avi Kivity
Rusty Russell wrote: > Hi all, > > I note that Linux under kvm 20 doesn't use sysenter, while it did under > kvm 19. There's no "sep" in /proc/cpuinfo x86info does report sep, but arch/i386/kernel/cpu/intel.c has this to say: /* SEP CPUID bug: Pentium Pro reports SEP but doesn't h

[kvm-devel] crash with CFS v4 and qemu/kvm (was: [patch] CFS scheduler, v4)

2007-04-23 Thread Christian Hesse
On Friday 20 April 2007, Ingo Molnar wrote: > i'm pleased to announce release -v4 of the CFS patchset. Hi Ingo, hi Avi, hi all, I'm trying to use kvm-20 with cfs v4 and get a crash: [EMAIL PROTECTED]:~$ /usr/local/kvm/bin/qemu -snapshot /mnt/data/virtual/qemu/winxp.img kvm_run: failed entry, re

Re: [kvm-devel] crash with CFS v4 and qemu/kvm (was: [patch] CFS scheduler, v4)

2007-04-23 Thread Ingo Molnar
* Christian Hesse <[EMAIL PROTECTED]> wrote: > On Friday 20 April 2007, Ingo Molnar wrote: > > i'm pleased to announce release -v4 of the CFS patchset. > > Hi Ingo, hi Avi, hi all, > > I'm trying to use kvm-20 with cfs v4 and get a crash: > > [EMAIL PROTECTED]:~$ /usr/local/kvm/bin/qemu -snaps

Re: [kvm-devel] SEP regression in kvm-20?

2007-04-23 Thread Rusty Russell
On Mon, 2007-04-23 at 10:17 +0300, Avi Kivity wrote: > Rusty Russell wrote: > > Hi all, > > > > I note that Linux under kvm 20 doesn't use sysenter, while it did under > > kvm 19. There's no "sep" in /proc/cpuinfo > > x86info does report sep, but arch/i386/kernel/cpu/intel.c has this to say:

Re: [kvm-devel] [ANNOUNCE] virtbench w/ kvm support

2007-04-23 Thread Avi Kivity
Rusty Russell wrote: > Hi all, > > I've been toying around with a benchmark suite for virtualization, and > I've just added kvm support. You can download the source tarball > straight from the mercurial repo: > > http://ozlabs.org/~rusty/virtbench/ > http://ozlabs.org/~rusty/virt

Re: [kvm-devel] SEP regression in kvm-20?

2007-04-23 Thread Avi Kivity
Rusty Russell wrote: > vendor_id here is a char 223: > > processor : 0 > vendor_id : � > I fixed an assembly constraint problem (& pushed to kernel.org) which may help with this. -- error compiling committee.c: too many arguments to function

[kvm-devel] Compiling kvm / qemu with debugging symbols

2007-04-23 Thread Ed Schofield
Hi everyone, I'd like to compile kvm with debugging symbols so I can post a backtrace for a segfault I'm seeing in kvm-20. I've tried hacking the Makefiles to add -g and -DDEBUG in various places, but it seems like there has to be a better way to do it. What's the recommended way of doing this? -

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

2007-04-23 Thread Jeff Chua
On 4/22/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Significant cpu performance improvements (esp. for 32-bit guests on > 64-bit hosts), as well as Windows 2000 support (without acpi). Avi, Ecountered the following error with kvm-20 (external modules) on Linux-2.6.21-rc7. kvm_run: failed entry,

Re: [kvm-devel] [PATCH 2/5] KVM: Add irqdevice object

2007-04-23 Thread Gregory Haskins
>>> On Sun, Apr 22, 2007 at 4:42 AM, in message <[EMAIL PROTECTED]>, Avi Kivity <[EMAIL PROTECTED]> wrote: > Gregory Haskins wrote: >> The current code is geared towards using a user- mode (A)PIC. This patch >> adds >> an "irqdevice" abstraction, and implements a "userint" model to handle the >

Re: [kvm-devel] [PATCH] Lazy FPU for SVM

2007-04-23 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: Author: Anthony Liguori <[EMAIL PROTECTED]> Date: Sun Apr 22 20:34:03 2007 -0500 Lazy FPU support for SVM. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index d1a90c5..4859c32 100644

[kvm-devel] unix lite

2007-04-23 Thread Omar Khan
hi, I am trying to run unix like operating system (mainly meant for educational purposes) on kvm called "Unix Lite" (http://www.unixlite.org/). It runs fine on qemu but on kvm it gives the unhandled vm exit 0x9. This is caused by the hardware task switch that is used in unix lite. The code

Re: [kvm-devel] [PATCH 3/5] KVM: Adds ability to preepmt an executing VCPU

2007-04-23 Thread Gregory Haskins
>>> On Sun, Apr 22, 2007 at 4:50 AM, in message <[EMAIL PROTECTED]>, Avi Kivity <[EMAIL PROTECTED]> wrote: > Gregory Haskins wrote: >> /* >> + * Signal that we have transitioned back to host mode >> + */ >> +spin_lock_irqsave(&vcpu- >irq.lock, irq_flags); >> +vcpu- >irq.gues

Re: [kvm-devel] [PATCH 4/5] KVM: Local-APIC interface cleanup

2007-04-23 Thread Gregory Haskins
>>> On Sun, Apr 22, 2007 at 4:54 AM, in message <[EMAIL PROTECTED]>, Avi Kivity <[EMAIL PROTECTED]> wrote: > Gregory Haskins wrote: >> Adds an abstraction to the LAPIC logic so that we can later substitute it >> for an in- kernel model. >> >> > > This is overly abstracted. It's not like you

Re: [kvm-devel] [PATCH 5/5] KVM: Add support for in-kernel LAPIC model

2007-04-23 Thread Gregory Haskins
>>> On Sun, Apr 22, 2007 at 5:04 AM, in message <[EMAIL PROTECTED]>, Avi Kivity <[EMAIL PROTECTED]> wrote: > Gregory Haskins wrote: >> Signed- off- by: Gregory Haskins <[EMAIL PROTECTED]> >> --- >> >> drivers/kvm/Makefile |2 >> drivers/kvm/kernint.c | 168 + >> drivers/kvm/kvm.h

Re: [kvm-devel] [ANNOUNCE] virtbench w/ kvm support

2007-04-23 Thread Rusty Russell
On Mon, 2007-04-23 at 15:49 +0300, Avi Kivity wrote: > Rusty Russell wrote: > > Hi all, > > > > I've been toying around with a benchmark suite for virtualization, and > > I've just added kvm support. You can download the source tarball > > straight from the mercurial repo: > > Virtbench does n

Re: [kvm-devel] kvm somehow exempt from frequency scaling?

2007-04-23 Thread David Abrahams
on Mon Apr 16 2007, David Abrahams wrote: > on Thu Apr 12 2007, David Abrahams > wrote: > >> on Thu Apr 12 2007, Avi Kivity >> wrote: >> >>> qemu is getting cpu time, but not calling into kvm. >>> >>> I'll try to reproduce this locally, right now I'm completely bewildered >>> by this. >> >