Re: [kvm-devel] question: HPET for multiple VMs

2008-03-24 Thread Ryota OZAKI
2008/3/24, Dor Laor [EMAIL PROTECTED]: On Mon, 2008-03-24 at 00:32 +0900, Ryota OZAKI wrote: Hi Avi, If you use the dyntick clock option (the default, IIRC), and a newer host kernel, then the kernel provides high-resolution timers, very likely using HPET internally or some

[kvm-devel] KVM Test result, kernel 361be34.., userspace ac89d19..

2008-03-24 Thread Yunfeng Zhao
Hi All, This is today's KVM test result against kvm.git 361be34b5222fef558c4d0f5d956c1ea3d299f76 and kvm-userspace.git ac89d1907414cba6bfa19a962b7ff26d24ea87ca. There's no new issue today. Issue list 1. Booting four guests likely fails

Re: [kvm-devel] KVM: MMU: add KVM_ZAP_GFN ioctl

2008-03-24 Thread Andrea Arcangeli
On Fri, Mar 21, 2008 at 06:23:41PM -0300, Marcelo Tosatti wrote: If there are any active shadow mappings to a page there is a guarantee that there is a valid linux pte mapping pointing at it. So page_count == ^^ was 1 + nr_sptes. Yes. So the theoretical race you're talking

Re: [kvm-devel] [RFC/PATCH 01/15] preparation: provide hook to enable pgstes in user pagetable

2008-03-24 Thread Avi Kivity
Martin Schwidefsky wrote: On Sun, 2008-03-23 at 12:15 +0200, Avi Kivity wrote: Can you convert the page tables at a later time without doing a wholesale replacement of the mm? It should be a bit easier to keep people off the pagetables than keep their grubby mitts off the mm itself.

Re: [kvm-devel] [Qemu-devel] [PATCH] [RFC] Fix time drift of rtc clock + general support

2008-03-24 Thread Avi Kivity
Paul Brook wrote: On Sunday 23 March 2008, Dor Laor wrote: --- a/qemu/hw/irq.c +++ b/qemu/hw/irq.c @@ -30,6 +30,8 @@ struct IRQState { int n; }; +uint32_t qemu_irq_acked[NR_IRQ_WORDS]; This is absolute rubbish. The whole point of the IRQ framework is that it doesn't

Re: [kvm-devel] [Qemu-devel] [PATCH] [RFC] Fix time drift of rtc clock + general support

2008-03-24 Thread Avi Kivity
Avi Kivity wrote: Paul Brook wrote: a new timer will be fired to try inject it again soon (==0.1msec) If the guest is missing interrupts, the chances of a 0.1ms interval working are not great. Most likely It's either going trigger immediately, or be delayed significantly and

Re: [kvm-devel] Qemu-kvm is leaking my memory ???

2008-03-24 Thread Avi Kivity
Zdenek Kabelac wrote: 2008/3/23, Avi Kivity [EMAIL PROTECTED]: Avi Kivity wrote: I see the same issue too now, and am investigating. The attached patch should fix the issue. It is present in 2.6.25-rc6 only, and not in kvm.git, which is why few people noticed it. Hi

Re: [kvm-devel] [Qemu-devel] [PATCH] [RFC] Fix time drift of rtc clock + general support

2008-03-24 Thread Paul Brook
On Monday 24 March 2008, Avi Kivity wrote: Paul Brook wrote: On Sunday 23 March 2008, Dor Laor wrote: --- a/qemu/hw/irq.c +++ b/qemu/hw/irq.c @@ -30,6 +30,8 @@ struct IRQState { int n; }; +uint32_t qemu_irq_acked[NR_IRQ_WORDS]; This is absolute rubbish. The whole point

Re: [kvm-devel] [Qemu-devel] [PATCH] [RFC] Fix time drift of rtc clock + general support

2008-03-24 Thread Avi Kivity
Paul Brook wrote: On Monday 24 March 2008, Avi Kivity wrote: Paul Brook wrote: On Sunday 23 March 2008, Dor Laor wrote: --- a/qemu/hw/irq.c +++ b/qemu/hw/irq.c @@ -30,6 +30,8 @@ struct IRQState { int n; }; +uint32_t qemu_irq_acked[NR_IRQ_WORDS]; This is

Re: [kvm-devel] Qemu-kvm is leaking my memory ???

2008-03-24 Thread Avi Kivity
Avi Kivity wrote: Tested - and actually seeing no difference in my case of memory leak. Still it looks like over 30M per execution of qemu is lost. (tested with fresh 2.6.25-rc6 with your patch) Can you double check? 2.6.25-rc6 definitely leaks without, and here it doesn't with the

[kvm-devel] [PATCH] Add -Werror to libkvm compile

2008-03-24 Thread Jerone Young
# HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1206384205 18000 # Branch merge # Node ID e23a26d1da04a6dbb831da7d03922abf95de7b30 # Parent 972f62b6acae693c388d7b05d3a9ba7ef26ab4a0 Add -Werror to libkvm compile This patch adds -Werror to CFLAGS for compilation of libkvm. This

[kvm-devel] [PATCH][QEMU] Use a separate device for in-kernel PIT (v2)

2008-03-24 Thread Anthony Liguori
Part of the feedback we received from Fabrice about the KVM patches for QEMU is that we should create a separate device for the in-kernel APIC to avoid having lots of if (kvm_enabled()) within the APIC code that were difficult to understand why there were needed. This patch separates the

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] Add -Werror to libkvm compile

2008-03-24 Thread Segher Boessenkool
This patch adds -Werror to CFLAGS for compilation of libkvm. This should stop complaints about Warnings. Does libkvm build without warnings using GCC-4.3 (or even GCC-4.4) on all supported platforms? If not, please fix that first :-) Segher

Re: [kvm-devel] [PATCH] kvm.h: __user requires compiler.h

2008-03-24 Thread Christian Borntraeger
Am Freitag, 21. März 2008 schrieb Anthony Liguori: This patch breaks QEMU build when doing a 'make sync'. When you do a top-level ./configure, libkvm is built with kerneldir pointing to kvm-userspace/kernel/include. While linux/kvm.h is present there, there isn't a linux/compiler.h. I

Re: [kvm-devel] [PATCH] kvm.h: __user requires compiler.h

2008-03-24 Thread Avi Kivity
Christian Borntraeger wrote: Am Freitag, 21. März 2008 schrieb Anthony Liguori: This patch breaks QEMU build when doing a 'make sync'. When you do a top-level ./configure, libkvm is built with kerneldir pointing to kvm-userspace/kernel/include. While linux/kvm.h is present there, there

Re: [kvm-devel] [PATCH] Add -Werror to libkvm compile

2008-03-24 Thread Anthony Liguori
Jerone Young wrote: # HG changeset patch # User Jerone Young [EMAIL PROTECTED] # Date 1206384205 18000 # Branch merge # Node ID e23a26d1da04a6dbb831da7d03922abf95de7b30 # Parent 972f62b6acae693c388d7b05d3a9ba7ef26ab4a0 Add -Werror to libkvm compile This patch adds -Werror to CFLAGS for

Re: [kvm-devel] [PATCH][QEMU] Use a separate device for in-kernel PIT (v2)

2008-03-24 Thread Jerone Young
Fixes issues with pit for PPC. Acked-by: Jerone Young [EMAIL PROTECTED] On Mon, 2008-03-24 at 13:54 -0500, Anthony Liguori wrote: Part of the feedback we received from Fabrice about the KVM patches for QEMU is that we should create a separate device for the in-kernel APIC to avoid having lots

Re: [kvm-devel] Qemu-kvm is leaking my memory ???

2008-03-24 Thread Zdenek Kabelac
2008/3/24, Avi Kivity [EMAIL PROTECTED]: Avi Kivity wrote: Tested - and actually seeing no difference in my case of memory leak. Still it looks like over 30M per execution of qemu is lost. (tested with fresh 2.6.25-rc6 with your patch) Can you double check? 2.6.25-rc6

Re: [kvm-devel] [RFC/PATCH 01/15 v2] preparation: provide hook to enable pgstes in user pagetable

2008-03-24 Thread Andrew Morton
On Sat, 22 Mar 2008 18:02:37 +0100 Carsten Otte [EMAIL PROTECTED] wrote: From: Martin Schwidefsky [EMAIL PROTECTED] The SIE instruction on s390 uses the 2nd half of the page table page to virtualize the storage keys of a guest. This patch offers the s390_enable_sie function, which

Re: [kvm-devel] [RFC/PATCH 02/15 v2] preparation: host memory management changes for s390 kvm

2008-03-24 Thread Andrew Morton
On Sat, 22 Mar 2008 18:02:39 +0100 Carsten Otte [EMAIL PROTECTED] wrote: From: Heiko Carstens [EMAIL PROTECTED] From: Christian Borntraeger [EMAIL PROTECTED] This patch changes the s390 memory management defintions to use the pgste field for dirty and reference bit tracking of host and