Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-12 Thread Alexander Graf
On 12.07.2011, at 00:17, Jan Kiszka wrote: On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: From: Stefano Stabellini stefano.stabell...@eu.citrix.com Introduce qemu_ram_ptr_length that takes an address and a size as parameters rather than just an address. Refactor

Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-12 Thread Alexander Graf
On 12.07.2011, at 00:17, Jan Kiszka wrote: On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: From: Stefano Stabellini stefano.stabell...@eu.citrix.com Introduce qemu_ram_ptr_length that takes an address and a size as parameters rather than just an address. Refactor

Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-12 Thread Alexander Graf
On 12.07.2011, at 00:17, Jan Kiszka wrote: On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: From: Stefano Stabellini stefano.stabell...@eu.citrix.com Introduce qemu_ram_ptr_length that takes an address and a size as parameters rather than just an address. Refactor

Re: [Qemu-devel] [RFC v3 31/56] ac97: convert to memory API

2011-07-12 Thread Avi Kivity
On 07/12/2011 01:03 AM, malc wrote: Here's a new version: This one looks acceptable[1], original submission said: fixes BAR sizing as well. what was wrong with it? The nabm BAR, for example, was registered as 64 bytes of byte ioports, 128 bytes of word ioports, and 256 bytes of long

Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-12 Thread Paolo Bonzini
On 07/12/2011 09:15 AM, Jan Kiszka wrote: Am I the only one under the impression that too many patches are in limbo ATM? No. :) Paolo

Re: [Qemu-devel] [PATCH v2 4/5] exec.c: refactor cpu_physical_memory_map

2011-07-12 Thread Jan Kiszka
On 2011-07-12 08:28, Alexander Graf wrote: On 12.07.2011, at 00:17, Jan Kiszka wrote: On 2011-05-19 19:35, stefano.stabell...@eu.citrix.com wrote: From: Stefano Stabellini stefano.stabell...@eu.citrix.com Introduce qemu_ram_ptr_length that takes an address and a size as parameters rather

Re: [Qemu-devel] [PATCH 3/8] block: Support to keep track of I/O status

2011-07-12 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: This commit adds support to the BlockDriverState type to keep track of the last I/O status. That is, at every I/O operation we update a status field in the BlockDriverState instance. Valid statuses are: OK, FAILED and ENOSPC. ENOSPC is

Re: [Qemu-devel] [PATCH 1/8] Introduce the VMStatus type

2011-07-12 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: We need to track the VM status so that QMP can report it to clients. This commit adds the VMStatus type and related functions. The vm_status_set() function is used to keep track of the current VM status. The current statuses are: Nitpicking

[Qemu-devel] [PATCH v2] usb-hid: Fix 0/0 position for Windows in tablet mode

2011-07-12 Thread Jan Kiszka
On 2011-07-04 20:15, andrzej zaborowski wrote: On 26 June 2011 11:11, Jan Kiszka jan.kis...@web.de wrote: On 2011-06-25 15:10, Andreas Färber wrote: Am 25.06.2011 um 14:55 schrieb Jan Kiszka: On 2011-06-25 14:37, Andreas Färber wrote: Am 24.06.2011 um 16:27 schrieb Jan Kiszka: For unknown

Re: [Qemu-devel] [PATCH 7/8] QMP: query-status: Add 'io-status' key

2011-07-12 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: Contains the last I/O status for the given device. Currently this is only supported by ide, scsi and virtio block devices. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block.c | 15 ++- block.h |

Re: [Qemu-devel] live block copy/stream/snapshot discussion

2011-07-12 Thread Kevin Wolf
Am 11.07.2011 18:32, schrieb Marcelo Tosatti: On Mon, Jul 11, 2011 at 03:47:15PM +0100, Stefan Hajnoczi wrote: Kevin, Marcelo, I'd like to reach agreement on the QMP/HMP APIs for live block copy and image streaming. Libvirt has acked the image streaming APIs that Adam proposed and I think

Re: [Qemu-devel] [PATCH 3/8] block: Support to keep track of I/O status

2011-07-12 Thread Kevin Wolf
Am 12.07.2011 09:45, schrieb Markus Armbruster: Luiz Capitulino lcapitul...@redhat.com writes: This commit adds support to the BlockDriverState type to keep track of the last I/O status. That is, at every I/O operation we update a status field in the BlockDriverState instance. Valid statuses

[Qemu-devel] [PATCH] qxl: upon reset, if spice worker is stopped, the command rings can be not empty

2011-07-12 Thread Yonit Halperin
Spice worker does no longer process commands when it is stopped. Otherwise, it might crash during migration when attempting to process commands while the guest is not completely loaded. Cc: Alon Levy al...@redhat.com --- hw/qxl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-07-12 Thread Daniel Schell
I hope this can work so development for Dropbox on Drobo-FS can continue -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/739785 Title: qemu-i386 user mode on ARMv5 host fails (bash: fork:

Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu

2011-07-12 Thread David Gilbert
On 12 July 2011 07:04, Xiao Jiang jgq...@gmail.com wrote: It looks like I am not in luck, qemu still can't run successfully. I recompiled the qemu from linaro qemu tree and executed below instructions in order. 1. open window A, run below cmd. xjiang@xjiang-desktop:~/work/qemu$ sudo

Re: [Qemu-devel] [PULL 0/8] Block patches

2011-07-12 Thread Kevin Wolf
Am 06.07.2011 16:21, schrieb Kevin Wolf: The following changes since commit 9312805d33e8b106bae356d13a8071fb37d75554: pxa2xx_lcd: add proper rotation support (2011-07-04 22:12:21 +0200) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Federico

Re: [Qemu-devel] [PATCH 3/8] block: Support to keep track of I/O status

2011-07-12 Thread Markus Armbruster
Kevin Wolf kw...@redhat.com writes: Am 12.07.2011 09:45, schrieb Markus Armbruster: Luiz Capitulino lcapitul...@redhat.com writes: This commit adds support to the BlockDriverState type to keep track of the last I/O status. That is, at every I/O operation we update a status field in the

Re: [Qemu-devel] [PATCH v3] QMP: add snapshot_blkdev command

2011-07-12 Thread Jes Sorensen
On 07/11/11 22:35, Luiz Capitulino wrote: Sorry that is no go, you just broke the hmp implementation - you cannot change the hmp behavior like that. HMP uses positional arguments, so changing argument names makes no difference. And, apart from some exceptions, it's not an stable interface,

Re: [Qemu-devel] How to run realview-pbx-a9 image in qemu

2011-07-12 Thread Xiao Jiang
David Gilbert wrote: On 12 July 2011 07:04, Xiao Jiang jgq...@gmail.com wrote: It looks like I am not in luck, qemu still can't run successfully. I recompiled the qemu from linaro qemu tree and executed below instructions in order. 1. open window A, run below cmd.

[Qemu-devel] [PATCH v2 1/1] virtio-console: Prevent abort()s in case of host chardev close

2011-07-12 Thread Amit Shah
A host chardev could close just before the guest sends some data to be written. This will cause an -EPIPE error. This shouldn't be propagated to virtio-serial-bus. Ideally we should close the port once -EPIPE is received, but since the chardev interface doesn't return such meaningful values to

Re: [Qemu-devel] [PATCH 1/2] xen_mapcache: remove unused variable

2011-07-12 Thread Stefano Stabellini
On Mon, 11 Jul 2011, Juan Quintela wrote: Signed-off-by: Juan Quintela quint...@redhat.com Acked-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- xen-mapcache.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/xen-mapcache.c b/xen-mapcache.c index

Re: [Qemu-devel] [PATCH 0/3] MIPS64 user mode emulation in QEMU with Cavium specific instruction support

2011-07-12 Thread Khansa Butt
Hi We have developed Mips64 user mode emulation. In addition we implemented Cavium specific instruction along with octeon CPU definition. We need your support to make our contribution public ally available via making it open source. I tried to resolve the issues pointed out by Aurelien Jarno,

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-12 Thread Wesley W. Terpstra
2011/7/11 Riku Voipio riku.voi...@iki.fi: On Mon, Jul 11, 2011 at 11:10:50AM -0300, Lisandro Damián Nicanor Pérez Meyer wrote: Thanks Riku! This bug has already been solved by Wesley Terpstra: http://lists.nongnu.org/archive/html/qemu-devel/2011-07/msg00313.html Ok, I missed these patches.

[Qemu-devel] Best qemu ARM board supporting 1G+ ?

2011-07-12 Thread Wesley W. Terpstra
Greetings. I have a arm/versatileab running debian/sid, but this only has access to 256MB of main memory. For my current project I need a minimum of 1GB. I know that the realview-pbx-a9 can do this, but am unsure how well its supported. 1. Which qemu ARM boards support = 1GB of memory? 2. Which

[Qemu-devel] [PATCH v9 00/12] Adding VMDK monolithic flat support

2011-07-12 Thread Fam Zheng
Changes from v8: 09/12: remove duplicated sscanf 10/12: change option name to 'subformat', change commit message typo, factor common parts of creating, and other small improvements Fam Zheng (12): VMDK: introduce VmdkExtent VMDK: bugfix, align offset to cluster in

[Qemu-devel] [PATCH v9 06/12] VMDK: flush multiple extents

2011-07-12 Thread Fam Zheng
Flush all the file that referenced by the image. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 529ae90..f6d2986 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@

[Qemu-devel] [PATCH v9 08/12] VMDK: change get_cluster_offset return type

2011-07-12 Thread Fam Zheng
The return type of get_cluster_offset was an offset that use 0 to denote 'not allocated', this will be no longer true for flat extents, as we see flat extent file as a single huge cluster whose offset is 0 and length is the whole file length. So now we use int return value, 0 means success and

[Qemu-devel] [PATCH v9 01/12] VMDK: introduce VmdkExtent

2011-07-12 Thread Fam Zheng
Introduced VmdkExtent array into BDRVVmdkState, enable holding multiple image extents for multiple file image support. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 348 +- 1 files changed, 246 insertions(+), 102

[Qemu-devel] [PATCH v9 12/12] block: add bdrv_get_allocated_file_size() operation

2011-07-12 Thread Fam Zheng
qemu-img.c wants to count allocated file size of image. Previously it counts a single bs-file by 'stat' or Window API. As VMDK introduces multiple file support, the operation becomes format specific with platform specific meanwhile. The functions are moved to block/raw-{posix,win32}.c and

[Qemu-devel] [PATCH v9 02/12] VMDK: bugfix, align offset to cluster in get_whole_cluster

2011-07-12 Thread Fam Zheng
In get_whole_cluster, the offset is not aligned to cluster when reading from backing_hd. When the first write to child is not at the cluster boundary, wrong address data from parent is copied to child. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c |8 +--- 1 files changed,

Re: [Qemu-devel] Best qemu ARM board supporting 1G+ ?

2011-07-12 Thread Peter Maydell
On 12 July 2011 12:36, Wesley W. Terpstra wes...@terpstra.ca wrote: I have a arm/versatileab running debian/sid, but this only has access to 256MB of main memory. For my current project I need a minimum of 1GB. I know that the realview-pbx-a9 can do this, but am unsure how well its supported.

[Qemu-devel] [PATCH v9 09/12] VMDK: open/read/write for monolithicFlat image

2011-07-12 Thread Fam Zheng
Parse vmdk decriptor file and open mono flat image. Read/write the flat extent. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 171 +- 1 files changed, 158 insertions(+), 13 deletions(-) diff --git a/block/vmdk.c

[Qemu-devel] [PATCH v9 04/12] VMDK: separate vmdk_open by format version

2011-07-12 Thread Fam Zheng
Separate vmdk_open by subformats to: * vmdk_open_vmdk3 * vmdk_open_vmdk4 Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 178 - 1 files changed, 112 insertions(+), 66 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c

Re: [Qemu-devel] KVM call egenda for July 12

2011-07-12 Thread Anthony Liguori
On 07/11/2011 08:14 AM, Alexander Graf wrote: Am 11.07.2011 um 13:46 schrieb Juan Quintelaquint...@redhat.com: Hi Please send in any agenda items you are interested in covering. Device passthrough on non-PCI (take 2) Can we defer this to next week? I won't be able to attend today.

Re: [Qemu-devel] Best qemu ARM board supporting 1G+ ?

2011-07-12 Thread Peter Maydell
On 12 July 2011 13:08, Peter Maydell peter.mayd...@linaro.org wrote: On 12 July 2011 12:36, Wesley W. Terpstra wes...@terpstra.ca wrote: I have a arm/versatileab running debian/sid, but this only has access to 256MB of main memory. For my current project I need a minimum of 1GB. I know that

[Qemu-devel] [PATCH v9 07/12] VMDK: move 'static' cid_update flag to bs field

2011-07-12 Thread Fam Zheng
Cid_update is the flag for updating CID on first write after opening the image. This should be per image open rather than per program life cycle, so change it from static var of vmdk_write to a field in BDRVVmdkState. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c |6 +++--- 1

[Qemu-devel] [PATCH v9 11/12] VMDK: fix coding style

2011-07-12 Thread Fam Zheng
Conform coding style in vmdk.c to pass scripts/checkpatch.pl checks. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 78 +++--- 1 files changed, 47 insertions(+), 31 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index

Re: [Qemu-devel] [PATCH v2 1/1] virtio-console: Prevent abort()s in case of host chardev close

2011-07-12 Thread Amit Shah
On (Tue) 12 Jul 2011 [14:58:57], Amit Shah wrote: A host chardev could close just before the guest sends some data to be written. This will cause an -EPIPE error. This shouldn't be propagated to virtio-serial-bus. Ideally we should close the port once -EPIPE is received, but since the

Re: [Qemu-devel] [PATCH v3 2/2] qemu-io: Fix if scoping bug

2011-07-12 Thread Kevin Wolf
Am 11.07.2011 17:20, schrieb Devin Nakamura: Fix a bug caused by lack of braces in if statement Lack of braces means that if(count 0x1ff) is never reached Conflicts: qemu-io.c Signed-off-by: Devin Nakamura devin...@gmail.com Thanks, applied both to the block branch. Kevin

[Qemu-devel] [PATCH v9 10/12] VMDK: create different subformats

2011-07-12 Thread Fam Zheng
Add create option 'format', with enums: monolithicSparse monolithicFlat twoGbMaxExtentSparse twoGbMaxExtentFlat Each creates a subformat image file. The default is monolithicSparse. Signed-off-by: Fam Zheng famc...@gmail.com --- block/vmdk.c | 502

Re: [Qemu-devel] qemu-user[armel/mips] and debian-rootfs

2011-07-12 Thread Lisandro Damián Nicanor Pérez Meyer
On Mar 12 Jul 2011 08:32:51 Wesley W. Terpstra escribió: [snip] Just a heads up---if you only use my original patch, mipseb still won't be able to run 'make'. My final patchset (sent as a series of 6 patches) resolves this in addition to the other problems. And there you solved my last

Re: [Qemu-devel] [PATCH v3] QMP: add snapshot_blkdev command

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 11:26:09 +0200 Jes Sorensen jes.soren...@redhat.com wrote: On 07/11/11 22:35, Luiz Capitulino wrote: Sorry that is no go, you just broke the hmp implementation - you cannot change the hmp behavior like that. HMP uses positional arguments, so changing argument names

Re: [Qemu-devel] [PATCH 0/4] scsi fixes

2011-07-12 Thread Kevin Wolf
Am 11.07.2011 15:02, schrieb Hannes Reinecke: Hi all, these are some fixes I found during debugging my megasas HBA emulation. This time I've sent them as a separate patchset for inclusion. All of them have been acked, so please apply. Hannes Reinecke (4): iov: Update parameter usage in

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-12 Thread Luiz Capitulino
On Mon, 11 Jul 2011 19:05:58 -0500 Michael Roth mdr...@linux.vnet.ibm.com wrote: On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:32 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: A type of Visiter class that is used to walk a qobject's structure and assign

Re: [Qemu-devel] [PULL 0/8] Block patches

2011-07-12 Thread Anthony Liguori
On 07/06/2011 09:21 AM, Kevin Wolf wrote: The following changes since commit 9312805d33e8b106bae356d13a8071fb37d75554: pxa2xx_lcd: add proper rotation support (2011-07-04 22:12:21 +0200) Pulled. Thanks. Regards, Anthony Liguori are available in the git repository at:

Re: [Qemu-devel] KVM call egenda for July 12

2011-07-12 Thread Juan Quintela
Juan Quintela quint...@redhat.com wrote: Hi Please send in any agenda items you are interested in covering. As there is a single topic, and our fearless leader can't attend and want it moved to next week, this week call got cancelled. Later, Juan.

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-12 Thread Michael Roth
On 07/12/2011 08:16 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 19:05:58 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:32 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: A type of Visiter class that is

[Qemu-devel] [PATCHv3] async + suspend reworked

2011-07-12 Thread Alon Levy
v2-v3: builds correctly with older and newer spice, and runs with older and newer qxl driver. fixed update_area_async to not use QXLRect on stack qxl-render updated to work with update_area_async correctly reverted change to update_area api - update_area still returns dirty rects array Git

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 08:46:13 -0500 Michael Roth mdr...@linux.vnet.ibm.com wrote: On 07/12/2011 08:16 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 19:05:58 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/07/2011 09:32 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:02:32

[Qemu-devel] [PATCHv3] spice: add qemu_spice_display_init_common

2011-07-12 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com Factor out SimpleSpiceDisplay initialization into qemu_spice_display_init_common() and call it from both qxl.c (for vga mode) and spice-display.c Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/qxl.c |7 +-- ui/spice-display.c | 17

[Qemu-devel] [PATCHv3] qxl-render: qxl_render_update: nop if \!ssd.running

2011-07-12 Thread Alon Levy
--- hw/qxl-render.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index d70373d..f440fe8 100644 --- a/hw/qxl-render.c +++ b/hw/qxl-render.c @@ -106,6 +106,10 @@ void qxl_render_update(PCIQXLDevice *qxl) QXLRect dirty[32],

[Qemu-devel] [PATCHv3] qxl: make qxl_guest_bug take variable arguments

2011-07-12 Thread Alon Levy
--- hw/qxl.c | 18 +++--- hw/qxl.h |2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 91bc98d..ae1d0de 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -124,11 +124,15 @@ static void qxl_reset_memslots(PCIQXLDevice *d); static void

[Qemu-devel] [PATCHv3] qxl: remove qxl_destroy_primary()

2011-07-12 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com We'll have to move qemu_spice_destroy_primary_surface() out of qxl_destroy_primary(). That makes the function pretty pointless, so zap it and open code the two lines instead. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/qxl.c | 28

[Qemu-devel] [PATCHv3] qxl-render: use update_area_async and update_area_complete

2011-07-12 Thread Alon Levy
So now there are two implementations chosen based on QXL_INTERFACE_MINOR: * old (spice qxl minor == 0) - use update_area, no change. * new: 1. keep an array of updated rectangles (ssd.dirty_rects) 2. update it on callback (realloc) 3. render the current one before issuing a new

[Qemu-devel] [PATCHv3] spice: add worker wrapper functions.

2011-07-12 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com Add wrapper functions for all spice worker calls. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/qxl-render.c|4 +- hw/qxl.c | 32 +- ui/spice-display.c | 94 ---

[Qemu-devel] [PATCHv3] qxl: add io_port_to_string

2011-07-12 Thread Alon Levy
--- hw/qxl.c | 62 +- 1 files changed, 61 insertions(+), 1 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 6862bc8..7be7ae1 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -407,6 +407,65 @@ static const char *qxl_mode_to_string(int mode)

[Qemu-devel] [PATCHv3] qxl: fix surface tracking locking

2011-07-12 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com Surface tracking needs proper locking since it is used from vcpu and spice worker threads, add it. Also reset the surface counter when zapping all surfaces. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/qxl.c | 13 - hw/qxl.h |2

[Qemu-devel] [PATCHv3] qxl: bump pci rev

2011-07-12 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com Inform guest drivers about the new features I/O commands we have now (async commands, S3 support) if building with newer spice, i.e. if SPICE_INTERFACE_QXL_MINOR = 1. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/qxl.c | 11 --- hw/qxl.h |

[Qemu-devel] [PATCHv3] qxl: QXL_IO_UPDATE_AREA: pass ram-update_area directly to update_area

2011-07-12 Thread Alon Levy
--- hw/qxl.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 17b5b39..6094b38 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -136,7 +136,6 @@ void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...) } } - void

Re: [Qemu-devel] [PATCH 3/8] block: Support to keep track of I/O status

2011-07-12 Thread Kevin Wolf
Am 05.07.2011 20:17, schrieb Luiz Capitulino: This commit adds support to the BlockDriverState type to keep track of the last I/O status. That is, at every I/O operation we update a status field in the BlockDriverState instance. Valid statuses are: OK, FAILED and ENOSPC. ENOSPC is

[Qemu-devel] [PATCHv3] qxl: error handling fixes and cleanups.

2011-07-12 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com Add qxl_guest_bug() function which is supposed to be called in case sanity checks of guest requests fail. It raises an error IRQ and logs a message in case guest debugging is enabled. Make PANIC_ON() abort instead of exit. That macro should be used for

[Qemu-devel] [PATCHv3] qxl: use QXL_REVISION_*

2011-07-12 Thread Alon Levy
--- hw/qxl.c | 22 ++ 1 files changed, 10 insertions(+), 12 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index d3b1581..17b5b39 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1375,7 +1375,6 @@ static DisplayChangeListener display_listener = { static int

[Qemu-devel] [PATCHv3] spice/qxl: move worker wrappers

2011-07-12 Thread Alon Levy
From: Gerd Hoffmann kra...@redhat.com Move the wrapper functions which are used by qxl only to qxl.c. Rename them from qemu_spice_* to qxl_spice_*. Also pass in a qxl state pointer instead of a SimpleSpiceDisplay pointer. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/qxl-render.c|

[Qemu-devel] [PATCHv3] qxl-render: split out qxl_render_update_dirty_rectangles

2011-07-12 Thread Alon Levy
will later be reused from surface_updated callback when compiling against a newer spice-server. --- hw/qxl-render.c | 37 ++--- 1 files changed, 22 insertions(+), 15 deletions(-) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index e64b646..d70373d 100644 ---

[Qemu-devel] [PATCHv3] qxl: only disallow specific io's in vga mode

2011-07-12 Thread Alon Levy
Since the driver is still in operation even after moving to UNDEFINED, i.e. by destroying primary in any way. --- hw/qxl.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 0585f02..1d6acce 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1175,8 +1175,9

Re: [Qemu-devel] [PATCH 7/8] QMP: query-status: Add 'io-status' key

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 09:47:19 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: Contains the last I/O status for the given device. Currently this is only supported by ide, scsi and virtio block devices. Signed-off-by: Luiz Capitulino

[Qemu-devel] [PATCHv3] qxl: async io support using new spice api

2011-07-12 Thread Alon Levy
Some of the QXL port i/o commands are waiting for the spice server to complete certain actions. Add async versions for these commands, so we don't block the vcpu while the spice server processses the command. Instead the qxl device will raise an IRQ when done. The async command processing relies

[Qemu-devel] qemu add cpu AMD Opteron 61XX

2011-07-12 Thread Alex Fedor
Hello! What add new cpu AMD Opteron 61xx in QEMU ? my cpu: processor   : 47 vendor_id   : AuthenticAMD cpu family  : 16 model   : 9 model name  : AMD Opteron(tm) Processor 6174 stepping    : 1 cpu MHz : 2200.294 cache size  : 512 KB physical id : 3

[Qemu-devel] [PATCHv3] qxl: qxl_send_events: ignore if stopped (instead of abort)

2011-07-12 Thread Alon Levy
This can happen if there is an interface_get_command issued when the server has been stopped. easy to trigger - do stop/cont a few times (three seem to be enough). The solution of ignoring the request is bad, but better then aborting and a real solution would probably be in spice to not call

[Qemu-devel] Fwd: [PATCH] Introduce info migrate-times monitor command

2011-07-12 Thread Michal Novotny
This accidentally didn't go to the list although it's been sent there (using git send-email)... Michal Original Message Subject:[PATCH] Introduce info migrate-times monitor command Date: Tue, 12 Jul 2011 15:28:27 +0200 From: Michal Novotny mig...@gmail.com To:

Re: [Qemu-devel] [PATCH 1/8] Introduce the VMStatus type

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 16:51:03 +0200 Kevin Wolf kw...@redhat.com wrote: Am 12.07.2011 16:25, schrieb Luiz Capitulino: On Tue, 12 Jul 2011 09:28:05 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: We need to track the VM status so that QMP

[Qemu-devel] [PATCHv3] qxl: add QXL_IO_FLUSH_{SURFACES, RELEASE} for guest S3S4 support

2011-07-12 Thread Alon Levy
Add two new IOs. QXL_IO_FLUSH_SURFACES - equivalent to update area for all surfaces, used to reduce vmexits from NumSurfaces to 1 on guest S3, S4 and resolution change (windows driver implementation is such that this is done on each of those occasions). QXL_IO_FLUSH_RELEASE - used to ensure

Re: [Qemu-devel] [PATCH 3/8] block: Support to keep track of I/O status

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 11:12:04 +0200 Markus Armbruster arm...@redhat.com wrote: Kevin Wolf kw...@redhat.com writes: Am 12.07.2011 09:45, schrieb Markus Armbruster: Luiz Capitulino lcapitul...@redhat.com writes: This commit adds support to the BlockDriverState type to keep track of the

Re: [Qemu-devel] [PATCH 1/8] Introduce the VMStatus type

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 09:28:05 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: We need to track the VM status so that QMP can report it to clients. This commit adds the VMStatus type and related functions. The vm_status_set() function is

Re: [Qemu-devel] [PATCH v5 05/18] qapi: add QMP input visitor

2011-07-12 Thread Michael Roth
On 07/12/2011 08:53 AM, Luiz Capitulino wrote: On Tue, 12 Jul 2011 08:46:13 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/12/2011 08:16 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 19:05:58 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/07/2011 09:32 AM, Luiz

Re: [Qemu-devel] [PATCH 1/8] Introduce the VMStatus type

2011-07-12 Thread Kevin Wolf
Am 12.07.2011 16:25, schrieb Luiz Capitulino: On Tue, 12 Jul 2011 09:28:05 +0200 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: We need to track the VM status so that QMP can report it to clients. This commit adds the VMStatus type and related

Re: [Qemu-devel] [PULL] usb patch queue

2011-07-12 Thread Gerd Hoffmann
On 07/08/11 11:50, Gerd Hoffmann wrote: Hi, Here is the current usb patch queue. Most noteworthy is the usb companion controller support added. There are also a bunch of bug fixes, some from Hans which he found while doing the companion controller work and some have been found in patch

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-12 Thread Luiz Capitulino
On Mon, 11 Jul 2011 18:11:21 -0500 Michael Roth mdr...@linux.vnet.ibm.com wrote: On 07/11/2011 04:12 PM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 15:11:26 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/08/2011 10:14 AM, Luiz Capitulino wrote: On Tue, 5 Jul 2011 08:21:40

Re: [Qemu-devel] [PULL] spice patch queue

2011-07-12 Thread Gerd Hoffmann
On 07/04/11 17:14, Gerd Hoffmann wrote: Hi, Here is the spice patch queue with a bunch of small fixes and improvements collected over time. No major changes. please pull, Gerd The following changes since commit 75ef849696830fc2ddeff8bb90eea5887ff50df6: esp: correctly fill bus id

[Qemu-devel] [Bug 807893] Re: [PATCH] os-posix: set groups properly for -runas

2011-07-12 Thread Stefan Hajnoczi
On Sat, Jul 9, 2011 at 10:22 AM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: Andrew Griffiths reports that -runas does not set supplementary group IDs.  This means that gid 0 (root) is not dropped when switching to an unprivileged user. Add an initgroups(3) call to use the -runas

Re: [Qemu-devel] [PATCH 3/8] block: Support to keep track of I/O status

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 16:25:22 +0200 Kevin Wolf kw...@redhat.com wrote: Am 05.07.2011 20:17, schrieb Luiz Capitulino: This commit adds support to the BlockDriverState type to keep track of the last I/O status. That is, at every I/O operation we update a status field in the BlockDriverState

Re: [Qemu-devel] live block copy/stream/snapshot discussion

2011-07-12 Thread Kevin Wolf
Am 12.07.2011 17:45, schrieb Stefan Hajnoczi: Image streaming API === For leaf images with copy-on-read semantics, the stream commands allow the user to populate local blocks by manually streaming them from the backing image. Once all blocks have been streamed, the

[Qemu-devel] Loading ELF binaries with very high base addresses

2011-07-12 Thread Prashant Vaibhav
Hello, I am working on target-ia64, but am stuck during ia64 ELF loading. Referring to function probe_guest_base() in linux-user/elfload.c around line 1350, called from around line 1484 -- When the main binary is being mmap'd, the host address and guest address should ideally be the same. If

[Qemu-devel] [Bug 807893] Re: qemu privilege escalation

2011-07-12 Thread Andrew Griffiths
Yep, that fix looks fine. RedHat should have a CVE number for this issue. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/807893 Title: qemu privilege escalation Status in QEMU: Confirmed Bug

[Qemu-devel] [Bug 807893] Re: qemu privilege escalation

2011-07-12 Thread Andrew Griffiths
or any other linux vendor that has an interest in qemu :) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/807893 Title: qemu privilege escalation Status in QEMU: Confirmed Bug description: If

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 10:44:14 -0500 Michael Roth mdr...@linux.vnet.ibm.com wrote: On 07/12/2011 09:15 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 18:11:21 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/11/2011 04:12 PM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 15:11:26

Re: [Qemu-devel] live block copy/stream/snapshot discussion

2011-07-12 Thread Stefan Hajnoczi
On Tue, Jul 12, 2011 at 9:06 AM, Kevin Wolf kw...@redhat.com wrote: Am 11.07.2011 18:32, schrieb Marcelo Tosatti: On Mon, Jul 11, 2011 at 03:47:15PM +0100, Stefan Hajnoczi wrote: Kevin, Marcelo, I'd like to reach agreement on the QMP/HMP APIs for live block copy and image streaming.  Libvirt

Re: [Qemu-devel] migration: new sections and backward compatibility.

2011-07-12 Thread Gerd Hoffmann
Hi, Well, in case of usb hid devices breaking the guest isn't that a big issue for at least some guests because they manage to reset the device and continue nevertheless ... In a situation like this, I think our responsibility is to let the user know that there could be a problem, and

Re: [Qemu-devel] [PATCH v6 4/4] guest agent: add guest agent RPCs/commands

2011-07-12 Thread Michael Roth
On 07/12/2011 09:15 AM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 18:11:21 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/11/2011 04:12 PM, Luiz Capitulino wrote: On Mon, 11 Jul 2011 15:11:26 -0500 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 07/08/2011 10:14 AM, Luiz

Re: [Qemu-devel] [PATCH 1/8] Introduce the VMStatus type

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 12:12:31 -0300 Luiz Capitulino lcapitul...@redhat.com wrote: On Tue, 12 Jul 2011 16:51:03 +0200 Kevin Wolf kw...@redhat.com wrote: Am 12.07.2011 16:25, schrieb Luiz Capitulino: On Tue, 12 Jul 2011 09:28:05 +0200 Markus Armbruster arm...@redhat.com wrote:

Re: [Qemu-devel] qdev for programmers writeup

2011-07-12 Thread Paolo Bonzini
On 07/11/2011 06:47 PM, Peter Maydell wrote: On 11 July 2011 16:29, Paolo Bonzinipbonz...@redhat.com wrote: On 07/11/2011 04:44 PM, Peter Maydell wrote: (Also if you have one bus type per board then you're still very limited in what you can do with -device because you can't plug in some

Re: [Qemu-devel] Loading ELF binaries with very high base addresses

2011-07-12 Thread Marc Lörner
Hello Prashant, first of all your 0x464 is wrong it's 0x460. In Volume 2 of the IASDM page 2:46 you see that these three upper bits correspond to the 8 virtual regions (here: region 2). So maybe you can just disregard these bits and use the rest as new offset to an faked guest_base that fits your

Re: [Qemu-devel] [PATCH 1/8] Introduce the VMStatus type

2011-07-12 Thread Kevin Wolf
Am 12.07.2011 18:03, schrieb Luiz Capitulino: On Tue, 12 Jul 2011 12:12:31 -0300 Luiz Capitulino lcapitul...@redhat.com wrote: On Tue, 12 Jul 2011 16:51:03 +0200 Kevin Wolf kw...@redhat.com wrote: Am 12.07.2011 16:25, schrieb Luiz Capitulino: On Tue, 12 Jul 2011 09:28:05 +0200 Markus

[Qemu-devel] [Bug 656285] Re: arm-semi mishandling SYS_HEAPINFO

2011-07-12 Thread Peter Maydell
The patches I mention in commit #4 (and also a fix by Cedric Vincent for some other brk related bugs) have now been committed to qemu master. ** Changed in: qemu Status: New = Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is

[Qemu-devel] [Bug 807893] Re: qemu privilege escalation

2011-07-12 Thread Chris Wright
This bug is being tracked as CVE-2011-2527 ** CVE added: http://www.cve.mitre.org/cgi- bin/cvename.cgi?name=2011-2527 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/807893 Title: qemu privilege

Re: [Qemu-devel] live block copy/stream/snapshot discussion

2011-07-12 Thread Adam Litke
On 07/12/2011 10:45 AM, Stefan Hajnoczi wrote: On Tue, Jul 12, 2011 at 9:06 AM, Kevin Wolf kw...@redhat.com wrote: Am 11.07.2011 18:32, schrieb Marcelo Tosatti: On Mon, Jul 11, 2011 at 03:47:15PM +0100, Stefan Hajnoczi wrote: Kevin, Marcelo, I'd like to reach agreement on the QMP/HMP APIs

[Qemu-devel] [Bug 807893] Re: qemu privilege escalation

2011-07-12 Thread Chris Wright
Requesting CVE. Tools like libvirt deprivilege themselves before launching qemu as an unprivileged user (no use of -runas), so aren't vulnerable. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/807893

Re: [Qemu-devel] Loading ELF binaries with very high base addresses

2011-07-12 Thread Alexander Graf
Hi Prashant, Am 12.07.2011 um 17:29 schrieb Prashant Vaibhav q...@mercurysquad.com: Hello, I am working on target-ia64, but am stuck during ia64 ELF loading. Referring to function probe_guest_base() in linux-user/elfload.c around line 1350, called from around line 1484 -- When the

Re: [Qemu-devel] [PATCH 1/8] Introduce the VMStatus type

2011-07-12 Thread Luiz Capitulino
On Tue, 12 Jul 2011 18:16:26 +0200 Kevin Wolf kw...@redhat.com wrote: Am 12.07.2011 18:03, schrieb Luiz Capitulino: On Tue, 12 Jul 2011 12:12:31 -0300 Luiz Capitulino lcapitul...@redhat.com wrote: On Tue, 12 Jul 2011 16:51:03 +0200 Kevin Wolf kw...@redhat.com wrote: Am 12.07.2011

[Qemu-devel] [Bug 807893] Re: [PATCH] os-posix: set groups properly for -runas

2011-07-12 Thread Chris Wright
* Stefan Hajnoczi (stefa...@linux.vnet.ibm.com) wrote: @@ -199,6 +200,11 @@ static void change_process_uid(void) fprintf(stderr, Failed to setgid(%d)\n, user_pwd-pw_gid); exit(1); } +if (initgroups(user_pwd-pw_name, user_pwd-pw_gid) 0) { +

  1   2   >