Re: [Qemu-devel] [PATCH v4 00/17] clean up vl.c code

2010-06-11 Thread Blue Swirl
Thanks, applied. On Thu, Jun 10, 2010 at 9:42 AM, wrote: > From: Jes Sorensen > > v4 of the vl.c clean up patch. This one just fixes a merge conflict > due to some recent changes to vl.c, and I added the Acked-By: lines I > received for v3. Consider it a house-keeping update to make it easier

[Qemu-devel] Re: [PATCH v6 0/6] Inter-VM Shared Memory Device with migration support

2010-06-11 Thread Cam Macdonell
Hi Anthony, Is my implementation of master/peer roles acceptable? I realize with Alex's RAMList changes I may need to modify my patch, but is the approach of marking memory non-migratable an acceptable implementation? Thanks, Cam On Fri, Jun 4, 2010 at 3:45 PM, Cam Macdonell wrote: > Latest pa

Re: [Qemu-devel] [PATCH] win32: Add missing function ffs

2010-06-11 Thread Richard Henderson
On 06/11/2010 01:57 PM, Stefan Weil wrote: > mingw32 does not include function ffs. > > Commit c6d29ad6e24533cc3762e1d654275607e1d03058 added a > declaration for ffs, but an implementation was missing. > > For compilations with optimization, the compiler creates > inline code, so the implementati

Re: [Qemu-devel] [PATCH 16/16] hpet: Add MSI support

2010-06-11 Thread Paul Brook
> +} else if (timer_fsb_route(timer)) { > +apic_send_msi(timer->fsb >> 32, timer->fsb & 0x); This should use a regular memory write, like the PCI MSI-X code does. Paul

[Qemu-devel] [PATCH] configure: Fix evaluation of config-host.mak in create_config

2010-06-11 Thread Jan Kiszka
From: Jan Kiszka Only match on true dir variable assignments, avoid generating garbage due to the "# Configured with: ..." line which may contain "*dir=" as well. Signed-off-by: Jan Kiszka --- create_config |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/create_config

[Qemu-devel] [PATCH] win32: Add missing function ffs

2010-06-11 Thread Stefan Weil
mingw32 does not include function ffs. Commit c6d29ad6e24533cc3762e1d654275607e1d03058 added a declaration for ffs, but an implementation was missing. For compilations with optimization, the compiler creates inline code, so the implementation is not always needed. Without optimization, linking f

[Qemu-devel] [PATCH 10/10] hxtool: Fix line number reporting on SQMP/EQMP errors

2010-06-11 Thread Luiz Capitulino
From: Jan Kiszka Signed-off-by: Jan Kiszka Signed-off-by: Luiz Capitulino --- hxtool |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hxtool b/hxtool index d499dc0..7ca83ed 100644 --- a/hxtool +++ b/hxtool @@ -59,6 +59,7 @@ hxtoqmp() { IFS= flag=0 +line=

[Qemu-devel] [PATCH 09/10] remove unnecessary lookaheads

2010-06-11 Thread Luiz Capitulino
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Capitulino --- json-lexer.c | 48 1 files changed, 16 insertions(+), 32 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index 5ea64a7..c736f42 100644 --- a/json-lexer.

[Qemu-devel] [PATCH 06/10] json-streamer: Don't use qdict_put_obj()

2010-06-11 Thread Luiz Capitulino
It's not needed, use qobject_put() instead and get a cleaner code. Signed-off-by: Luiz Capitulino --- json-streamer.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/json-streamer.c b/json-streamer.c index 610ffea..f7e7a68 100644 --- a/json-streamer.c +++ b/json-s

[Qemu-devel] [PATCH 08/10] implement optional lookahead in json lexer

2010-06-11 Thread Luiz Capitulino
From: Paolo Bonzini Not requiring one extra character when lookahead is not necessary ensures that clients behave properly even if they, for example, send QMP requests without a trailing newline. Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Capitulino --- json-lexer.c | 58 +

[Qemu-devel] [PATCH 05/10] json-lexer: Drop 'buf'

2010-06-11 Thread Luiz Capitulino
QString supports adding a single char, 'buf' is unneeded. Signed-off-by: Luiz Capitulino --- json-lexer.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index 5cc7e6c..1d9b81f 100644 --- a/json-lexer.c +++ b/json-lexer.c @@ -284,8 +284,

[Qemu-devel] [PATCH 03/10] qjson: Handle "\f"

2010-06-11 Thread Luiz Capitulino
It's valid JSON and should be handled. Signed-off-by: Luiz Capitulino --- json-parser.c |4 qjson.c |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/json-parser.c b/json-parser.c index b55d763..83212bc 100644 --- a/json-parser.c +++ b/json-parser.c @@ -20

[Qemu-devel] [PATCH 04/10] check-qjson: Add more escape tests

2010-06-11 Thread Luiz Capitulino
While there make the fail_unless() calls print error messages. IMPORTANT: The test for "\/" is failing, don't know why. Signed-off-by: Luiz Capitulino --- check-qjson.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/check-qjson.c b/check-qjson.c index 109

[Qemu-devel] [PATCH 07/10] add some tests for invalid JSON

2010-06-11 Thread Luiz Capitulino
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Capitulino --- check-qjson.c | 98 - 1 files changed, 97 insertions(+), 1 deletions(-) diff --git a/check-qjson.c b/check-qjson.c index d365799..2e52450 100644 --- a/

[Qemu-devel] [PATCH 01/10] json-lexer: Initialize 'x' and 'y'

2010-06-11 Thread Luiz Capitulino
The 'lexer' variable is passed by the caller, it can contain anything (eg. garbage). Signed-off-by: Luiz Capitulino --- json-lexer.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index 9d64920..0b145d1 100644 --- a/json-lexer.c +++ b/json-le

[Qemu-devel] [PATCH 02/10] json-lexer: Handle missing escapes

2010-06-11 Thread Luiz Capitulino
The JSON escape sequence "\/" and "\\" are valid and should be handled. Signed-off-by: Luiz Capitulino --- json-lexer.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/json-lexer.c b/json-lexer.c index 0b145d1..5cc7e6c 100644 --- a/json-lexer.c +++ b/json-lexer.c @@ -

[Qemu-devel] [PATCH 00/10][PULL]: QMP/Monitor queue

2010-06-11 Thread Luiz Capitulino
Hi Anthony, The following QMP/Monitor patches have been sent to the list and look good to me. I have also tested most of them. The changes (since 0e2029a063405091ee34170ef71aa321715e4357) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git for-anthony Jan Ki

[Qemu-devel] Re: [PATCH] ceph/rbd block driver for qemu-kvm (v3)

2010-06-11 Thread Simone Gotti
Hi Christian, thanks for you patch. I tried it a little and it worked quite well but during some live migration tests I noticed a problem. The problem is related to live migration with high I/O using the AIO calls (I triggered it with a simple "dd"). If you launch a live migration and the guest

Re: [Qemu-devel] [PATCH, applied] NEON vldN optimization

2010-06-11 Thread Paul Brook
> +tcg_gen_shli_i32(tmp2, tmp, 16); > +tcg_gen_or_i32(tmp, tmp, tmp2); Which if you're paying attention is incorrect. Actual committed patch is correct - tcg_gen_shli_i32(tmp2, tmp2, 16); Paul

[Qemu-devel] [PATCH, applied] NEON vldN optimization

2010-06-11 Thread Paul Brook
When combining multiple values as part of a NEON array load, do explcit shift/or rather than using gen_bfi. This voids redundant mask operations. Signed-off-by: Paul Brook --- target-arm/translate.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-arm/transla

Re: [Qemu-devel] [RFC v2] [PATCH 0/3] Monitor Support for 'simple' trace backend

2010-06-11 Thread Luiz Capitulino
On Fri, 11 Jun 2010 14:08:56 +0200 Jan Kiszka wrote: > Markus Armbruster wrote: > > Prerna Saxena writes: > > > >> This is v2 of monitor commands based on Stefan's trace framework : > >> ( http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02407.html ) > >> > >> This adds the following mon

[Qemu-devel] Re: [RFC v2] [PATCH 1/3] Export tdb_hash()

2010-06-11 Thread Luiz Capitulino
On Fri, 11 Jun 2010 00:45:58 +0530 Prerna Saxena wrote: > For now, I simply export tdb_hash() from qdict.h for use by tracing > framework. > Luiz suggested renaming and exporting it from a location other than > qdict.h . Would "qemu-common.h" be a better place? qemu-common.h seems to be about

Re: [Qemu-devel] Re: [PATCH v3 0/5] Add QMP migration events

2010-06-11 Thread Luiz Capitulino
On Fri, 11 Jun 2010 09:38:42 -0500 Anthony Liguori wrote: > > 1. QMP only returns the response when the command is finished, eg: > > > > C: { "execute": "migrate", "id": "foo" ... } > > /* nothing is returned, other commands are issued, after several > > hours... */ > > S: { "re

[Qemu-devel] Re: [PATCH 0/2] RAM cleanup

2010-06-11 Thread Alex Williamson
On Fri, 2010-06-11 at 08:15 -0600, Alex Williamson wrote: > These are the first two patches from the RFC sent out a couple days > ago. There seemed to be concensus that these were headed in the > right direction, so I'll post them for commit while we decided how > to name RAMBlocks. > > Changes -

[Qemu-devel] Re: Unusual physical address when using 64-bit BAR

2010-06-11 Thread Cam Macdonell
On Mon, Apr 19, 2010 at 10:41 AM, Cam Macdonell wrote: > Hi, > > I'm trying to use a 64-bit BAR for my shared memory device.  In simply > changing the memory type in pci_register_bar() to > PCI_BASE_ADDRESS_MEM_TYPE_64 I get an unusual physical address for > that BAR (and my driver crashes in pci_

[Qemu-devel] [PATCH v2] ram_blocks: Convert to a QLIST

2010-06-11 Thread Alex Williamson
This makes the RAM block list easier to manipulate. Also incorporate relevant variables into the RAMList struct. Signed-off-by: Alex Williamson Acked-by: Chris Wright --- v2: For qemu.git this time arch_init.c | 14 +-- cpu-all.h | 28 +++-- exec.c | 78 +

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-11 Thread Paul Brook
> The trouble I'm running into is that the SaveStateEntry.instance_id is > effectively private, and there's no easy way to associate a > SaveStateEntry to a device since it passes an opaque pointer, which > could be whatever the driver decides it wants. I'm wondering if we > should pass the Device

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-11 Thread Alex Williamson
On Fri, 2010-06-11 at 10:48 +0200, Gerd Hoffmann wrote: > On 06/10/10 17:21, Alex Williamson wrote: > > On Thu, 2010-06-10 at 15:49 +0100, Paul Brook wrote: > >>> Ok, we can certainly doname>.instance>\. > >>> It seems like this highlights a deficiency in the vmstate matching > >> > >> Why are you

Re: [Qemu-devel] [PATCH] Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE

2010-06-11 Thread Kevin Wolf
Am 11.06.2010 16:02, schrieb jes.soren...@redhat.com: > From: Jes Sorensen > > Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE in hw/fdc.c > > Per https://bugs.launchpad.net/qemu/+bug/424453 the correct values > for FD_CMD_SAVE is 0x2e and FD_CMD_RESTORE is 0x4e. Verified against > the In

Re: [Qemu-devel] Re: [PATCH v3 0/5] Add QMP migration events

2010-06-11 Thread Anthony Liguori
On 06/11/2010 09:30 AM, Luiz Capitulino wrote: On Thu, 10 Jun 2010 12:44:55 +0200 Juan Quintela wrote: Luiz Capitulino wrote: On Wed, 9 Jun 2010 14:10:53 +0200 Juan Quintela wrote: This is a resent with what we agreed on yesterday call. Migration events would be there f

[Qemu-devel] Re: [PATCH v3 0/5] Add QMP migration events

2010-06-11 Thread Luiz Capitulino
On Thu, 10 Jun 2010 12:44:55 +0200 Juan Quintela wrote: > Luiz Capitulino wrote: > > On Wed, 9 Jun 2010 14:10:53 +0200 > > Juan Quintela wrote: > > > >> This is a resent with what we agreed on yesterday call. > >> Migration events would be there for 0.13 until we get proper > >> async command

Re: [Qemu-devel] [PATCH] Name the default PCI bus "pci.0" on all architectures

2010-06-11 Thread Paul Brook
> Note that I *only* object to case 2 (derive bus name from parent > device's ID). Case 3 (derive bus name from bus type) is fine with me. > > > Using a single counter for all busses is also wrong. The order of bus > > creation is a device implementation detail, under no circumstances > > should

[Qemu-devel] [PATCH 2/2] ram_blocks: Convert to a QLIST

2010-06-11 Thread Alex Williamson
This makes the RAM block list easier to manipulate. Also incorporate relevant variables into the RAMList struct. Signed-off-by: Alex Williamson Acked-by: Chris Wright --- arch_init.c | 14 ++- cpu-all.h | 28 -- exec.c | 75

[Qemu-devel] [PATCH 1/2] qemu_ram_alloc: Remove duplicate code

2010-06-11 Thread Alex Williamson
No reason not to call qemu_ram_map() once we have the allocation and remove duplicate code. Signed-off-by: Alex Williamson Acked-by: Chris Wright --- exec.c | 37 ++--- 1 files changed, 10 insertions(+), 27 deletions(-) diff --git a/exec.c b/exec.c index 7b0e

[Qemu-devel] [PATCH 0/2] RAM cleanup

2010-06-11 Thread Alex Williamson
These are the first two patches from the RFC sent out a couple days ago. There seemed to be concensus that these were headed in the right direction, so I'll post them for commit while we decided how to name RAMBlocks. Changes - rename 'ram' to 'ram_list' to avoid polluting the global namespace qu

Re: [Qemu-devel] [PATCH] megasas: Update to version 1.01

2010-06-11 Thread Hannes Reinecke
Blue Swirl wrote: > On Tue, Jun 8, 2010 at 2:15 PM, Hannes Reinecke wrote: >> This patch updates the megasas HBA emulation to version 1.01. >> It fixes the following issues: >> >> - Remove hand-crafted inquiry command >> - Remove bounce-buffer for direct commands >> - Implements qdev properties to

[Qemu-devel] [PATCH] Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE

2010-06-11 Thread Jes . Sorensen
From: Jes Sorensen Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE in hw/fdc.c Per https://bugs.launchpad.net/qemu/+bug/424453 the correct values for FD_CMD_SAVE is 0x2e and FD_CMD_RESTORE is 0x4e. Verified against the Intel 82078 manual which can be found at: http://wiki.qemu.org/Documen

Re: [Qemu-devel] [PATCH 15/35] tcg-s390: Query instruction extensions that are installed.

2010-06-11 Thread Richard Henderson
On 06/11/2010 01:06 AM, Aurelien Jarno wrote: >> That said, all the hardware to which either I or agraf have access are the >> latest >> z10 machines. Frankly I expect that to be true of most if not all machines, >> since >> I think it's just a microcode update which everyone with an active supp

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-11 Thread Anthony Liguori
On 06/11/2010 07:55 AM, Luiz Capitulino wrote: On Thu, 10 Jun 2010 09:27:34 -0500 Anthony Liguori wrote: On 06/10/2010 08:08 AM, Kevin Wolf wrote: Am 10.06.2010 14:53, schrieb Anthony Liguori: On 06/10/2010 04:43 AM, Kevin Wolf wrote: Huh, why this? Seems I sti

[Qemu-devel] Re: [PATCH v5] block: add sheepdog driver for distributed storage support

2010-06-11 Thread Kevin Wolf
Am 07.06.2010 20:00, schrieb MORITA Kazutaka: > Sheepdog is a distributed storage system for QEMU. It provides highly > available block level storage volumes to VMs like Amazon EBS. This > patch adds a qemu block driver for Sheepdog. > > Sheepdog features are: > - No node in the cluster is specia

[Qemu-devel] Re: [PATCH v3 3/5] QMP: Introduce MIGRATION events

2010-06-11 Thread Luiz Capitulino
On Thu, 10 Jun 2010 12:33:42 +0200 Juan Quintela wrote: > Luiz Capitulino wrote: > > On Wed, 9 Jun 2010 14:10:56 +0200 > > Juan Quintela wrote: > > >> +MIGRATION_FAILED > >> + > >> + > >> +Emitted when migration fails (both is source and target). Notice > >> +that this event

[Qemu-devel] RE: [PATCH] qemu-option: Fix uninitialized value in append_option_parameter

2010-06-11 Thread Hao, Xudong
Kevin, this patch works fine. Kevin Wolf wrote: > When dest is NULL, i.e. a new copy of the list is created, we don't > get a > properly terminated list after the realloc. Initialize it as an empty > list. > > Signed-off-by: Kevin Wolf > --- > > Xudong, can you please try this one? I think it

Re: [Qemu-devel] [PATCH 15/35] tcg-s390: Query instruction extensions that are installed.

2010-06-11 Thread Richard Henderson
On 06/11/2010 01:06 AM, Aurelien Jarno wrote: > What's the difference between FACILITY_ZARCH and FACILITY_ZARCH_ACTIVE, > as both are actually flagged together. My guess is that > FACILITY_ZARCH_ACTIVE is needed in 64-bit mode, why FACILITY_ZARCH is > only needed for a possible future 32-bit mode.

Re: [Qemu-devel] [PATCH 22/22] machine: introduce -machine-def option to define a machine via config

2010-06-11 Thread Daniel P. Berrange
On Thu, Jun 10, 2010 at 06:48:42PM +0100, Daniel P. Berrange wrote: > On Mon, Jun 07, 2010 at 07:50:14PM -0500, Anthony Liguori wrote: > > On 06/07/2010 06:52 PM, Anthony Liguori wrote: > > >Since we have MachineCore and can represent a machine entirely via default > > >options, we can introduce a

Re: [Qemu-devel] [PATCH] Name the default PCI bus "pci.0" on all architectures

2010-06-11 Thread Markus Armbruster
Paul Brook writes: >> Paul Brook writes: >> >> The system emulators for each arch are using inconsistent >> >> naming for the default PCI bus "pci" vs "pci.0". Since it >> >> is conceivable we'll have multiple PCI buses in the future >> >> standardize on "pci.0" for all architectures. This ensur

Re: [Qemu-devel] Re: KVM call minutes for June 8

2010-06-11 Thread Luiz Capitulino
On Thu, 10 Jun 2010 09:27:34 -0500 Anthony Liguori wrote: > On 06/10/2010 08:08 AM, Kevin Wolf wrote: > > Am 10.06.2010 14:53, schrieb Anthony Liguori: > > > >> On 06/10/2010 04:43 AM, Kevin Wolf wrote: > >> > >>> Huh, why this? Seems I still haven't understood all of qcow2 then... I >

[Qemu-devel] [PATCH] Make netdev_del delete the netdev even when it's in use

2010-06-11 Thread Markus Armbruster
To hot-unplug guest and host part of a network device, you do: device_del NIC-ID netdev_del NETDEV-ID For PCI devices, device_del merely tells ACPI to unplug the device. The device goes away for real only after the guest processed the ACPI unplug event. You have to wait until then (e.g.

Re: [Qemu-devel] [RFC v2] [PATCH 0/3] Monitor Support for 'simple' trace backend

2010-06-11 Thread Jan Kiszka
Markus Armbruster wrote: > Prerna Saxena writes: > >> This is v2 of monitor commands based on Stefan's trace framework : >> ( http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02407.html ) >> >> This adds the following monitor commands for the 'simple' backend: >> - info trace

Re: [Qemu-devel] [PATCH 2/8] QMP: Introduce the documentation for query-netdev and info netdev

2010-06-11 Thread Miguel Di Ciurcio Filho
On Fri, Jun 11, 2010 at 8:37 AM, Markus Armbruster wrote: >> +- "id": the device's ID, must be unique (json-string) >> +- "vlan": QEMU's internal vlan identification. Only present if the device is >> +  attached to a VLAN (json-int, optional) >> +- "peer": ID of the frontend device when on a 1:1 r

Re: [Qemu-devel] [RFC v2] [PATCH 0/3] Monitor Support for 'simple' trace backend

2010-06-11 Thread Markus Armbruster
Prerna Saxena writes: > This is v2 of monitor commands based on Stefan's trace framework : > ( http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02407.html ) > > This adds the following monitor commands for the 'simple' backend: > - info trace : to view current contents of the trac

Re: [Qemu-devel] [PATCH 2/8] QMP: Introduce the documentation for query-netdev and info netdev

2010-06-11 Thread Markus Armbruster
Miguel Di Ciurcio Filho writes: > These commands show the information about active backend network devices. > > Signed-off-by: Miguel Di Ciurcio Filho > --- > qemu-monitor.hx | 53 + > 1 files changed, 53 insertions(+), 0 deletions(-) > > di

Re: [Qemu-devel] [PATCH 3/3] Toggle tracepoint state

2010-06-11 Thread Prerna Saxena
Hi Luiz, Thanks for taking time to review it. On 06/10/2010 02:13 AM, Luiz Capitulino wrote: On Tue, 8 Jun 2010 12:38:58 +0530 Prerna Saxena wrote: This patch adds support for dynamically enabling/disabling of tracepoints. Monitor commands added : Monitor has a bool type, please tak

Re: [Qemu-devel] [PATCH 2/3] Monitor command 'trace'

2010-06-11 Thread Prerna Saxena
Hi Luiz, Thanks for your feedback. On 06/10/2010 02:07 AM, Luiz Capitulino wrote: On Tue, 8 Jun 2010 12:34:37 +0530 Prerna Saxena wrote: This introduces the monitor command 'trace' to read current contents of trace buffer. ... diff --git a/simpletrace.c b/simpletrace.c index 2fec4d3..8f33a81

Re: [Qemu-devel] [PATCH 1/3] export tdb_hash()

2010-06-11 Thread Prerna Saxena
On 06/10/2010 02:05 AM, Luiz Capitulino wrote: On Tue, 8 Jun 2010 12:31:38 +0530 Prerna Saxena wrote: This exports tdb_hash() for use by tracing framework. Suggest to rename it (eg. qemu_hash()) and move it to a better location, qdict is not the best module to export such service. Would

Re: [Qemu-devel] [Bug 592028] Re: sparc32plus user test failed

2010-06-11 Thread Artyom Tarasenko
2010/6/11 kruglov.dima : > Thanks a lot for your clarify. > > May be in this case it is necessary to edit a shell script in linux- > user-test-0.3.tar.gz package? > > In shell script qemu-linux-user.sh > delete sparc32plus architecture from list of all arch for testing: >>>archs="i386 arm armeb spa

Re: [Qemu-devel] [Bug 322602] Re: Snapshot usage makes qcow2 image unusable due to large tables

2010-06-11 Thread Kevin Wolf
Am 11.06.2010 09:59, schrieb Jes Sorensen: > Could you please let us know whether this is still a problem and if it > isn't, lets close this bug. This looks like a purely hypothetical thing - have you seen this happen in reality, and if so, with how many snapshots? This is reported against a very

[Qemu-devel] [Bug 592028] Re: sparc32plus user test failed

2010-06-11 Thread kruglov.dima
Thanks a lot for your clarify. May be in this case it is necessary to edit a shell script in linux- user-test-0.3.tar.gz package? In shell script qemu-linux-user.sh delete sparc32plus architecture from list of all arch for testing: >>archs="i386 arm armeb sparc sparc32plus ppc ppc64abi32 mips mip

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-11 Thread Gerd Hoffmann
On 06/10/10 17:21, Alex Williamson wrote: On Thu, 2010-06-10 at 15:49 +0100, Paul Brook wrote: Ok, we can certainly doname>.instance>\. It seems like this highlights a deficiency in the vmstate matching Why are you forcing this to be a string? It seemed like a good way to send an identifier.

Re: [Qemu-devel] [RFC PATCH 3/6] RAMBlock: Add a name field

2010-06-11 Thread Gerd Hoffmann
On 06/10/10 16:33, Alex Williamson wrote: On Thu, 2010-06-10 at 10:23 +0200, Gerd Hoffmann wrote: I may have been a bit misleading here. What we really want to do is use the same matching algorithm as is used by the rest of the device state. Currently this is a vmstate name and [arbitrary] numer

[Qemu-devel] [PATCH] qemu-option: Fix uninitialized value in append_option_parameter

2010-06-11 Thread Kevin Wolf
When dest is NULL, i.e. a new copy of the list is created, we don't get a properly terminated list after the realloc. Initialize it as an empty list. Signed-off-by: Kevin Wolf --- Xudong, can you please try this one? I think it should fix your qemu-img problem. qemu-option.c |1 + 1 files

[Qemu-devel] The bios loading in pc_memory_init doesn't seem to make sense

2010-06-11 Thread Olivier Galibert
Hi all, The bios loading part of pc_memory_init in hw/pc.c does not seem to make sense. Specifically, the operations are: - find the bios file and its size, put the size in bios_size - bios_offset = qemu_ram_alloc(bios_size) - rom_add_file_fixed(bios_name, (uint32_t)(-bios_size)) -> at this p

[Qemu-devel] [Bug 322602] Re: Snapshot usage makes qcow2 image unusable due to large tables

2010-06-11 Thread Jes Sorensen
Hi, Could you please let us know whether this is still a problem and if it isn't, lets close this bug. In addition, you haven't listed which version of qemu-kvm you are running. I am guessing it is something Ubuntu based based on the version number, but since not all of us are running Ubuntu it

Re: [Qemu-devel] [PATCH 15/35] tcg-s390: Query instruction extensions that are installed.

2010-06-11 Thread Aurelien Jarno
On Thu, Jun 10, 2010 at 03:19:25PM -0700, Richard Henderson wrote: > On 06/10/2010 03:28 AM, Aurelien Jarno wrote: > >> +asm volatile(".word 0xb2b0,0x1000" > >> + : "=r"(r0) : "0"(0), "r"(r1) : "memory", "cc"); > > > > Wouldn't it be possible to use the instruction directly ins

Re: [Qemu-devel] [PATCH 06/35] tcg-s390: Allocate the code_gen_buffer near the main program.

2010-06-11 Thread Aurelien Jarno
On Thu, Jun 10, 2010 at 03:05:16PM -0700, Richard Henderson wrote: > On 06/09/2010 03:59 PM, Aurelien Jarno wrote: > >> +start = (void *)0x9000UL; > > > > Is there any reason for this address? > > The default link address for the main application is 0x8000, > so this is near-by. >

RE: [Qemu-devel] [Bug 592056] [NEW] qemu segmentation fault when create qcow2 image with qemu-img command

2010-06-11 Thread Hao, Xudong
BT: #0 0x0032f0477d20 in strcmp () from /lib64/libc.so.6 #1 0x004071bb in get_option_parameter (list=0x6447e0, name=0x432dc9 "size") at qemu-option.c:162 #2 0x00408848 in append_option_parameters (dest=, list=0x642460) at qemu-option.c:383 #3 0x00405143 in