Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-17 Thread Amit Shah
On Friday 18 January 2008 04:13:51 Dor Laor wrote: > On Thu, 2008-01-17 at 18:20 +0100, Soren Hansen wrote: > > Hi! > > > > I'm having an issue with GFXboot in Ubuntu. If I try to boot one of our > > recent iso images, e.g. > > > > > > http://cdimage.ubuntu.com/ubuntu-server/daily/current/hardy-s

Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-17 Thread Anthony Liguori
Dor Laor wrote: > On Thu, 2008-01-17 at 07:56 -0600, Anthony Liguori wrote: > >> Dor Laor wrote: >> >>> On Thu, 2008-01-17 at 11:25 +0100, Martin Schwidefsky wrote: >>> >>> > Another idea: Martin added an oom notifier to the cmm driver. Before the > oom-killer kicks in cm

Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-17 Thread Dor Laor
On Thu, 2008-01-17 at 07:56 -0600, Anthony Liguori wrote: > Dor Laor wrote: > > On Thu, 2008-01-17 at 11:25 +0100, Martin Schwidefsky wrote: > > > >>> Another idea: Martin added an oom notifier to the cmm driver. Before the > >>> oom-killer kicks in cmm will try to free 256 pages. I think your

Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-17 Thread Soren Hansen
On Fri, Jan 18, 2008 at 12:43:51AM +0200, Dor Laor wrote: > > I'm having an issue with GFXboot in Ubuntu. If I try to boot one of > > our recent iso images, e.g. > > > > > > http://cdimage.ubuntu.com/ubuntu-server/daily/current/hardy-server-amd64.iso > > > > with a simple "kvm -cdrom hardy-ser

Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-17 Thread Dor Laor
On Thu, 2008-01-17 at 18:20 +0100, Soren Hansen wrote: > Hi! > > I'm having an issue with GFXboot in Ubuntu. If I try to boot one of our > recent iso images, e.g. > > http://cdimage.ubuntu.com/ubuntu-server/daily/current/hardy-server-amd64.iso > > with a simple "kvm -cdrom hardy-server-amd64"

Re: [kvm-devel] [PATCH] mmu notifiers #v2

2008-01-17 Thread Andrea Arcangeli
On Thu, Jan 17, 2008 at 08:21:16PM +0200, Izik Eidus wrote: > ohh i like it, this is cleaver solution, and i guess the cost of the > vmexits wont be too high if it will > be not too much aggressive Yes, and especially during swapping, the system isn't usually CPU bound. The idea is to pay wit

Re: [kvm-devel] [RFC] fix VMX TSC synchronicity

2008-01-17 Thread Andi Kleen
> And turning of the TSC bit (for 32-bit guests). Turning off the TSC bit will break 64bit Linux (it checks if the cpuid bits have minimum supported features) and you don't know in advantage if a guest is 32bit or not. Ok there is a special BIOS call that the kernel issues to tell the BIOS that

Re: [kvm-devel] [RFC] fix VMX TSC synchronicity

2008-01-17 Thread Marcelo Tosatti
On Wed, Jan 16, 2008 at 02:54:15PM +0100, Andi Kleen wrote: > On Wed, Jan 16, 2008 at 03:38:45PM +0200, Avi Kivity wrote: > > Andi Kleen wrote: > > >Linux checks a couple of things: e.g. if there are no deep C states > > >and if there are no clustered nodes in the APIC etc. > > > > > >It might be r

Re: [kvm-devel] [PATCH] mmu notifiers #v2

2008-01-17 Thread Izik Eidus
Andrea Arcangeli wrote: > On Wed, Jan 16, 2008 at 07:48:06PM +0200, Izik Eidus wrote: > >> Rik van Riel wrote: >> >>> On Sun, 13 Jan 2008 17:24:18 +0100 >>> Andrea Arcangeli <[EMAIL PROTECTED]> wrote: >>> >>> >>> In my basic initial patch I only track the tlb flushes which sh

[kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-17 Thread Soren Hansen
Hi! I'm having an issue with GFXboot in Ubuntu. If I try to boot one of our recent iso images, e.g. http://cdimage.ubuntu.com/ubuntu-server/daily/current/hardy-server-amd64.iso with a simple "kvm -cdrom hardy-server-amd64" using the kernel modules from 2.6.24-rc6, and kvm-userspace from git, I

Re: [kvm-devel] [PATCH] Export three symbols out.

2008-01-17 Thread Luck, Tony
I can apply this when the kvm code is ready (and I think that is close). One change that I will make to for all three to be EXPORT_SYMBOL_GPL. -Tony - This SF.net email is sponsored by: Microsoft Defy all challenges. Microso

Re: [kvm-devel] [PATCH] mmu notifiers #v2

2008-01-17 Thread Andrea Arcangeli
On Wed, Jan 16, 2008 at 07:48:06PM +0200, Izik Eidus wrote: > Rik van Riel wrote: >> On Sun, 13 Jan 2008 17:24:18 +0100 >> Andrea Arcangeli <[EMAIL PROTECTED]> wrote: >> >> >>> In my basic initial patch I only track the tlb flushes which should be >>> the minimum required to have a nice linux-VM

[kvm-devel] [PATCH][RESEND] add more regs to kvm_show_regs for powerpc

2008-01-17 Thread Christian Ehrhardt
Resend ppc patches neither rejected, commented nor accepted yet Subject: [PATCH][RESEND] add more regs to kvm_show_regs for powerpc From: Christian Ehrhardt <[EMAIL PROTECTED]> This adds some registers useful for guest debugging to the powerpc code for kvm_show_regs in libkvm. Signed-off-by: Ch

[kvm-devel] [PATCH][RESEND] portability: add CONFIG_KVM_HAS_PIO around pio_data

2008-01-17 Thread Christian Ehrhardt
Carsten asked for the same on s390 which brings me to resend ppc patches neither rejected, commented nor accepted yet Subject: [PATCH][RESEND] portability: add CONFIG_KVM_HAS_PIO around pio_data From: Hollis Blanchard <[EMAIL PROTECTED]> Define and use CONFIG_KVM_HAS_PIO so that non-x86 don't ne

[kvm-devel] [PATCH] SVM: fix lazy FPU switching

2008-01-17 Thread Joerg Roedel
If the guest writes to cr0 and leaves the TS flag at 0 while vcpu->fpu_active is also 0, the TS flag in the guests cr0 gets lost. This leads to corrupt FPU state an causes Windows Vista 64bit to crash very soon after boot. This patch fixes this bug. Signed-off-by: Joerg Roedel <[EMAIL PROTECTED]>

Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-17 Thread Anthony Liguori
Dor Laor wrote: > On Thu, 2008-01-17 at 11:25 +0100, Martin Schwidefsky wrote: > >>> Another idea: Martin added an oom notifier to the cmm driver. Before the >>> oom-killer kicks in cmm will try to free 256 pages. I think your virtio >>> balloon driver should do the same - it seems to be the c

Re: [kvm-devel] [PATCH 2/2] kvmclock implementation, the guest part.

2008-01-17 Thread Glauber de Oliveira Costa
Gerd Hoffmann wrote: >> +struct shared_info shared_info __attribute__((__aligned__(PAGE_SIZE))); > > leftover from old version? > >> +unsigned long kvm_get_wallclock(void) >> +{ >> +u32 wc_sec, wc_nsec; >> +u64 delta, last_tsc; >> +struct timespec ts; >> +int version, nsec, cpu =

[kvm-devel] [PATCH] add more regs to kvm_show_regs for powerpc

2008-01-17 Thread Christian Ehrhardt
Subject: [PATCH] add more regs to kvm_show_regs for powerpc From: Hollis Blanchard <[EMAIL PROTECTED]> From: Christian Ehrhardt <[EMAIL PROTECTED]> This make "extra pages" allocation only apply to x86. IA64 already had an exclusion and so does ppc. This patch switches the default to no extra page

[kvm-devel] [PATCH] ensure 4kB page alignment for embedded powerpc when using kvm

2008-01-17 Thread Christian Ehrhardt
Subject: [PATCH] ensure 4kB page alignment for embedded powerpc when using kvm From: Hollis Blanchard <[EMAIL PROTECTED]> From: Christian Ehrhardt <[EMAIL PROTECTED]> We need 4kB aligned pages when using qemu together with kvm for embedded powerpc. Qemu already had a similar issue when CONFIG_USE

Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-17 Thread Dor Laor
On Thu, 2008-01-17 at 11:25 +0100, Martin Schwidefsky wrote: > > > > Another idea: Martin added an oom notifier to the cmm driver. Before the > > oom-killer kicks in cmm will try to free 256 pages. I think your virtio > > balloon driver should do the same - it seems to be the correct tradeoff.

Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-17 Thread Martin Schwidefsky
On Thu, 2008-01-17 at 10:32 +0100, Christian Borntraeger wrote: > Am Donnerstag, 17. Januar 2008 schrieb Rusty Russell: > > Since the balloon requires Guest cooperation anyway, there seems > > little reason to force it to tell the Host when it wants to reuse a > > page. It can simply fault it in.

Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-17 Thread Christian Borntraeger
Am Donnerstag, 17. Januar 2008 schrieb Rusty Russell: > Since the balloon requires Guest cooperation anyway, there seems > little reason to force it to tell the Host when it wants to reuse a > page. It can simply fault it in. Yes, thats what we do in the s390 cmm driver. All in all the driver has

Re: [kvm-devel] [PATCH 2/2] kvmclock implementation, the guest part.

2008-01-17 Thread Gerd Hoffmann
> +struct shared_info shared_info __attribute__((__aligned__(PAGE_SIZE))); leftover from old version? > +unsigned long kvm_get_wallclock(void) > +{ > + u32 wc_sec, wc_nsec; > + u64 delta, last_tsc; > + struct timespec ts; > + int version, nsec, cpu = smp_processor_id(); > + > +