Re: [Qemu-devel] [PATCH] eepro100: Add support for multiple individual addresses (multiple IA)

2010-10-04 Thread Stefan Weil
Am 03.10.2010 15:20, schrieb Michael S. Tsirkin: On Sun, Oct 03, 2010 at 01:47:45PM +0200, Stefan Weil wrote: It might be applied to the stable branches, too. Thanks, Stefan To me, this doesn't look like a stable branch material: this adds is a new feature, not a bugfix. Which guests benefit

Re: [Qemu-devel] [PATCH] eepro100: Add support for multiple individual addresses (multiple IA)

2010-10-04 Thread Michael S. Tsirkin
On Mon, Oct 04, 2010 at 02:57:31PM +0200, Stefan Weil wrote: Am 03.10.2010 15:20, schrieb Michael S. Tsirkin: On Sun, Oct 03, 2010 at 01:47:45PM +0200, Stefan Weil wrote: It might be applied to the stable branches, too. Thanks, Stefan To me, this doesn't look like a stable branch

Re: [Qemu-devel] resizing qcow2 images?

2010-10-04 Thread Tomasz Chmielewski
On 04.10.2010 10:24, Tomasz Chmielewski wrote: On 04.10.2010 08:49, Stefan Hajnoczi wrote: On Sun, Oct 3, 2010 at 5:08 PM, Tomasz Chmielewskiman...@wpkg.org wrote: Is it somehow possible to resize qcow2 images? You can grow qcow2 images with: qemu-img resizefilename +10G I don't see resize

[Qemu-devel] [PATCH] ide: set WCACHE supported in IDENTIFY data

2010-10-04 Thread Christoph Hellwig
ATA does not only have the WCACHE enabled bit in identify word 85, but also a WCACHE supported bit in word 82. While the Linux kernel is fine with the latter at least hdparm also needs the former before correctly displaying the cache settings. There's also a non-zero chance other operating

[Qemu-devel] Re: 64-bit Qemu and remote GDB to Kernel Error

2010-10-04 Thread Jan Kiszka
Am 04.10.2010 04:47, Matt Davis wrote: Hello, I am trying to debug a 32-bit linux kernel with gdb and qemu. My qemu runs the 64-bit kernel as: u...@host qemu -kernel vmlinuz -S -s (not using kvm). If I try with kvm the breakpoint does not even seem to get tripped. Which qemu version is

Re: [Qemu-devel] resizing qcow2 images?

2010-10-04 Thread Stefan Hajnoczi
On Sun, Oct 3, 2010 at 5:08 PM, Tomasz Chmielewski man...@wpkg.org wrote: Is it somehow possible to resize qcow2 images? You can grow qcow2 images with: qemu-img resize filename +10G Stefan

[Qemu-devel] [PATCH] add cacheflush in tcg_gen_code_search_pc.

2010-10-04 Thread qiaochong
Without cacheflush,qemu sometimes fail with segment fault on loongson cpu,which often happens when linux begin to run init.Because user porgram tlb refill,tlbl,tlbs,tlbm exception will often happen, cpu_restore_state,tcg_gen_code-pc will be called frequently. Signed-off-by: qiaochong

Re: [Qemu-devel] profiling software execution using qemu

2010-10-04 Thread Lluís
Bahadir Balban writes: I would like to trace instruction execution using QEMU. Is this possible? Ideally I would like to dump all executed instruction locations to a file, then match this information to function names based on the debug symbols in my ELF file, then finally analyze the parts

Re: [Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-04 Thread Anthony Liguori
On 10/04/2010 03:04 AM, Avi Kivity wrote: On 10/04/2010 03:18 AM, Anthony Liguori wrote: On 10/03/2010 09:28 AM, Michael S. Tsirkin wrote: This is using eventfd as well. Sorry, I meant irqfd. I've tried using irqfd in userspace. It hurts performance quite a bit compared to doing an

Re: [Qemu-devel] qemu_cond_signal() taking a long time to complete.

2010-10-04 Thread Stefan Hajnoczi
On Mon, Oct 4, 2010 at 11:40 AM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: I suspect this is the reason why I am seeing performance hit with the threading model, because this time is much more than the time needed to complete the entire v9fs_read call in the non threading model case. If

Re: [Qemu-devel] resizing qcow2 images?

2010-10-04 Thread Stefan Hajnoczi
On Mon, Oct 4, 2010 at 9:50 AM, Tomasz Chmielewski man...@wpkg.org wrote: On 04.10.2010 10:24, Tomasz Chmielewski wrote: On 04.10.2010 08:49, Stefan Hajnoczi wrote: On Sun, Oct 3, 2010 at 5:08 PM, Tomasz Chmielewskiman...@wpkg.org wrote: Is it somehow possible to resize qcow2 images? You

Re: [Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-04 Thread Avi Kivity
On 10/04/2010 03:18 AM, Anthony Liguori wrote: On 10/03/2010 09:28 AM, Michael S. Tsirkin wrote: This is using eventfd as well. Sorry, I meant irqfd. I've tried using irqfd in userspace. It hurts performance quite a bit compared to doing an ioctl so I would suspect this too. A

[Qemu-devel] qemu_cond_signal() taking a long time to complete.

2010-10-04 Thread Arun R Bharadwaj
Hi, I am working on introducing threading model into Qemu. This introduces the Threadlets infrastructure which allows subsystems to offload possibly blocking work to a queue to be processed by a pool of threads asynchrnonously. Threadlets are useful when there are operations that can be

Re: [Qemu-devel] resizing qcow2 images?

2010-10-04 Thread Tomasz Chmielewski
On 04.10.2010 08:49, Stefan Hajnoczi wrote: On Sun, Oct 3, 2010 at 5:08 PM, Tomasz Chmielewskiman...@wpkg.org wrote: Is it somehow possible to resize qcow2 images? You can grow qcow2 images with: qemu-img resizefilename +10G I don't see resize option in my qemu-img (0.12.5) help / manual.

[Qemu-devel] Re: [PATCHv3] virtio-net: unify vhost-net start/stop

2010-10-04 Thread Alex Williamson
On Sun, 2010-10-03 at 22:18 +0200, Michael S. Tsirkin wrote: Move all of vhost-net start/stop logic to a single routine, and call it from everywhere. Additionally, start/stop vhost-net on link up/down: we should not transmit anything if user asked us to put the link down. Signed-off-by:

[Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-04 Thread Stefan Hajnoczi
On Sun, Oct 3, 2010 at 12:01 PM, Avi Kivity a...@redhat.com wrote:  On 09/30/2010 04:01 PM, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify. On

Re: [Qemu-devel] qemu_cond_signal() taking a long time to complete.

2010-10-04 Thread Anthony Liguori
On 10/04/2010 05:40 AM, Arun R Bharadwaj wrote: Hi, I am working on introducing threading model into Qemu. This introduces the Threadlets infrastructure which allows subsystems to offload possibly blocking work to a queue to be processed by a pool of threads asynchrnonously. Threadlets are

Re: [Qemu-devel] qemu_cond_signal() taking a long time to complete.

2010-10-04 Thread Stefan Hajnoczi
On Mon, Oct 4, 2010 at 4:37 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 10/04/2010 05:40 AM, Arun R Bharadwaj wrote: Hi, I am working on introducing threading model into Qemu. This introduces the Threadlets infrastructure which allows subsystems to offload possibly blocking work to

Re: [Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-04 Thread Michael S. Tsirkin
On Mon, Oct 04, 2010 at 09:01:14AM -0500, Anthony Liguori wrote: On 10/04/2010 03:04 AM, Avi Kivity wrote: On 10/04/2010 03:18 AM, Anthony Liguori wrote: On 10/03/2010 09:28 AM, Michael S. Tsirkin wrote: This is using eventfd as well. Sorry, I meant irqfd. I've tried using irqfd in

[Qemu-devel] [PATCHv3] net: delay freeing peer host device

2010-10-04 Thread Michael S. Tsirkin
With -netdev, virtio devices present offload features to guest, depending on the backend used. Thus, removing host netdev peer while guest is active leads to guest-visible inconsistency and/or crashes. As a solution, while guest (NIC) peer device exists, we prevent the host peer pointer from

Re: [Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-04 Thread Anthony Liguori
On 10/04/2010 11:12 AM, Michael S. Tsirkin wrote: On Mon, Oct 04, 2010 at 09:01:14AM -0500, Anthony Liguori wrote: On 10/04/2010 03:04 AM, Avi Kivity wrote: On 10/04/2010 03:18 AM, Anthony Liguori wrote: On 10/03/2010 09:28 AM, Michael S. Tsirkin wrote:

Re: [Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify

2010-10-04 Thread Michael S. Tsirkin
On Mon, Oct 04, 2010 at 11:20:19AM -0500, Anthony Liguori wrote: On 10/04/2010 11:12 AM, Michael S. Tsirkin wrote: On Mon, Oct 04, 2010 at 09:01:14AM -0500, Anthony Liguori wrote: On 10/04/2010 03:04 AM, Avi Kivity wrote: On 10/04/2010 03:18 AM, Anthony Liguori wrote: On 10/03/2010 09:28 AM,

[Qemu-devel] [patch uq/master 0/8] port qemu-kvm's MCE support

2010-10-04 Thread Marcelo Tosatti

[Qemu-devel] [patch uq/master 4/8] kvm: x86: add mce support

2010-10-04 Thread Marcelo Tosatti
Port qemu-kvm's MCE support commit c68b2374c9048812f488e00ffb95db66c0bc07a7 Author: Huang Ying ying.hu...@intel.com Date: Mon Jul 20 10:00:53 2009 +0800 Add MCE simulation support to qemu/kvm KVM ioctls are used to initialize MCE simulation and inject MCE. The real MCE

[Qemu-devel] [patch uq/master 8/8] Add savevm/loadvm support for MCE

2010-10-04 Thread Marcelo Tosatti
Port qemu-kvm's commit 1bab5d11545d8de5facf46c28630085a2f9651ae Author: Huang Ying ying.hu...@intel.com Date: Wed Mar 3 16:52:46 2010 +0800 Add savevm/loadvm support for MCE MCE registers are saved/load into/from CPUState in kvm_arch_save/load_regs. To simulate the MCG_STATUS

[Qemu-devel] [patch uq/master 3/8] Expose thread_id in info cpus

2010-10-04 Thread Marcelo Tosatti
commit ce6325ff1af34dbaee91c8d28e792277e43f1227 Author: Glauber Costa gco...@redhat.com Date: Wed Mar 5 17:01:10 2008 -0300 Augment info cpus This patch exposes the thread id associated with each cpu through the already well known 'info cpus' interface. Signed-off-by: Marcelo

[Qemu-devel] [patch uq/master 5/8] Export qemu_ram_addr_from_host

2010-10-04 Thread Marcelo Tosatti
To be used by next patches. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: qemu/cpu-common.h === --- qemu.orig/cpu-common.h +++ qemu/cpu-common.h @@ -47,6 +47,7 @@ void qemu_ram_free(ram_addr_t addr); /* This should only

[Qemu-devel] [patch uq/master 2/8] iothread: use signalfd

2010-10-04 Thread Marcelo Tosatti
Block SIGALRM, SIGIO and consume them via signalfd. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: qemu/cpus.c === --- qemu.orig/cpus.c +++ qemu/cpus.c @@ -33,6 +33,7 @@ #include exec-all.h #include cpus.h +#include

[Qemu-devel] KVM call agenda for Oct 5

2010-10-04 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

[Qemu-devel] [patch uq/master 1/8] signalfd compatibility

2010-10-04 Thread Marcelo Tosatti
Port qemu-kvm's signalfd compat code. commit 5a7fdd0abd7cd24dac205317a4195446ab8748b5 Author: Anthony Liguori aligu...@us.ibm.com Date: Wed May 7 11:55:47 2008 -0500 Use signalfd() in io-thread This patch reworks the IO thread to use signalfd() instead of sigtimedwait() This

[Qemu-devel] [patch uq/master 7/8] MCE: Relay UCR MCE to guest

2010-10-04 Thread Marcelo Tosatti
Port qemu-kvm's commit 4b62fff1101a7ad77553147717a8bd3bf79df7ef Author: Huang Ying ying.hu...@intel.com Date: Mon Sep 21 10:43:25 2009 +0800 MCE: Relay UCR MCE to guest UCR (uncorrected recovery) MCE is supported in recent Intel CPUs, where some hardware error such as some

[Qemu-devel] [RFC] Can we remove special handling of standard headers (introduced for dyngen / OSX?)

2010-10-04 Thread Stefan Weil
Am 25.09.2010 09:46, schrieb Blue Swirl: On Thu, Sep 23, 2010 at 8:44 PM, Stefan Weil w...@mail.berlios.de wrote: Am 23.09.2010 22:33, schrieb Blue Swirl: On Thu, Sep 23, 2010 at 7:28 PM, Stefan Weil w...@mail.berlios.de wrote: Replace the remaining format attribute printf by macro

[Qemu-devel] [patch uq/master 6/8] Add RAM - physical addr mapping in MCE simulation

2010-10-04 Thread Marcelo Tosatti
From: Huang Ying ying.hu...@intel.com In QEMU-KVM, physical address != RAM address. While MCE simulation needs physical address instead of RAM address. So kvm_physical_memory_addr_from_ram() is implemented to do the conversion, and it is invoked before being filled in the IA32_MCi_ADDR MSR.

[Qemu-devel] [PATCH] Don't call cpu_synchronize_state() from machine init.

2010-10-04 Thread Scott Wood
This will deadlock when the I/O thread is used, since the CPU thread is blocked waiting for qemu_system_ready. The synchronization is unnecessary since this is before cpu_synchronize_all_post_init(). Signed-off-by: Scott Wood scottw...@freescale.com --- hw/ppc440_bamboo.c |2 --

[Qemu-devel] [PATCH] configure: include stddef.h for NULL

2010-10-04 Thread Scott Wood
This fixes an observed failure to detect madvise() on Linux. To avoid similar issues, all other tests that use NULL but don't already have stddef.h are also fixed. Signed-off-by: Scott Wood scottw...@freescale.com --- configure |9 + 1 files changed, 9 insertions(+), 0 deletions(-)

[Qemu-devel] Re: 64-bit Qemu and remote GDB to Kernel Error

2010-10-04 Thread Matt Davis
On Mon, Oct 4, 2010 at 8:00 PM, Jan Kiszka jan.kis...@siemens.com wrote: Am 04.10.2010 04:47, Matt Davis wrote: Hello, I am trying to debug a 32-bit linux kernel with gdb and qemu.  My qemu runs the 64-bit kernel as: u...@host qemu -kernel vmlinuz -S -s  (not using kvm).  If I try with kvm

[Qemu-devel] [PATCH] PCI: Bus number from the bridge, not the device

2010-10-04 Thread Alex Williamson
pcibus_dev_print() was erroneously retrieving the device bus number from the secondary bus number offset of the device instead of the bridge above the device. This ends of landing in the 2nd byte of the 3rd BAR for devices, which thankfully is usually zero. pcibus_get_dev_path() copied this

[Qemu-devel] [Bug 654913] [NEW] Windows XP uses 200% CPU when given 2 VCPUs

2010-10-04 Thread .:. brainsik
Public bug reported: When using libvirt to give a domain 2 CPUs (domain type='kvm'vcpu2/vcpu/domain), the Windows XP kvm process will use 200% CPU when Windows is idle. Switching the number of CPUs back to 1, the kvm process gives normal idle percentages. Using libvirt 0.8.3-1ubuntu9, tried with

[Qemu-devel] [PATCH] acpi: Fix an infinite loop in acpi_table_add

2010-10-04 Thread Vincent Minet
Commit d729bb9a7700e364b1c5f9893d61f07a9e002bce has a typo, causing an infinite loop in acpi_table_add. Signed-off-by: Vincent Minet vinc...@vincent-minet.net --- hw/acpi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index 069e05f..8071e7b

Re: [Qemu-devel] qemu_cond_signal() taking a long time to complete.

2010-10-04 Thread Venkateswararao Jujjuri (JV)
On 10/4/2010 8:49 AM, Stefan Hajnoczi wrote: On Mon, Oct 4, 2010 at 4:37 PM, Anthony Liguorianth...@codemonkey.ws wrote: On 10/04/2010 05:40 AM, Arun R Bharadwaj wrote: Hi, I am working on introducing threading model into Qemu. This introduces the Threadlets infrastructure which allows

Re: [Qemu-devel] qemu_cond_signal() taking a long time to complete.

2010-10-04 Thread Venkateswararao Jujjuri (JV)
On 10/4/2010 3:40 AM, Arun R Bharadwaj wrote: Hi, I am working on introducing threading model into Qemu. This introduces the Threadlets infrastructure which allows subsystems to offload possibly blocking work to a queue to be processed by a pool of threads asynchrnonously. Threadlets are useful

Re: [Qemu-devel] snapshots

2010-10-04 Thread Mulyadi Santosa
Hi... On Mon, Oct 4, 2010 at 11:56, chandra shekar chandrashekar...@gmail.com wrote: i have installed the patch http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg01662.html and do i need to compile qemu again and how to use this patch that is what options and command i may use in