[COMMIT master] qemu-kvm: fix build on 32 bit

2009-10-10 Thread Avi Kivity
From: Michael S. Tsirkin m...@redhat.com Fix build on 32 bit system: cast 64 bit integer to pointer through pointer-sized integer. Without this, I get: qemu-kvm.c:1557: error: cast to pointer from integer of different size Signed-off-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Avi

[COMMIT master] qemu-kvm: fix build with KVM_CAP_SET_GUEST_DEBUG

2009-10-10 Thread Avi Kivity
From: Michael S. Tsirkin m...@redhat.com Fix build with KVM_CAP_SET_GUEST_DEBUG: use QLIST macro to declare list head. Signed-off-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu-kvm.h b/qemu-kvm.h index 4523e25..d6748c7 100644 --- a/qemu-kvm.h

[COMMIT master] Update kvm headers

2009-10-10 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/kvm/include/ia64/asm/kvm.h b/kvm/include/ia64/asm/kvm.h index 9920dd6..bc90c75 100644 --- a/kvm/include/ia64/asm/kvm.h +++ b/kvm/include/ia64/asm/kvm.h @@ -21,7 +21,7 @@ * */ -#include asm/types.h

[COMMIT master] KVM: use proper hrtimer function to retrieve expiration time

2009-10-10 Thread Avi Kivity
From: Marcelo Tosatti mtosa...@redhat.com hrtimer-base can be temporarily NULL due to racing hrtimer_start. See switch_hrtimer_base/lock_hrtimer_base. Use hrtimer_get_remaining which is robust against it. CC: sta...@kernel.org Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by:

Re: [Autotest] [PATCH] Fix a bug in function create in kvm_vm

2009-10-10 Thread Yolkfull Chow
On Mon, Oct 05, 2009 at 04:03:22PM -0300, Lucas Meneghel Rodrigues wrote: Hi Yolkfull! I've checked your patch, but it turns out that the comma is valid syntax for the logging module. By any chance you actually had an error with it? Hi Lucas, I just checked, yes it's valid syntax for this

Re: [Autotest] [PATCH] Fix a bug in function create in kvm_vm

2009-10-10 Thread Yolkfull Chow
On Sat, Oct 10, 2009 at 04:24:45PM +0800, Yolkfull Chow wrote: On Mon, Oct 05, 2009 at 04:03:22PM -0300, Lucas Meneghel Rodrigues wrote: Hi Yolkfull! I've checked your patch, but it turns out that the comma is valid syntax for the logging module. By any chance you actually had an error with

Re: kvm guest: hrtimer: interrupt too slow

2009-10-10 Thread Michael Tokarev
Michael Tokarev wrote: Frederic Weisbecker wrote: [] Was there swapping going on? Not as far as I can see, and sar output agrees. But I can read this from you guest traces: I missed this one yesterday. Note it's GUEST traces indeed. Higher (read: non-zero) pgp{in,out} and faults values

Re: kvm guest: hrtimer: interrupt too slow

2009-10-10 Thread Frederic Weisbecker
On Sat, Oct 10, 2009 at 01:18:16PM +0400, Michael Tokarev wrote: Michael Tokarev wrote: Frederic Weisbecker wrote: [] Was there swapping going on? Not as far as I can see, and sar output agrees. But I can read this from you guest traces: I missed this one yesterday. Note it's GUEST

[PATCH] qemu-kvm: Fix configure to respect --kerneldir

2009-10-10 Thread Jan Kiszka
This simplifies working with new features without having to update the locally mirrored headers. It also reduces the diff to upstream. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- configure | 44 +++- 1 files changed, 27 insertions(+), 17

Re: Problem booting guest with Linux 2.6.3x

2009-10-10 Thread Daniel Bareiro
Hi, Michael. On Wednesday, 07 October 2009 15:12:26 +0400, Michael Tokarev wrote: root (hd0,1) Filesystem type is ext2fs, partition type 0x83 kernel /boot/vmlinuz-2.6.31.2-dgb root=/dev/hda2 ro quiet console=tty0 console =ttyS0,38400n8 [Linux-bzImage, setup=0x3600, size=0x203480]

Re: Problem booting guest with Linux 2.6.3x

2009-10-10 Thread Michael Tokarev
Daniel Bareiro wrote: [] But according to it seems, I could verify that the disks that are passed with -hdX in KVM-88 are mapped in 2.6.31.2 guests like SATA/SCSI devices. With Linux stock 2.6.26 these are mapped like IDE disks. Can it be due to some change in the kernel code related with KVM?

Re: kvm or qemu-kvm?

2009-10-10 Thread René Pfeiffer
On Oct 01, 2009 at 1902 +0200, Avi Kivity appeared and said: On 10/01/2009 06:51 PM, Ross Boylan wrote: My distro (Debian) is only at 85, even in unstable. Since it wasn't current, and also the dependencies will have wide effects on my system (which I'm trying to keep at the stable release

Re: kvm or qemu-kvm?

2009-10-10 Thread Michael Tokarev
René Pfeiffer wrote: On Oct 01, 2009 at 1902 +0200, Avi Kivity appeared and said: [] Right, stick with your kernel's kvm.ko, qemu-kvm-0.11.0 should make a good fit. Just to be sure: If I use Debian Lenny with a kernel from kernel.org, then I can use the qemu-kvm packages and be fine. Right?

[PATCH] tune hrtimer_interrupt hang logic

2009-10-10 Thread Marcelo Tosatti
The hrtimer_interrupt hang logic adjusts min_delta_ns based on the execution time of the hrtimer callbacks. This is error-prone for virtual machines, where a guest vcpu can be scheduled out during the execution of the callbacks (and the callbacks themselves can do operations that translate to

Re: kvm guest: hrtimer: interrupt too slow

2009-10-10 Thread Marcelo Tosatti
On Sat, Oct 10, 2009 at 02:34:22AM +0400, Michael Tokarev wrote: Frederic Weisbecker wrote: On Sat, Oct 10, 2009 at 01:22:16AM +0400, Michael Tokarev wrote: Marcelo Tosatti wrote: [snip] Would be useful to collect sar (sar -B -b -u) output every one second in both host/guest. You already

Re: kernel bug in kvm_intel

2009-10-10 Thread Avi Kivity
On 10/09/2009 10:04 PM, Andrew Theurer wrote: This is on latest master branch on kvm.git and qemu-kvm.git, running 12 Windows Server2008 VMs, and using oprofile. I ran again without oprofile and did not get the BUG. I am wondering if anyone else is seeing this. Thanks, -Andrew Oct 9

Re: [PATCH 02/27] Pass PVR in sregs

2009-10-10 Thread Alexander Graf
Am 09.10.2009 um 23:00 schrieb Hollis Blanchard holl...@us.ibm.com: On Tue, 2009-09-29 at 10:17 +0200, Alexander Graf wrote: Right now sregs is unused on PPC, so we can use it for initialization of the CPU. KVM on BookE always virtualizes the host CPU. On Book3s we go a step further and

Re: [PATCH 25/27] Fix trace.h

2009-10-10 Thread Benjamin Herrenschmidt
On Fri, 2009-10-09 at 14:42 -0700, Hollis Blanchard wrote: After much digging, I managed to actually enable CONFIG_TRACEPOINTS. However, I still don't get any build errors from this code. Maybe you could paste the full gcc output? Another option is to be a bit more ppc-ish and call it IAR

Re: [PATCH 16/27] Add desktop PowerPC specific emulation

2009-10-10 Thread Benjamin Herrenschmidt
On Fri, 2009-10-09 at 13:57 -0700, Hollis Blanchard wrote: +#ifdef CONFIG_PPC64 +#ifdef DEBUG_EMUL + printk(KERN_INFO mtDEC: %x\n, vcpu-arch.dec); +#endif + /* POWER4+ triggers a dec interrupt if the value is 0 */ + if (vcpu-arch.dec 0x8000) { +