Re: [PATCH 1/3] kvm tools: Make virtio-net kvm__irq_line thread safe

2011-04-30 Thread Pekka Enberg
On Fri, 2011-04-29 at 21:59 +0200, Ingo Molnar wrote: Also, do perhaps TX activity assume a wakeup for RX processing? Right now the TX and RX threads are independent. So it would be nice to document how the virtio protocol works. So in http://ozlabs.org/~rusty/virtio-spec/virtio-spec.pdf

State of stable 2.6.38 queue

2011-04-30 Thread Jan Kiszka
Hi, as I was about to update kvm-kmod-2.6.38, I checked for KVM changes since 2.6.38-rc7 which kvm-kmod is currently based on - none. That surprised as the update queue is non-empty. Was something lost on the way to stable, or are they on hold intentionally? Jan signature.asc Description:

update from 0.12.5 to 0.14 goes headless

2011-04-30 Thread Jerry Geis
After updating when I start up no I am headless. How do I get headed back by default? my command is: qemu-system-x86_64 -net nic,model=rtl8139 -net user -hda $1 -no-acpi -m 2048 -usb $2 $3 $4 $5 $6 -vga std This is now stating qemu-kvm in headless mode. it tells me to use VNC 5901 to

Re: [PATCH 1/2] rcu: export rcu_note_context_switch() function

2011-04-30 Thread Paul E. McKenney
On Fri, Apr 29, 2011 at 09:02:39PM +0300, Gleb Natapov wrote: On Fri, Apr 29, 2011 at 01:39:04AM -0700, Paul E. McKenney wrote: On Fri, Apr 29, 2011 at 01:36:18AM -0700, Paul E. McKenney wrote: On Thu, Apr 28, 2011 at 12:52:02PM +0300, Gleb Natapov wrote: Hmmm This is

[PATCH 1/3] kvm tools: Lock job_mutex before signalling

2011-04-30 Thread Sasha Levin
Locking mutex before signalling to prevent unexpected scheduling. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools/kvm/threadpool.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/kvm/threadpool.c b/tools/kvm/threadpool.c index c584ec7..700c08f 100644

[PATCH 2/3] kvm tools: Introduce virtio-rng

2011-04-30 Thread Sasha Levin
Enable virtio-rng, a virtio random number generator. Guest kernel should be compiled with CONFIG_HW_RANDOM_VIRTIO. Once enabled, A RNG device will be located at /dev/hwrng. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools/kvm/Makefile |1 +

[PATCH 3/3] kvm tools: Add cmdline switch to enable virtio-rng

2011-04-30 Thread Sasha Levin
Add --virtio-rnd switch to enable virtio RNG in the guest. Once enabled, The RNG device will be located at /dev/hwrng. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools/kvm/kvm-run.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/tools/kvm/kvm-run.c

[PATCH] KVM: MMU: Use ptep_user for cmpxchg_gpte()

2011-04-30 Thread Takuya Yoshikawa
From: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp The address of the gpte was already calculated and stored in ptep_user before entering cmpxchg_gpte(). This patch makes cmpxchg_gpte() to use that to make it clear that we are using the same address during walk_addr_generic(). Signed-off-by:

Re: [Qemu-devel] [RFC PATCH 0/2] Multiqueue support for qemu(virtio-net)

2011-04-30 Thread Jason Wang
Anthony Liguori writes: On 04/20/2011 10:33 PM, Jason Wang wrote: Krishna Kumar2 writes: Thanks Jason! So I can use my virtio-net guest driver and test with this patch? Please provide the script you use to start MQ guest. Yes and thanks. Following is a

Re: [Qemu-devel] [RFC PATCH 1/2] net: Add multiqueue support

2011-04-30 Thread Jason Wang
Anthony Liguori writes: On 04/20/2011 03:33 AM, Jason Wang wrote: This patch adds the multiqueues support for emulated nics. Each VLANClientState pairs are now abstract as a queue instead of a nic, and multiple VLANClientState pointers were stored in the NICState and treated as

Trouble adding kvm clock trace to qemu-kvm

2011-04-30 Thread Chris Thompson
I'm trying to add a trace to qemu-kvm that will log the value of the vcpu's clock when a specific interrupt gets pushed. I'm working with qemu-kvm-0.14.0 on the 2.6.32-31 kernel. I've added the following to kvm_arch_try_push_interrupts in qemu-kvm-x86.c: if (irq == 41) { // Get the VCPU's

Re: [PATCH 1/2] rcu: export rcu_note_context_switch() function

2011-04-30 Thread Avi Kivity
On 04/30/2011 03:59 PM, Paul E. McKenney wrote: That will work, but does making rcu_note_context_switch() out of line actually increase kernel size? The function is called in two places currently, so by making it out of line we make two calling site smaller. Will measure it next week.

Re: [PATCH] KVM: MMU: Use ptep_user for cmpxchg_gpte()

2011-04-30 Thread Avi Kivity
On 04/30/2011 05:50 PM, Takuya Yoshikawa wrote: From: Takuya Yoshikawayoshikawa.tak...@oss.ntt.co.jp The address of the gpte was already calculated and stored in ptep_user before entering cmpxchg_gpte(). This patch makes cmpxchg_gpte() to use that to make it clear that we are using the same

Re: nmi is broken?

2011-04-30 Thread OGAWA Hirofumi
OGAWA Hirofumi hirof...@mail.parknet.co.jp writes: That is correct, kvm doesn't connect the master 8259 output to the IOAPIC. Instead the 8259 is connected to LINT0 (which is configured for ExtInt when the IOAPIC is disabled, or for NMI which the NMI watchdog is enabled). However, now I

[PATCH 0/1 v2] KVM: MMU: Use ptep_user for cmpxchg_gpte()

2011-04-30 Thread Takuya Yoshikawa
Changelog v1-v2: Added error handling for get_user_pages_fast() failure Tested with NPT off: paging64_walk_addr_generic() { get_cr3(); translate_gpa(); gfn_to_hva(); kvm_is_error_hva(); _cond_resched(); translate_gpa(); gfn_to_hva(); kvm_is_error_hva();

[PATCH 1/1 v2] KVM: MMU: Use ptep_user for cmpxchg_gpte()

2011-04-30 Thread Takuya Yoshikawa
From: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp The address of the gpte was already calculated and stored in ptep_user before entering cmpxchg_gpte(). This patch makes cmpxchg_gpte() to use that to make it clear that we are using the same address during walk_addr_generic(). Note that the