[PATCH] KVM: Drop KVM_REQ_PENDING_TIMER

2010-03-19 Thread Xiao Wang
The pending timer is not detected through KVM_REQ_PENDING_TIMER now. Signed-off-by: Xiao Wang --- arch/x86/kvm/timer.c |2 -- arch/x86/kvm/x86.c |1 - include/linux/kvm_host.h | 11 +-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/timer.

[ kvm-Bugs-2972734 ] VMs fail to boot with -no-kvm and boot=on

2010-03-19 Thread SourceForge.net
Bugs item #2972734, was opened at 2010-03-18 10:57 Message generated for change (Comment added) made by joshwilsdon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2972734&group_id=180599 Please note that this message will contain a full copy of the comme

Unable to create more than 1 guest virtio-net device using vhost-net backend

2010-03-19 Thread Sridhar Samudrala
When creating a guest with 2 virtio-net interfaces, i am running into a issue causing the 2nd i/f falling back to userpace virtio even when vhost is enabled. After some debugging, it turned out that KVM_IOEVENTFD ioctl() call in qemu is failing with ENOSPC. This is because of the NR_IOBUS_DEVS(6)

Re: [PATCH] Enhance perf to collect KVM guest os statistics from host side

2010-03-19 Thread oerg Roedel
On Fri, Mar 19, 2010 at 09:21:22AM +0100, Ingo Molnar wrote: > Unfortunately, in a previous thread the Qemu maintainer has indicated that he > will essentially NAK any attempt to enhance Qemu to provide an easily > discoverable, self-contained, transparent guest mount on the host side. > > No te

Completing big real mode emulation

2010-03-19 Thread Mohammed Gamal
Hello all, As some of you might know, I've worked on supporting big real mode emulation on VMX back in GSoC 2008. Looking at the Qemu GSoC ideas list for this year, I found it among the possible ideas for a GSoC project. I'd be interested in driving this feature towards completion, and I have a few

Re: [PATCH 2/3] kvm: svm: reset cr0 properly on vcpu reset

2010-03-19 Thread Alexander Graf
Eduardo Habkost wrote: > On Wed, Mar 17, 2010 at 10:48:23PM +0100, Alexander Graf wrote: > >> On 17.03.2010, at 22:42, Eduardo Habkost wrote: >> >> >>> On Wed, Mar 17, 2010 at 07:17:32PM +0100, Alexander Graf wrote: >>> Eduardo Habkost wrote: > svm_vcpu_reset()

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Andrea Arcangeli
Hi there, not really trying to get into the CC list of this discussion ;) but for what is worth I'd like to share my opinion on the matter. On Thu, Mar 18, 2010 at 09:44:18AM +0100, Jes Sorensen wrote: > What made KVM so successful was that the core kernel of the hypervisor > was designed the rig

Re: [PATCH 2/3] kvm: svm: reset cr0 properly on vcpu reset

2010-03-19 Thread Eduardo Habkost
On Wed, Mar 17, 2010 at 10:48:23PM +0100, Alexander Graf wrote: > > On 17.03.2010, at 22:42, Eduardo Habkost wrote: > > > On Wed, Mar 17, 2010 at 07:17:32PM +0100, Alexander Graf wrote: > >> Eduardo Habkost wrote: > >>> svm_vcpu_reset() was not properly resetting the contents of the > >>> guest-

Re: [LKML] Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Konrad Rzeszutek Wilk
On Fri, Mar 19, 2010 at 10:52:08AM +0100, Olivier Galibert wrote: > On Fri, Mar 19, 2010 at 06:19:04PM +0900, Paul Mundt wrote: > > Implementing a virtualized DRM/KMS driver would at least get you the > > framebuffer interface more or less for free, while allowing you to deal > > with the userspace

[KVM-AUTOTEST PATCH] KVM test: kvm_config: remove -f command line option

2010-03-19 Thread Michael Goldish
This patch changes the command line invokation of kvm_config.py from this: ./kvm_config.py --verbose -f to this: ./kvm_config.py --verbose and also makes the dict printing code slightly shorter. Signed-off-by: Michael Goldish --- client/tests/kvm/kvm_config.py | 16 +--- 1 fi

[KVM-AUTOTEST PATCH] KVM test: support TAP networking mode when executing tests in parallel

2010-03-19 Thread Michael Goldish
- Add kvm_utils.get_sub_pool() which splits a MAC-IP pool in several pieces. - Use get_sub_pool() in kvm_scheduler immediately before launching a test. Signed-off-by: Michael Goldish --- client/tests/kvm/kvm_scheduler.py |1 + client/tests/kvm/kvm_utils.py | 55

Re: tainted Linux kernel in default SMP QEMU/KVM guests

2010-03-19 Thread Anthony Liguori
On 03/19/2010 07:58 AM, Paolo Bonzini wrote: 1) Change the default CPUID bits from 6/2/3 to 6/6/1, this passes the Linux kernel check. But I am not sure if that would introduce regressions, since some OSes apply quirks if they detect certain models (like we had with the sysenter issue in the pa

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Anthony Liguori
On 03/19/2010 03:53 AM, Ingo Molnar wrote: * Avi Kivity wrote: There were two negative reactions immediately, both showed a fundamental server versus desktop bias: - you did not accept that the most important usecase is when there is a single guest running. Well, it isn't.

Re: tainted Linux kernel in default SMP QEMU/KVM guests

2010-03-19 Thread Paolo Bonzini
1) Change the default CPUID bits from 6/2/3 to 6/6/1, this passes the Linux kernel check. But I am not sure if that would introduce regressions, since some OSes apply quirks if they detect certain models (like we had with the sysenter issue in the past) 2) Only change the CPUID bits to 6/6/1 if

tainted Linux kernel in default SMP QEMU/KVM guests

2010-03-19 Thread Andre Przywara
Hi, since the default CPU model for QEMU (qemu64) is an AMD K7, the Linux kernel complains and taints the kernel when it detects multiple processors. The reason for this is a check for SMP safe CPUs in arch/x86/kernel/cpu/amd.c:amd_k7_smp_check(). In recent kernels (since about 2.6.29) this i

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Olivier Galibert
On Fri, Mar 19, 2010 at 06:19:04PM +0900, Paul Mundt wrote: > Implementing a virtualized DRM/KMS driver would at least get you the > framebuffer interface more or less for free, while allowing you to deal > with the userspace side of things incrementally (ie, running a dummy xorg > on top of the vi

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Paul Mundt
On Thu, Mar 18, 2010 at 11:11:43AM -0500, Anthony Liguori wrote: > On 03/18/2010 10:17 AM, Ingo Molnar wrote: > >* Anthony Liguori wrote: > >>On 03/18/2010 08:00 AM, Ingo Molnar wrote: > [...] kvm in fact knows nothing about vga, to take your last example. > [...] > > >>>Loo

Re: __ratelimit: 172527 callbacks suppressed

2010-03-19 Thread Sebastian Hetze
On Fri, Mar 19, 2010 at 10:37:00AM +0200, Avi Kivity wrote: > On 03/19/2010 09:30 AM, Sebastian Hetze wrote: >> Hi *, >> >> in the dmesg/kern.log of my ubuntu 2.6.31-16-generic-pae guest running >> on an 2.6.31-14-server host with 0.12.2-0ubuntu6 qemu-kvm I find >> ratelimit messages with various n

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Ingo Molnar
* Avi Kivity wrote: > > There were two negative reactions immediately, both showed a fundamental > > server versus desktop bias: > > > > - you did not accept that the most important usecase is when there is a > >single guest running. > > Well, it isn't. Erm, my usability points are _doub

Re: KVM Page Fault Question

2010-03-19 Thread Avi Kivity
On 03/19/2010 01:50 AM, Marek Olszewski wrote: When using VMX without EPT, is it ever possible for a guest to receive a page fault without it first appearing (and being reinjected) in KVM? Yes. On Intel hosts only, and controlled by bypass_guest_pf. I'm seeing some strange behavior where acc

Re: __ratelimit: 172527 callbacks suppressed

2010-03-19 Thread Avi Kivity
On 03/19/2010 09:30 AM, Sebastian Hetze wrote: Hi *, in the dmesg/kern.log of my ubuntu 2.6.31-16-generic-pae guest running on an 2.6.31-14-server host with 0.12.2-0ubuntu6 qemu-kvm I find ratelimit messages with various numbers. Any idea, what might cause these messages to appear? Any way to f

Re: [PATCH] Enhance perf to collect KVM guest os statistics from host side

2010-03-19 Thread Ingo Molnar
Nice progress! This bit: > 1) perf kvm top > [r...@lkp-ne01 norm]# perf kvm --host --guest > --guestkallsyms=/home/ymzhang/guest/kallsyms > --guestmodules=/home/ymzhang/guest/modules top Will be really be painful to developers - to enter that long line while we have these things called 'compu

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Avi Kivity
On 03/18/2010 07:28 PM, Ingo Molnar wrote: * Avi Kivity wrote: On 03/18/2010 07:02 PM, Ingo Molnar wrote: I find the 'KVM mostly cares about the server, not about the desktop' attitude expressed in this thread troubling. It's not kvm, just it's developers (and their employe

__ratelimit: 172527 callbacks suppressed

2010-03-19 Thread Sebastian Hetze
Hi *, in the dmesg/kern.log of my ubuntu 2.6.31-16-generic-pae guest running on an 2.6.31-14-server host with 0.12.2-0ubuntu6 qemu-kvm I find ratelimit messages with various numbers. Any idea, what might cause these messages to appear? Any way to find out? Best regards, Sebastian -- Sebastia

Re: [PATCH][RF C/T/D] Unmapped page cache control - via boot parameter

2010-03-19 Thread Dave Hansen
On Tue, 2010-03-16 at 11:05 +0200, Avi Kivity wrote: > > Not really. In many cloud environments, there's a set of common > > images that are instantiated on each node. Usually this is because > > you're running a horizontally scalable application or because you're > > supporting an ephemeral s

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Avi Kivity
On 03/19/2010 12:16 AM, Ingo Molnar wrote: Yes its a double standard Glibc has a higher standard than Fedora/RHEL. Just like the Ubuntu kernel ships various ugly unfit for upstream kernel drivers. There's a world of a difference between a fugly driver and a glibc patch. Yes, fug

Re: [RFC] Unify KVM kernel-space and user-space code into a single project

2010-03-19 Thread Avi Kivity
On 03/19/2010 12:44 AM, Ingo Molnar wrote: Too bad - there was heavy initial opposition to the arch/x86 unification as well [and heavy opposition to tools/perf/ as well], still both worked out extremely well :-) Did you forget that arch/x86 was a merging of a code fork that happened sever