Re: [Qemu-devel] [PATCH 2/2] virtio-console: Notify resize to the guest.

2010-04-29 Thread Kusanagi Kouichi
On 2010-04-16 18:32:19 +0530, Amit Shah wrote: > On (Fri) Apr 16 2010 [20:42:47], Kusanagi Kouichi wrote: > > > > Signed-off-by: Kusanagi Kouichi > > --- > > hw/virtio-console.c|3 +++ > > hw/virtio-serial-bus.c |8 > > hw/virtio-serial.h |9 +++-- > > 3 files ch

[Qemu-devel] Re: [PATCH] Improve detection of invalid entries in the async schedule

2010-04-29 Thread Jan Kiszka
David Ahern wrote: > Signed-off-by: David Ahern Thanks, merged (with a tiny cleanup). Jan > --- > hw/usb-ehci.c | 41 + > 1 files changed, 29 insertions(+), 12 deletions(-) > > diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c > index 29baf74..e2f8e54 100644

[Qemu-devel] Re: [PATCH 1/2] block: Add wr_highest_sector blockstat

2010-04-29 Thread Kevin Wolf
Am 28.04.2010 19:31, schrieb Luiz Capitulino: > On Wed, 28 Apr 2010 17:56:20 +0200 > Kevin Wolf wrote: > >> This adds the wr_highest_sector blockstat which implements what is generally >> known as the high watermark. It is the highest offset of a sector written to >> the respective BlockDriverSta

[Qemu-devel] Re: [PATCH 1/2] block: Add wr_highest_sector blockstat

2010-04-29 Thread Kevin Wolf
Am 28.04.2010 18:01, schrieb Anthony Liguori: > On 04/28/2010 10:56 AM, Kevin Wolf wrote: >> This adds the wr_highest_sector blockstat which implements what is generally >> known as the high watermark. It is the highest offset of a sector written to >> the respective BlockDriverState since it has b

[Qemu-devel] [PATCH v2] block: Add wr_highest_sector blockstat

2010-04-29 Thread Kevin Wolf
This adds the wr_highest_sector blockstat which implements what is generally known as the high watermark. It is the highest offset of a sector written to the respective BlockDriverState since it has been opened. The query-blockstat QMP command is extended to add this value to the result, and also

Re: [Qemu-devel] [PATCH 2/2] virtio-console: Notify resize to the guest.

2010-04-29 Thread Amit Shah
On (Thu) Apr 29 2010 [16:12:38], Kusanagi Kouichi wrote: > On 2010-04-16 18:32:19 +0530, Amit Shah wrote: > > On (Fri) Apr 16 2010 [20:42:47], Kusanagi Kouichi wrote: > > > > > > Signed-off-by: Kusanagi Kouichi > > > --- > > > hw/virtio-console.c|3 +++ > > > hw/virtio-serial-bus.c |

[Qemu-devel] [PATCH -V6 00/21] virtio-9p: paravirtual file system passthrough

2010-04-29 Thread Aneesh Kumar K.V
Hi, This patch series adds VirtFS to QEMU. VirtFS is code named for a 9P filesystem server in QEMU enabling paravirtual filesystem pass-trhough between KVM host and guest. VirtFS is intended to offer an alternative to using NFS/CIFS to share host filesystems on guest and provides better perform

[Qemu-devel] [PATCH -V6 01/21] virtio-9p: Create a commandline option -fsdev

2010-04-29 Thread Aneesh Kumar K.V
From: Gautham R Shenoy This patch creates a new command line option named -fsdev to hold any file system specific information. The option will currently hold the following attributes: -fsdev fstype id=id,path=path_to_share where fstype: Type of the file system. id: Identifier used to refer t

[Qemu-devel] [PATCH -V6 03/21] virtio-9p: pdu processing support.

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Add helpers to process the PDUs. [ki...@linux.vnet.ibm.com: malloc to qemu_malloc coversion] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p-debug.h |7 ++ hw/virtio-9p.c | 243 ++

[Qemu-devel] [PATCH -V6 02/21] virtio-9p: Add a virtio 9p device to qemu

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori This patch doesn't implement the 9p protocol handling code. It adds a simple device which dump the protocol data. [jv...@linux.vnet.ibm.com: Little-Endian to host format conversion] [aneesh.ku...@linux.vnet.ibm.com: Multiple-mounts support] Signed-off-by: Anthony Liguori

[Qemu-devel] [PATCH -V6 04/21] virtio-9p: Add string manipulation support.

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Add helpers to do string manipulation. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 127 1 files changed, 127 insertions(+), 0 deletions(-) diff --git a/hw/virtio-9p.c b/hw/

[Qemu-devel] [PATCH -V6 05/21] virtio-9p: Add minimal set of FileOperations

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Add minimal set of FileOperations and the corresponding implementations for local fstype. These will be required for the FID management patches later on. [aneesh.ku...@linux.vnet.ibm.com: rpath fix ] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/f

[Qemu-devel] [PATCH -V6 06/21] virtio-9p: Add fid and qid management support.

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Helper APIs for FID and QID management. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 123 1 files changed, 123 insertions(+), 0 deletions(-) diff --git a/hw/virtio-9p.c b/hw

[Qemu-devel] [PATCH -V6 07/21] virtio-9p: Add stat and mode related helper functions.

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Add helpers to obtain file stat and mode details. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 186 1 files changed, 186 insertions(+), 0 deletions(-) diff --git a/hw/virtio

[Qemu-devel] [PATCH -V6 08/21] virtio-9p: Add sg helper functions

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Add scatter-gather helper functions. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 53 + 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio

[Qemu-devel] [PATCH -V6 09/21] virtio-9p: Add P9_TVERSION support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TVERSION support. [sripat...@in.ibm.com: Handle unknown 9P versions as per the standards] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH -V6 11/21] virtio-9p: Add P9_TSTAT support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TSTAT support. This get the mount to work on the guest. [ki...@linux.vnet.ibm.com: malloc to qemu_malloc conversion] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 55 +++

[Qemu-devel] [PATCH -V6 10/21] virtio-9p: Add P9_TATTACH support.

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TATTACH support. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 33 +++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index c1c7723..48b5e8

[Qemu-devel] [PATCH -V6 12/21] virtio-9p: Add P9_TWALK support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TWALK support. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 173 +++- 1 files changed, 171 insertions(+), 2 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c

[Qemu-devel] [PATCH -V6 13/21] virtio-9p: Add P9_TOPEN support.

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TOPEN support. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/file-op-9p.h |2 + hw/virtio-9p-local.c | 12 hw/virtio-9p.c | 153 -- 3 files changed, 162 insertions

[Qemu-devel] [PATCH -V6 15/21] virtio-9p: Add P9_TCLUNK support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TCLUNK support. This patch gets `ls -al` to work. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index

[Qemu-devel] [PATCH -V6 16/21] virtio-9p: Add P9_TWRITE support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TWRITE support. This gets write to file to work Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/file-op-9p.h |1 + hw/virtio-9p-local.c |7 +++ hw/virtio-9p.c | 112 +-

[Qemu-devel] [PATCH -V6 14/21] virtio-9p: Add P9_TREAD support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TREAD support. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/file-op-9p.h |6 ++ hw/virtio-9p-local.c | 37 hw/virtio-9p.c | 234 +- 3 files changed, 275 inser

[Qemu-devel] [PATCH -V6 20/21] virtio-9p: Add P9_TFLUSH support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Don't do anything special for flush. Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/virtio-9p.c | 35 ++- 1 files changed, 2 insertions(+), 33 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index ca8cf6

[Qemu-devel] [PATCH -V6 18/21] virtio-9p: Add P9_TWSTAT support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TWSTAT support. This gets file and directory creation to work. [jv...@linux.vnet.ibm.com: strdup to qemu_strdup conversion] [aneesh.ku...@linux.vnet.ibm.com: v9fs_fix_path] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/file-op-9p.h

[Qemu-devel] [PATCH -V6 19/21] virtio-9p: Add P9_TREMOVE support.

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TREMOVE support. This gets file deletion to work. [mo...@in.ibm.com: Fix truncate to use the relative path] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/file-op-9p.h |1 + hw/virtio-9p-local.c |6 ++ hw/virtio-9p.c

[Qemu-devel] [PATCH -V6 17/21] virtio-9p: Add P9_TCREATE support

2010-04-29 Thread Aneesh Kumar K.V
From: Anthony Liguori Implement P9_TCREATE support. [jv...@linux.vnet.ibm.com: strdup to qemu_strdup conversion] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V --- hw/file-op-9p.h |8 ++ hw/virtio-9p-local.c | 87 + hw/virtio-9p.c | 264 ++

[Qemu-devel] [PATCH -V6 21/21] virtio-9p: Create a syntactic shortcut for the file-system pass-thru

2010-04-29 Thread Aneesh Kumar K.V
From: Gautham R Shenoy Currently the commandline to create a virtual-filesystem pass-through between the guest and the host is as follows: #qemu -fsdev fstype,id=ID,path=path/to/share \ -device virtio-9p-pci,fsdev=ID,mount_tag=tag \ This patch provides a syntactic short-cut to achieve the

Re: [Qemu-devel] [PATCH 2/2] virtio-console: Notify resize to the guest.

2010-04-29 Thread Kusanagi Kouichi
On 2010-04-29 16:17:18 +0530, Amit Shah wrote: > On (Thu) Apr 29 2010 [16:12:38], Kusanagi Kouichi wrote: > > On 2010-04-16 18:32:19 +0530, Amit Shah wrote: > > > On (Fri) Apr 16 2010 [20:42:47], Kusanagi Kouichi wrote: > > > > > > > > Signed-off-by: Kusanagi Kouichi > > > > --- > > > > hw/virti

[Qemu-devel] [PATCH] qemu-iotests: Improve rebase test

2010-04-29 Thread Kevin Wolf
The old test didn't consider cases in which the COW files contains some unallocated clusters and after them allocated ones again. Signed-off-by: Kevin Wolf --- 024 | 24 ++-- 024.out | 63 +++ 2 files changed

Re: [Qemu-devel] [PATCH 2/2] virtio-console: Notify resize to the guest.

2010-04-29 Thread Amit Shah
On (Thu) Apr 29 2010 [21:36:30], Kusanagi Kouichi wrote: > > Please include me in the CC when you send it. Also please mention how > > you test this feature. > > > > Amit > > I put printf()s into involved functions. Then ran qemu on a terminal > emulator, and resized it. > That's how

[Qemu-devel] [PATCH] qemu-img rebase: Fix output image corruption

2010-04-29 Thread Kevin Wolf
qemu-img rebase must always give clusters in the COW file priority over those in the backing file. As it failed to use number of non-allocated clusters but assumed the maximum, it was possible that allocated clusters were taken from the backing file instead, leading to a corrupted output image. Si

[Qemu-devel] Re: [DEBUG] how to use GDB to debug qemu?

2010-04-29 Thread robert song
> Then I just run "info cpus" as following. > (QEMU) info cpus > > But now how can I get into the rountine of "info cpus" ? > Of course, set trace point to the function can do the work, but if I > don't know where the routine is, is there any way to step into the > rountine? > Regarding to the que

[Qemu-devel] Re: [DEBUG] how to use GDB to debug qemu?

2010-04-29 Thread robert song
> The tool can trace the functions called by qemu while recompling > qemu with exra options like -finstrument-functions. > It's just like strace and ltrace, but used to trace userland function. > Sorry, a mistake. The tool can trace the functions directly without any exra options. Regards, robe

[Qemu-devel] Re: [PATCH 1/2] block: Add wr_highest_sector blockstat

2010-04-29 Thread Daniel P. Berrange
On Wed, Apr 28, 2010 at 12:47:49PM -0500, Anthony Liguori wrote: > On 04/28/2010 12:04 PM, Luiz Capitulino wrote: > >On Wed, 28 Apr 2010 11:01:12 -0500 > >Anthony Liguori wrote: > > > > > >>On 04/28/2010 10:56 AM, Kevin Wolf wrote: > >> > >>>This adds the wr_highest_sector blockstat which

[Qemu-devel] Question on cpu_interrupt()

2010-04-29 Thread Jiaqing Du
Hi, I am trying to inject NMIs to a guest running in QEMU by using cpu_interrupt(). I notice that QEMU slows down significantly when NMIs are being injected. The injected NMIs per second is around 10. QEMU is pined to one core. A computation intensive application runs in the guest. When no NMIs a

[Qemu-devel] [PATCH] Fix tiny leak in qemu_opts_parse

2010-04-29 Thread Jan Kiszka
qemu_opts_create duplicates the id we pass in case it shall be stored in the opts. So we do not need to dup it in qemu_opts_parse, leaking a few bytes this way. Signed-off-by: Jan Kiszka --- qemu-option.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-option.c b

[Qemu-devel] [PATCH] block: Release allocated options after bdrv_open

2010-04-29 Thread Jan Kiszka
They aren't used afterwards nor supposed to be stored by a bdrv_create handler. Signed-off-by: Jan Kiszka --- block.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 7974215..f228d8d 100644 --- a/block.c +++ b/block.c @@ -411,6 +411,7 @@ int bdrv_

[Qemu-devel] [PATCH] lsi: Properly initialize controller state on reset

2010-04-29 Thread Jan Kiszka
The LSI controller was lacking any system reset handler. This is an attempt to fix it. Signed-off-by: Jan Kiszka --- hw/lsi53c895a.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 98b7f54..f328057 100644 --- a/hw/lsi53c

Re: [Qemu-devel] [PATCH 2/2] QMP: Add 'reason' member to the BLOCK_IO_ERROR event

2010-04-29 Thread Luiz Capitulino
On Wed, 28 Apr 2010 18:24:29 -0500 Anthony Liguori wrote: > On 04/28/2010 03:32 PM, Luiz Capitulino wrote: > > It's a parsable errno string representation, this is needed > > because some management tools want to base their action on > > the error cause. > > > > Signed-off-by: Luiz Capitulino > >

[Qemu-devel] Re: [PATCH 1/2] block: Add wr_highest_sector blockstat

2010-04-29 Thread Luiz Capitulino
On Thu, 29 Apr 2010 12:00:45 +0200 Kevin Wolf wrote: > >> /** > >> * bdrv_info_stats(): show block device statistics > >> * > >> @@ -1544,19 +1580,34 @@ void bdrv_stats_print(Monitor *mon, const QObject > >> *data) > >> * - "wr_bytes": bytes written > >> * - "rd_operations": rea

Re: [Qemu-devel] [PATCH] Fix the RARP protocol ID

2010-04-29 Thread Stefan Berger
qemu-devel-bounces+stefanb=us.ibm@nongnu.org wrote on 04/24/2010 08:54:07 AM: > The packet(s) sent out after migration are supposed to be RAPR type of > packets. If they are supposed to go anywhere useful, the RAPR ethernet > identifier needs to be fix. > > Also see http://www.iana.org/assi

[Qemu-devel] Armadillo applications on Qemu

2010-04-29 Thread Jun Koi
Hi, I found that many Armadillo-packed programs fail to work on Qemu (but is OK to run on KVM). Something must be wrong on the way we emulate some instructions. Anybody experiences this problem, and know where the issue is? Thanks, Jun

[Qemu-devel] Re: [PATCH] A bit optimization for tlb_set_page()

2010-04-29 Thread Jan Kiszka
Jun Koi wrote: > On Wed, Apr 28, 2010 at 3:53 PM, Jan Kiszka wrote: >> Jun Koi wrote: >>> On Wed, Apr 28, 2010 at 8:48 AM, Jun Koi wrote: On Wed, Apr 28, 2010 at 3:36 AM, Jan Kiszka wrote: > Jun Koi wrote: >> It is not necessary to continue searching for watchpoint when we >> al

[Qemu-devel] Qemu Debugging

2010-04-29 Thread Ehsan Ul haq
Hi, How can I debug the Qemu source code? Thanks,