Re: [kvm-devel] Migration problems

2008-01-28 Thread Guido Guenther
On Fri, Jan 25, 2008 at 05:08:41PM +0100, Guido Guenther wrote: On Thu, Jan 24, 2008 at 01:52:16PM +0200, Uri Lublin wrote: Sometimes after lodavm guest network does work better with '-no-kvm-irqchip' I am trying to use bisection to find the problematic patch. Another migration problem

Re: [kvm-devel] Migration problems

2008-01-25 Thread Guido Guenther
On Thu, Jan 24, 2008 at 01:52:16PM +0200, Uri Lublin wrote: Sometimes after lodavm guest network does work better with '-no-kvm-irqchip' I am trying to use bisection to find the problematic patch. Another migration problem that pops up with kvm 60, doing: migrate exec:dd of=/tmp/bla works in

Re: [kvm-devel] [PATCH] system_powerdown via acpi power button

2008-01-24 Thread Guido Guenther
On Tue, Jan 22, 2008 at 01:12:12PM +0100, Jan Kiszka wrote: Guido Guenther wrote: On Tue, Jan 22, 2008 at 11:11:00AM +0100, Jan Kiszka wrote: #if defined(TARGET_I386) void qemu_system_powerdown(void) { +if (!pm_state) +exit(0); if(pm_state-pmen PWRBTN_EN

Re: [kvm-devel] [PATCH] system_powerdown via acpi power button

2008-01-22 Thread Guido Guenther
On Tue, Jan 22, 2008 at 11:11:00AM +0100, Jan Kiszka wrote: #if defined(TARGET_I386) void qemu_system_powerdown(void) { +if (!pm_state) +exit(0); if(pm_state-pmen PWRBTN_EN) { pm_state-pmsts |= PWRBTN_EN; pm_update_sci(pm_state); This totally defeats the

Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-20 Thread Guido Guenther
Hi Jan, On Sat, Jan 19, 2008 at 04:40:06PM +0100, Jan Kiszka wrote: What about additionally listening on signals? If you run qemu from the console, you can then just press ctrl-c to shut the guest down (instead Catching ctrl-c sounds like a good idea but ctrl-c, ctrl-c should probably kill

Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-19 Thread Guido Guenther
On Sat, Jan 19, 2008 at 12:20:56AM +0200, Avi Kivity wrote: I found a piix4 acpi spec update that says that the SCI interrupt is hardwired to IRQ9 and is active high. Linux knows about this and ignores the pci irq config for this function. With the following changes Aahh, that's why Xen

Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-14 Thread Guido Guenther
On Mon, Jan 14, 2008 at 04:41:23AM -0800, Alexey Eremenko wrote: As far as I know, Qemu/KVM already had ACPI power button; It can be used via Qemu Monitor: system_shutdown command. Before 46b1a7377b55a3b6317b18fff64f1a80de7d3120 system_powerdown was a do { } while(0); on i386 and the FF pwrbtn

Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-09 Thread Guido Guenther
On Tue, Jan 08, 2008 at 10:50:00AM +0200, Avi Kivity wrote: Yes, you can press the VM's power button (system_powerdown in the monitor) and it will invoke the OS shutdown sequence. Only worked on Linux in my testing though. It works for me _when_ I pass --no-kvm-irqchip. So it seems Windows

Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-08 Thread Guido Guenther
On Tue, Jan 08, 2008 at 01:34:30PM +0900, Jun Koi wrote: Sorry for my ignorance, but what is the effect of this patch? So I can shutdown guest VM cleanly, or smt else?? system_powerdown in the commmand monitor now simulates the pressing of the acpi power button. This allows you to shutdown

[kvm-devel] [PATCH] use rtl8139 for bootp too and adjust docs accordingly

2008-01-08 Thread Guido Guenther
If we change the default nic, we should do so in all places. Without this PXE booting is broken since we select the wrong pxe etherboot image. Cheers, -- Guido diff --git a/qemu/qemu-doc.texi b/qemu/qemu-doc.texi index 04529a1..accf360 100644 --- a/qemu/qemu-doc.texi +++ b/qemu/qemu-doc.texi @@

Re: [kvm-devel] acpi sci polarity

2008-01-07 Thread Guido Guenther
anymore. From 918338e3f37f91a14d230a9ccf3c3387a2b58617 Mon Sep 17 00:00:00 2001 From: Guido Guenther [EMAIL PROTECTED] Date: Fri, 4 Jan 2008 19:26:33 +0100 Subject: [PATCH] add interrupt override entries for IRQs 5,9,10,11 to the MADT so the OS knows that they're active high, level triggered

[kvm-devel] [PATCH] add acpi powerbutton support

2008-01-07 Thread Guido Guenther
(needs either --no-kvm-irqchip or the previous patch) -- Guido diff --git a/bios/rombios32.c b/bios/rombios32.c index 314df94..7a96ece 100755 --- a/bios/rombios32.c +++ b/bios/rombios32.c @@ -1318,8 +1318,8 @@ void acpi_bios_init(void) fadt-pm_tmr_len = 4; fadt-plvl2_lat =

Re: [kvm-devel] acpi sci polarity

2008-01-04 Thread Guido Guenther
- we this be o.k. until all the IRQ setup gets a revamp: From 7950892de473d42ce57e0727594190b4bfafab14 Mon Sep 17 00:00:00 2001 From: Guido Guenther [EMAIL PROTECTED] Date: Fri, 4 Jan 2008 19:26:33 +0100 Subject: [PATCH] int 10 is currently active high so add a proper interrupt override entry

[kvm-devel] [PATCH] use rtl8139 as default network adapter

2008-01-03 Thread Guido Guenther
On Fri, Dec 28, 2007 at 10:53:53PM +0200, Izik Eidus wrote: Guido Guenther wrote: [..snip..] kvm-58 doesn't show this problem, thanks! The host runs stable now. I'm still seeing network stalls on large transfers in the guest though. Ifup/ifdown'ing the interface in the guest gets things going

[kvm-devel] [PATCH] system_powerdown via acpi power button

2008-01-03 Thread Guido Guenther
Hi, in order to be able to shutdown kvm cleanly with libvirt (currently libvirt simply sends a SIGTERM) I implemented system_powerdown() to simulate the pressing of a fixed feature acpi power button. The patch has one issue though, it currently needs --no-kvm-irqchip (see my other mail). Please

[kvm-devel] acpi sci polarity

2008-01-03 Thread Guido Guenther
On Thu, Jan 03, 2008 at 07:11:32PM +0100, Guido Guenther wrote: simulate the pressing of a fixed feature acpi power button. The patch has one issue though, it currently needs --no-kvm-irqchip (see my other mail). Please apply if appropriate. When running without --no-kvm-irqchip the ACPI irq

Re: [kvm-devel] Oops on 2.6.23.11 with KVM 57

2007-12-28 Thread Guido Guenther
On Thu, Dec 27, 2007 at 12:34:58PM +0200, Avi Kivity wrote: Looks like memory corruption; this was a call through a function pointer that pointed into userspace. Please try kvm-58, that has a fix for preemption notifiers on AMD; this may solve the problem. kvm-58 doesn't show this problem,

[kvm-devel] Oops on 2.6.23.11 with KVM 57

2007-12-21 Thread Guido Guenther
Hi, I got the Oops below on an Dual CPU Dual-Core AMD Opteron(tm) Processor 2220 running a 32bit kernel. Kernel is 2.6.23.11, kvm version 57. Doesn't happen all the time but usually right at VM startup. Seems to be easier to trigger when starting up several VMs in row. Does it help to post more of