Re: [Qemu-devel] [PATCH 01/10] Add stub functions for PCI device models to do PCI DMA

2011-09-02 Thread Eduard - Gabriel Munteanu
On Fri, Sep 02, 2011 at 11:37:25AM +0300, Avi Kivity wrote: > On 09/01/2011 07:05 PM, Anthony Liguori wrote: > > > > The challenge is what you do about something like ne2k where the core > > chipset can either be a PCI device or an ISA device. You would have > > to implement a wrapper around pci

Re: [Qemu-devel] Single 64bit memory transaction instead of two 32bit memory transaction

2011-09-02 Thread Richard Henderson
On 09/02/2011 12:46 AM, Adnan Khaleel wrote: > Is there anyway we can prevent Qemu breaking up 64,128 and 256bit XMM or YMM > instructions into smaller chunks and have them issue as a single transaction > of the original width? Not yet. The new MemoryRegion API will allow this, but we need to c

Re: [Qemu-devel] [PATCH 01/10] Add stub functions for PCI device models to do PCI DMA

2011-09-02 Thread Richard Henderson
On 09/01/2011 09:25 PM, Anthony Liguori wrote: > I think this is the wrong approach given the introduction of the memory API. > > I think we should have a generic memory access function that takes a > MemoryRegion as it's first argument. > > The PCI bus should then expose one memory region for e

[Qemu-devel] buildbot failure in qemu on block_x86_64_debian_6_0

2011-09-02 Thread qemu
The Buildbot has detected a new failure on builder block_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_x86_64_debian_6_0/builds/19 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build

Re: [Qemu-devel] [PATCH 3/5] tcg: add tcg_enabled() and stop compiling translate.o when TCG is disabled

2011-09-02 Thread Peter Maydell
On 2 September 2011 22:48, Anthony Liguori wrote: > diff --git a/translate-all.c b/translate-all.c > index 041c108..ecb035a 100644 > --- a/translate-all.c > +++ b/translate-all.c > @@ -67,7 +67,9 @@ int cpu_gen_code(CPUState *env, TranslationBlock *tb, int > *gen_code_size_ptr) >  #endif >     tc

Re: [Qemu-devel] [PATCH 5/5] tcg: don't build cpu-exec.o, op_helper.o, or fpu/softloat.o when TCG disabled

2011-09-02 Thread Peter Maydell
On 2 September 2011 22:48, Anthony Liguori wrote: > diff --git a/target-i386/helper.c b/target-i386/helper.c > index 5df40d4..793e467 100644 > --- a/target-i386/helper.c > +++ b/target-i386/helper.c > @@ -32,6 +32,24 @@ > >  //#define DEBUG_MMU > > +void cpu_get_fp80(uint64_t *pmant, uint16_t *pe

[Qemu-devel] [PATCH 5/5] tcg: don't build cpu-exec.o, op_helper.o, or fpu/softloat.o when TCG disabled

2011-09-02 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- Makefile.target |8 +--- cpu-exec.c | 19 --- cpus.c | 11 ++- exec.c | 29 ++--- softmmu_template.h | 14 ++ target-i386/help

[Qemu-devel] [PATCH 3/5] tcg: add tcg_enabled() and stop compiling translate.o when TCG is disabled

2011-09-02 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- Makefile.target |3 ++- cpu-all.h |6 ++ exec.c |2 +- qemu-common.h |2 +- translate-all.c | 12 +--- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Makefile.target b/Makefile.target index 0787758.

[Qemu-devel] [RFC PATCH 0/5] Add configure flag to disable TCG

2011-09-02 Thread Anthony Liguori
Hi, There have been a few attempts in the past to allow TCG to be disabled at build time. Recently, Alex made the suggestion that we could do it by using the same trick that we used to introduce kvm support. That involves introducing a tcg_enabled() macro that will be (0) if TCG is disabled in t

[Qemu-devel] [PATCH 2/5] vl: don't expose TCG as a supported accelerator if TCG is disabled

2011-09-02 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- arch_init.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch_init.c b/arch_init.c index 567ab32..5b37f8d 100644 --- a/arch_init.c +++ b/arch_init.c @@ -711,7 +711,11 @@ int audio_available(void) int tcg_available(void) { +#if

[Qemu-devel] [PATCH 4/5] tcg: don't build tcg/tcg.o, tcg/optimize.o, or translate-all.o when TCG disabled

2011-09-02 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- Makefile.target |6 +++--- exec.c | 44 +--- target-i386/op_helper.c |2 +- translate-all.c | 12 +++- 4 files changed, 36 insertions(+), 28 deletions(-) diff --git a/M

[Qemu-devel] [PATCH 1/5] configure: add --disable-tcg configure option

2011-09-02 Thread Anthony Liguori
This lets you build without TCG (KVM only). When this flag is passed to configure, it will automatically filter out the target list to only those that support KVM. I guess the same could be done for Xen but I'll let the Xen folks figure that one out :-) Signed-off-by: Anthony Liguori --- confi

Re: [Qemu-devel] [PATCH 13/15] qapi: introduce drive-change (v2)

2011-09-02 Thread Luiz Capitulino
On Fri, 2 Sep 2011 18:06:13 -0300 Luiz Capitulino wrote: > On Fri, 2 Sep 2011 12:34:56 -0500 > Anthony Liguori wrote: > > > A new QMP only command to change the blockdev associated with a block > > device. > > The semantics of change right now are just plain scary. This command > > introduc

Re: [Qemu-devel] [PATCH 13/15] qapi: introduce drive-change (v2)

2011-09-02 Thread Luiz Capitulino
On Fri, 2 Sep 2011 12:34:56 -0500 Anthony Liguori wrote: > A new QMP only command to change the blockdev associated with a block device. > The semantics of change right now are just plain scary. This command > introduces > sane semantics. For more details, see the documentation in the schema

[Qemu-devel] [PATCH] Allow overriding the location of Samba's smbd.

2011-09-02 Thread Brad
Allow overriding the location of Samba's smbd. Pretty much every OS I look at has some means of changing this path (patching) so lets just make it easier for OS developers creating packages and/or end users to override the location. Signed-off-by: Brad Smith --- configure |9

Re: [Qemu-devel] [PATCH 12/15] qapi: add change-vnc-listen (v2)

2011-09-02 Thread Luiz Capitulino
On Fri, 2 Sep 2011 12:34:55 -0500 Anthony Liguori wrote: > New QMP only command to change the VNC server's listening address. > > Signed-off-by: Anthony Liguori > --- > v1 -> v2 > - Enhanced docs (Luiz) > --- > qapi-schema.json | 15 +++ > qmp-commands.hx |8 > qm

Re: [Qemu-devel] [PATCH 04/15] qapi: use middle mode in QMP server (v2)

2011-09-02 Thread Luiz Capitulino
On Fri, 2 Sep 2011 12:34:47 -0500 Anthony Liguori wrote: > Use the new middle mode within the existing QMP server. > > Signed-off-by: Anthony Liguori > --- > v1 -> v2 > - fixed some of the generated header dependencies > --- > Makefile | 12 > Makefile.objs|2 +

[Qemu-devel] [Bug 839790] Re: -usbdevice tablet broken on win XP client

2011-09-02 Thread Javier Vasquez
Forgot to mention, I'm using linux 3.0.4, but the problem also is present on all 3.0.* kernels: % pacman -Ss linux | 'grep' core ... core/linux 3.0.4-1 (base) [installed] And the kvm module used is the intel one: % lsmod | 'grep' kvm kvm_intel 53373 3 kvm 328912

Re: [Qemu-devel] [Spice-devel] [PATCH] server: don't call reds_stream_free from worker thread context

2011-09-02 Thread Alon Levy
On Fri, Sep 02, 2011 at 05:19:54PM +0200, Gerd Hoffmann wrote: > reds_stream_free() may call the channel_event callback which is not > supposed to be callsed from worker thread context. This patch moves > the reds_stream_free call for the display channel from the worker to > the dispatcher to fix

[Qemu-devel] [PATCH 02/15] qerror: add qerror_report_err() (v2)

2011-09-02 Thread Anthony Liguori
This provides a bridge between Error (new error mechanism) and QError (old error mechanism). Errors can be propagated whereas QError cannot. The minor evilness avoids layering violations. Since QError should go away RSN, it seems like a reasonable hack. Signed-off-by: Anthony Liguori --- v1 ->

[Qemu-devel] [PATCH 06/15] block: add unsafe_probe

2011-09-02 Thread Anthony Liguori
Mark formats that cannot be probed with 100% reliability (just raw). This is necessary to implement change-blockdev. Signed-off-by: Anthony Liguori --- block/raw.c |2 ++ block_int.h |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/block/raw.c b/block/raw.c index 55

[Qemu-devel] [PATCH 15/15] vnc: don't demote authentication protocol when disabling login

2011-09-02 Thread Anthony Liguori
Currently when disabling login in VNC, the password is cleared out and the authentication protocol is forced to AUTH_VNC. If you're using a stronger authentication protocol, this has the effect of downgrading your security protocol. Fix this by only changing the authentication protocol if the cur

[Qemu-devel] [PATCH 04/15] qapi: use middle mode in QMP server (v2)

2011-09-02 Thread Anthony Liguori
Use the new middle mode within the existing QMP server. Signed-off-by: Anthony Liguori --- v1 -> v2 - fixed some of the generated header dependencies --- Makefile | 12 Makefile.objs|2 ++ Makefile.target |6 +++--- monitor.c| 11 --- qapi-s

[Qemu-devel] [PATCH 11/15] qapi: add change-vnc-password (v2)

2011-09-02 Thread Anthony Liguori
This is a new QMP only command that only changes the VNC password. Signed-off-by: Anthony Liguori --- v1 -> v2 - fix schema documentation --- qapi-schema.json | 13 + qmp-commands.hx |8 qmp.c| 11 ++- 3 files changed, 31 insertions(+), 1 deleti

[Qemu-devel] [PATCH 09/15] qapi: convert eject (qmp and hmp) to QAPI

2011-09-02 Thread Anthony Liguori
N.B. This temporarily changes the error semantics of eject. Errors are not stable in QMP so this is not technically a breakage. The last patch restores the previous error semantics. Signed-off-by: Anthony Liguori --- blockdev.c | 22 +++--- blockdev.h |1 - hm

[Qemu-devel] [PATCH 05/15] qapi: convert query-name

2011-09-02 Thread Anthony Liguori
A simple example conversion 'info name'. This also adds the new files for QMP and HMP. Signed-off-by: Anthony Liguori --- Makefile.objs|1 + hmp.c| 26 ++ hmp.h| 22 ++ monitor.c| 27 +-

[Qemu-devel] [PATCH 07/15] monitor: expose readline state

2011-09-02 Thread Anthony Liguori
HMP is now implemented in terms of QMP. The monitor has a bunch of logic to deal with HMP right now like readline support. Export it from the monitor so we can consume it in hmp.c. In short time, hmp.c will take over all of the readline bits. Signed-off-by: Anthony Liguori --- monitor.c | 1

[Qemu-devel] [Bug 839790] [NEW] -usbdevice tablet broken on win XP client

2011-09-02 Thread Javier Vasquez
Public bug reported: I'm using the qemu-kvm package from arch (not the qemu package), and on prior versions of qemu-kvm I was able to use -usbdevide tablet without problems. The absolute mouse position is great... With current version of qemu-kvm, when I use -usbdevice tablet, I got no mouse at

Re: [Qemu-devel] softfloat breaks cocoa.m

2011-09-02 Thread Andreas Färber
Am 02.09.2011 um 18:38 schrieb Peter Maydell: 2011/8/28 Peter Maydell : On 28 August 2011 14:02, Alexander Graf wrote: There are two ways we can fix the naming clash here: (1) change int16 -> int_fast16_t. This was argued against because it means that the type might have a different width dep

[Qemu-devel] [PATCH 03/15] qapi: add code generation support for middle mode

2011-09-02 Thread Anthony Liguori
To get the ball rolling merging QAPI, this patch introduces a "middle mode" to the code generator. In middle mode, the code generator generates marshalling functions that are compatible with the current QMP server. We absolutely need to replace the current QMP server in order to support proper as

[Qemu-devel] [PATCH 08/15] qerror: add additional parameter to QERR_DEVICE_ENCRYPTED

2011-09-02 Thread Anthony Liguori
Changing an encrypted block device requires a flow of: 1) change device 2) receive error from change 3) block_passwd DeviceEncrypted receives the device name but with a block backend with multiple backing files, any one of the backing files could be encrypted. From a UI perspective, you have

[Qemu-devel] [PATCH 10/15] qapi: convert block_passwd and add set-blockdev-password

2011-09-02 Thread Anthony Liguori
block_passwd is unfortunately named so while converting block_passwd to QAPI, introduce a more properly named alias. Signed-off-by: Anthony Liguori --- blockdev.c | 29 +++-- hmp-commands.hx |2 +- hmp.c| 12 hmp.h|1

[Qemu-devel] [PATCH 12/15] qapi: add change-vnc-listen (v2)

2011-09-02 Thread Anthony Liguori
New QMP only command to change the VNC server's listening address. Signed-off-by: Anthony Liguori --- v1 -> v2 - Enhanced docs (Luiz) --- qapi-schema.json | 15 +++ qmp-commands.hx |8 qmp.c|7 +++ 3 files changed, 30 insertions(+), 0 deletions(-)

Re: [Qemu-devel] [PATCH 3/6] QMP: Reserve namespace for complex object classes

2011-09-02 Thread Anthony Liguori
On 09/02/2011 12:23 PM, Luiz Capitulino wrote: On Fri, 26 Aug 2011 16:48:13 +0200 Jan Kiszka wrote: This reserves JSON objects that contain the key '__class__' for QMP-specific complex objects. First user will be the buffer class. BTW, we need to teach QAPI how handle these types. QAPI alre

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-09-02 Thread Scott Wood
On 09/02/2011 10:57 AM, Michael S. Tsirkin wrote: > On Thu, Sep 01, 2011 at 03:26:01PM -0500, Scott Wood wrote: >> On 09/01/2011 03:00 PM, Michael S. Tsirkin wrote: >>> That's a very rich interface, and easy to get wrong. >>> AFAIK the only reason vfio uses read/write for PCI was to avoid inventing

Re: [Qemu-devel] [PATCH 3/6] QMP: Reserve namespace for complex object classes

2011-09-02 Thread Jan Kiszka
On 2011-09-02 19:23, Luiz Capitulino wrote: > On Fri, 26 Aug 2011 16:48:13 +0200 > Jan Kiszka wrote: > >> This reserves JSON objects that contain the key '__class__' for QMP-specific >> complex objects. First user will be the buffer class. >> >> CC: Luiz Capitulino >> Signed-off-by: Jan Kiszka

[Qemu-devel] [PATCH 14/15] qapi: convert change (v2)

2011-09-02 Thread Anthony Liguori
Convert the change command to QAPI and document all of its gloriousness. Signed-off-by: Anthony Liguori --- v1 -> v2 - Fix docs (Luiz) fix hmp change command --- blockdev.c | 27 -- blockdev.h |6 +++- hmp-commands.hx |3 +- hmp.c| 59 ++

[Qemu-devel] [PATCH 13/15] qapi: introduce drive-change (v2)

2011-09-02 Thread Anthony Liguori
A new QMP only command to change the blockdev associated with a block device. The semantics of change right now are just plain scary. This command introduces sane semantics. For more details, see the documentation in the schema file. Signed-off-by: Anthony Liguori --- v1 -> v2 - Rename command

[Qemu-devel] [PATCH 00/15] Convert commands to QAPI (batch 1) (v2)

2011-09-02 Thread Anthony Liguori
This is my attempt to jump-start the QAPI switch over. All of the hard work is already done in my qapi branch, we just need to start merging stuff. To simplify the merge process, I've introduced a new mode to the code generator that lets us do conversions without using the new QMP server. Once t

[Qemu-devel] [PATCH 01/15] error: let error_is_type take a NULL error

2011-09-02 Thread Anthony Liguori
Reported-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- error.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/error.c b/error.c index b802752..68c0039 100644 --- a/error.c +++ b/error.c @@ -97,6 +97,10 @@ bool error_is_type(Error *err, const char *fmt)

Re: [Qemu-devel] [PATCH 0/6] Device state visualization reloaded

2011-09-02 Thread Luiz Capitulino
On Fri, 26 Aug 2011 16:48:10 +0200 Jan Kiszka wrote: > More than one year ago I posted some patches to add a monitor command > callend device_show. The purpose of that command is to dump the state of > some qdev device based on its vmstate. > > To improve the usability of that interface, the pre

Re: [Qemu-devel] [PATCH 3/6] QMP: Reserve namespace for complex object classes

2011-09-02 Thread Luiz Capitulino
On Fri, 26 Aug 2011 16:48:13 +0200 Jan Kiszka wrote: > This reserves JSON objects that contain the key '__class__' for QMP-specific > complex objects. First user will be the buffer class. > > CC: Luiz Capitulino > Signed-off-by: Jan Kiszka > --- > QMP/qmp-spec.txt | 16 +--- > 1

Re: [Qemu-devel] [PATCH 2/6] Add base64 encoder/decoder

2011-09-02 Thread Luiz Capitulino
On Fri, 26 Aug 2011 20:02:37 +0200 Jan Kiszka wrote: > On 2011-08-26 17:47, Jan Kiszka wrote: > > On 2011-08-26 17:23, Jan Kiszka wrote: > >> On 2011-08-26 17:21, Peter Maydell wrote: > >>> On 26 August 2011 15:48, Jan Kiszka wrote: > Will be used by QBuffer. > >>> > >>> Is it possible to u

Re: [Qemu-devel] [PATCH 03/14] qapi: use middle mode in QMP server

2011-09-02 Thread Luiz Capitulino
On Fri, 02 Sep 2011 11:45:28 -0500 Anthony Liguori wrote: > On 09/02/2011 11:31 AM, Michael Roth wrote: > > >>> This ended up being a bit harder than I initially thought so I'd prefer > >>> to delay this to another series so we can start converting commands to > >>> QAPI ASAP. > >> > >> Fine wit

Re: [Qemu-devel] emulated ARM performance vs real processor ?

2011-09-02 Thread M P
On Fri, Sep 2, 2011 at 5:04 PM, Julien Heyman wrote: > Thanks Dave. > I use system emulation, and my main concern is "just" to know that the > actual board will run faster than the emulation. So based on your example, > and even though my target board (mini2440) is nowhere as fast as a Panda > boa

Re: [Qemu-devel] [PATCH v2 41/45] block: New bdrv_set_buffer_alignment()

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 02.09.2011 17:30, schrieb Markus Armbruster: >> Kevin Wolf writes: >> >>> Am 03.08.2011 15:08, schrieb Markus Armbruster: Device models should be able to set it without an unclean include of block_int.h. Signed-off-by: Markus Armbruster ---

Re: [Qemu-devel] [PATCH 03/14] qapi: use middle mode in QMP server

2011-09-02 Thread Anthony Liguori
On 09/02/2011 11:31 AM, Michael Roth wrote: This ended up being a bit harder than I initially thought so I'd prefer to delay this to another series so we can start converting commands to QAPI ASAP. Fine with me. Same. Curious what the complications are though, I wouldn't mind looking at it.

Re: [Qemu-devel] [PATCH v2 27/45] scsi-disk: Preserve tray state on migration

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 02.09.2011 17:35, schrieb Markus Armbruster: >> Kevin Wolf writes: >> >>> Am 03.08.2011 15:08, schrieb Markus Armbruster: Breaks migration of qdevs "scsi-cd" and legacy "scsi-disk" to older versions. We normally use subsections to avoid that. Not possible >>>

Re: [Qemu-devel] [PATCH] Display sector count in 'info block' output

2011-09-02 Thread Daniel P. Berrange
On Fri, Sep 02, 2011 at 04:37:24PM +0100, Stefan Hajnoczi wrote: > On Fri, Sep 2, 2011 at 4:01 PM, Daniel P. Berrange wrote: > > From: "Daniel P. Berrange" > > > > To aid in knowing whether a 'block_resize' was succesful, display > > the sector count in the 'info block' output > > > > Signed-off-

Re: [Qemu-devel] softfloat breaks cocoa.m

2011-09-02 Thread Peter Maydell
2011/8/28 Peter Maydell : > On 28 August 2011 14:02, Alexander Graf wrote: > There are two ways we can fix the naming clash here: > > (1) change int16 -> int_fast16_t. This was argued against because > it means that the type might have a different width depending on > the host system, which means

[Qemu-devel] [PATCH v2] Display logical disk size in 'info block' output

2011-09-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" To aid in knowing whether a 'block_resize' was succesful, display the logical disk size in bytes, in the 'info block' output In v2: - Replace sectors with bytes Signed-off-by: Daniel P. Berrange --- block.c |6 -- qmp-commands.hx |1 + 2 files

Re: [Qemu-devel] [PATCH 08/14] qapi: convert eject (qmp and hmp) to QAPI

2011-09-02 Thread Kevin Wolf
Am 02.09.2011 18:05, schrieb Anthony Liguori: > On 08/25/2011 08:52 AM, Kevin Wolf wrote: >> Am 25.08.2011 15:40, schrieb Anthony Liguori: >>> On 08/25/2011 07:19 AM, Kevin Wolf wrote: Am 24.08.2011 20:43, schrieb Anthony Liguori: > Signed-off-by: Anthony Liguori > --- >blockde

Re: [Qemu-devel] [PATCH 03/14] qapi: use middle mode in QMP server

2011-09-02 Thread Michael Roth
On 09/02/2011 11:09 AM, Luiz Capitulino wrote: On Fri, 02 Sep 2011 11:00:50 -0500 Anthony Liguori wrote: On 08/25/2011 11:24 AM, Michael Roth wrote: On 08/24/2011 01:42 PM, Anthony Liguori wrote: Use the new middle mode within the existing QMP server. Signed-off-by: Anthony Liguori --- Make

Re: [Qemu-devel] [PATCH v2 41/45] block: New bdrv_set_buffer_alignment()

2011-09-02 Thread Kevin Wolf
Am 02.09.2011 17:30, schrieb Markus Armbruster: > Kevin Wolf writes: > >> Am 03.08.2011 15:08, schrieb Markus Armbruster: >>> Device models should be able to set it without an unclean include of >>> block_int.h. >>> >>> Signed-off-by: Markus Armbruster >>> --- >>> block.c |6 --

Re: [Qemu-devel] [PATCH v2 37/45] block: Show whether the guest ejected the medium in info block

2011-09-02 Thread Kevin Wolf
Am 02.09.2011 17:29, schrieb Markus Armbruster: > Kevin Wolf writes: > >> Am 03.08.2011 15:08, schrieb Markus Armbruster: >>> Need to ask the device, so this requires new BlockDevOps member >>> is_medium_ejected(). >>> >>> Signed-off-by: Markus Armbruster >> >> I find the name confusing. "medium

Re: [Qemu-devel] [PATCH v2 27/45] scsi-disk: Preserve tray state on migration

2011-09-02 Thread Kevin Wolf
Am 02.09.2011 17:35, schrieb Markus Armbruster: > Kevin Wolf writes: > >> Am 03.08.2011 15:08, schrieb Markus Armbruster: >>> Breaks migration of qdevs "scsi-cd" and legacy "scsi-disk" to older >>> versions. We normally use subsections to avoid that. Not possible >>> here, because we don't have

[Qemu-devel] [PATCH] Makefile: Remove 'tarbin' target

2011-09-02 Thread Peter Maydell
Remove the 'tarbin' target -- it isn't used as part of the official QEMU release process, and it's out of date (various new bios files were never added to its list of files). It's better not to provide it at all than to have a broken makefile target we never use or test. (Creating a tarball by jus

Re: [Qemu-devel] [PATCH 11/14] qapi: add change-vnc-listen

2011-09-02 Thread Anthony Liguori
On 08/25/2011 08:32 AM, Luiz Capitulino wrote: On Wed, 24 Aug 2011 13:43:06 -0500 Anthony Liguori wrote: New QMP only command to change the VNC server's listening address. Signed-off-by: Anthony Liguori --- qapi-schema.json | 14 ++ qmp-commands.hx |8 qmp.c

Re: [Qemu-devel] emulated ARM performance vs real processor ?

2011-09-02 Thread David Gilbert
On 2 September 2011 17:04, Julien Heyman wrote: > Thanks Dave. > I use system emulation, and my main concern is "just" to know that the > actual board will run faster than the emulation. So based on your example, > and even though my target board (mini2440) is nowhere as fast as a Panda > board, t

Re: [Qemu-devel] [PATCH 03/14] qapi: use middle mode in QMP server

2011-09-02 Thread Luiz Capitulino
On Fri, 02 Sep 2011 11:00:50 -0500 Anthony Liguori wrote: > On 08/25/2011 11:24 AM, Michael Roth wrote: > > On 08/24/2011 01:42 PM, Anthony Liguori wrote: > >> Use the new middle mode within the existing QMP server. > >> > >> Signed-off-by: Anthony Liguori > >> --- > >> Makefile | 11 +++

Re: [Qemu-devel] [PATCH 10/14] qapi: add change-vnc-password

2011-09-02 Thread Anthony Liguori
On 08/25/2011 08:33 AM, Luiz Capitulino wrote: On Wed, 24 Aug 2011 13:43:05 -0500 Anthony Liguori wrote: This is a new QMP only command that only changes the VNC password. Isn't this useful in HMP too? I think the right design goal for HMP is to minimize the number of commands since a hum

Re: [Qemu-devel] [PATCH 08/14] qapi: convert eject (qmp and hmp) to QAPI

2011-09-02 Thread Anthony Liguori
On 08/25/2011 08:52 AM, Kevin Wolf wrote: Am 25.08.2011 15:40, schrieb Anthony Liguori: On 08/25/2011 07:19 AM, Kevin Wolf wrote: Am 24.08.2011 20:43, schrieb Anthony Liguori: Signed-off-by: Anthony Liguori --- blockdev.c | 22 +++--- blockdev.h |1 - h

Re: [Qemu-devel] emulated ARM performance vs real processor ?

2011-09-02 Thread Julien Heyman
Thanks Dave. I use system emulation, and my main concern is "just" to know that the actual board will run faster than the emulation. So based on your example, and even though my target board (mini2440) is nowhere as fast as a Panda board, this should be the case by a comfortable margin. Now, as I a

Re: [Qemu-devel] [PATCH] virtio: Make memory barriers be memory barriers

2011-09-02 Thread Michael S. Tsirkin
On Fri, Sep 02, 2011 at 08:11:29AM +0200, Paolo Bonzini wrote: > On 09/02/2011 02:11 AM, David Gibson wrote: > >Why not limit the change to ppc then? > >>> > >>> Because the bug is masked by the x86 memory model, but it is still > >>> there even there conceptually. It is not really true th

Re: [Qemu-devel] [PATCH 03/14] qapi: use middle mode in QMP server

2011-09-02 Thread Anthony Liguori
On 08/25/2011 11:24 AM, Michael Roth wrote: On 08/24/2011 01:42 PM, Anthony Liguori wrote: Use the new middle mode within the existing QMP server. Signed-off-by: Anthony Liguori --- Makefile | 11 +++ Makefile.objs | 2 ++ Makefile.target | 6 +++--- monitor.c | 11 --- qapi-schema.

Re: [Qemu-devel] [PATCH 01/14] qerror: add qerror_report_err()

2011-09-02 Thread Anthony Liguori
On 08/24/2011 03:15 PM, Luiz Capitulino wrote: On Wed, 24 Aug 2011 13:42:56 -0500 Anthony Liguori wrote: This provides a bridge between Error (new error mechanism) and QError (old error mechanism). Errors can be propagated whereas QError cannot. The minor evilness avoids layering violations.

Re: [Qemu-devel] RFC: vfio / device assignment -- layout of device fd files

2011-09-02 Thread Michael S. Tsirkin
On Thu, Sep 01, 2011 at 03:26:01PM -0500, Scott Wood wrote: > On 09/01/2011 03:00 PM, Michael S. Tsirkin wrote: > > That's a very rich interface, and easy to get wrong. > > AFAIK the only reason vfio uses read/write for PCI was to avoid inventing > > a custom interface. But if you do, it looks like

Re: [Qemu-devel] [PATCH v2 26/45] ide/atapi: Preserve tray state on migration

2011-09-02 Thread Kevin Wolf
Am 02.09.2011 17:20, schrieb Markus Armbruster: > Kevin Wolf writes: > >> Am 03.08.2011 15:08, schrieb Markus Armbruster: >>> Use a subsection, so that migration to older version still works, >>> provided the tray is closed and unlocked. >>> >>> Signed-off-by: Markus Armbruster >> >> Ah, here is

Re: [Qemu-devel] [PATCH] virtio: Make memory barriers be memory barriers

2011-09-02 Thread Michael S. Tsirkin
On Thu, Sep 01, 2011 at 04:31:09PM -0400, Paolo Bonzini wrote: > > > > Why not limit the change to ppc then? > > > > > > Because the bug is masked by the x86 memory model, but it is still > > > there even there conceptually. It is not really true that x86 does > > > not need memory barriers, though

[Qemu-devel] I/O thread enablement in HEAD

2011-09-02 Thread Anthony Liguori
Hi, As of commit 12d4536f7d911b6d87a766ad7300482ea663cea2, the I/O thread is now enabled by default. I think we've done about as much testing and preparation as we can. If you run into any odd regressions, you should be able to easily revert this commit still. We can hold off making signif

Re: [Qemu-devel] [PATCH] rename qemu_malloc and related to glib names for coherence

2011-09-02 Thread Anthony Liguori
On 08/31/2011 02:25 AM, Frediano Ziglio wrote: Signed-off-by: Frediano Ziglio Applied. Thanks. Regards, Anthony Liguori --- trace-events | 10 +- vl.c |6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/trace-events b/trace-events index dc300

Re: [Qemu-devel] [PATCH] main: force enabling of I/O thread

2011-09-02 Thread Anthony Liguori
On 09/02/2011 09:42 AM, Paolo Bonzini wrote: On 09/02/2011 04:31 PM, Anthony Liguori wrote: For a platform to be supported, it needs to be actively maintained and fixed. If there aren't enough folks testing/fixing Darwin/ppc64, then it's not a platform we can reasonable support :-/ I agree unf

Re: [Qemu-devel] [PATCH] Rename qemu -> qemu-system-i386

2011-09-02 Thread Anthony Liguori
On 08/29/2011 09:55 AM, Anthony Liguori wrote: This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0. Signed-off-by: Anthony Liguori Applied. Regards, Anthony Liguori --- Makefile|5 ++---

Re: [Qemu-devel] [PATCH] Rename qemu -> qemu-system-i386

2011-09-02 Thread Anthony Liguori
On 08/30/2011 02:24 PM, Blue Swirl wrote: On Mon, Aug 29, 2011 at 2:55 PM, Anthony Liguori wrote: This has been discussed before in the past. The special casing really makes no sense anymore. This seems like a good change to make for 1.0. Signed-off-by: Anthony Liguori --- Makefile

Re: [Qemu-devel] [PATCH] Fix install(1) usage to be compatible with OpenBSD's install(1).

2011-09-02 Thread Anthony Liguori
On 08/28/2011 03:01 AM, Brad wrote: Fix install(1) usage to be compatible with OpenBSD's install(1). When creating a directory via the -d flag the -p flag cannot be used at the same time. Also in the context of installing QEMU it doesn't make sense to use the -p flag anyway so use the [default]

Re: [Qemu-devel] [PATCH] monitor: Protect outbuf from concurrent access

2011-09-02 Thread Anthony Liguori
On 09/02/2011 10:31 AM, Paolo Bonzini wrote: On 09/02/2011 05:18 PM, Gerd Hoffmann wrote: Can you just use a bottom half to defer this work to the I/O thread? Bottom half scheduling has to be signal safe which means it will also be thread safe. Not that straight forward as I would have to pa

Re: [Qemu-devel] [PATCH] Display sector count in 'info block' output

2011-09-02 Thread Stefan Hajnoczi
On Fri, Sep 2, 2011 at 4:01 PM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > To aid in knowing whether a 'block_resize' was succesful, display > the sector count in the 'info block' output > > Signed-off-by: Daniel P. Berrange > --- >  block.c         |    6 -- >  qmp-commands.

Re: [Qemu-devel] [PATCH v2 27/45] scsi-disk: Preserve tray state on migration

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> Breaks migration of qdevs "scsi-cd" and legacy "scsi-disk" to older >> versions. We normally use subsections to avoid that. Not possible >> here, because we don't have a section to begin with. Too bad. >> >> Signed-off-by

Re: [Qemu-devel] [PATCH v2 44/45] block: New change_media_cb() parameter load

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> To let device models distinguish between eject and load. >> >> Signed-off-by: Markus Armbruster >> --- >> block.c| 12 ++-- >> block.h|3 ++- >> hw/fdc.c |2 +- >> hw/ide/core.c |

Re: [Qemu-devel] [PATCH v2 42/45] block: Reset buffer alignment on detach

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> BlockDriverState member buffer_alignment is initially 512. The device >> model may set them, with bdrv_set_buffer_alignment(). If the device >> model gets detached (hot unplug), the device's alignment is left >> behind. On

Re: [Qemu-devel] [PATCH] monitor: Protect outbuf from concurrent access

2011-09-02 Thread Paolo Bonzini
On 09/02/2011 05:18 PM, Gerd Hoffmann wrote: Can you just use a bottom half to defer this work to the I/O thread? Bottom half scheduling has to be signal safe which means it will also be thread safe. Not that straight forward as I would have to pass arguments to the bottom half. Can you add

Re: [Qemu-devel] [PULL 00/15] Tracing patches

2011-09-02 Thread Lluís Vilanova
Anthony Liguori writes: > On 09/02/2011 04:39 AM, Stefan Hajnoczi wrote: >> On Thu, Sep 1, 2011 at 8:08 PM, Anthony Liguori wrote: >>> On 09/01/2011 03:06 AM, Stefan Hajnoczi wrote: The following changes since commit f0fb8b7180fdcf536ea635a0720e1496110ecb3b: Merge branc

Re: [Qemu-devel] [PATCH v2 41/45] block: New bdrv_set_buffer_alignment()

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> Device models should be able to set it without an unclean include of >> block_int.h. >> >> Signed-off-by: Markus Armbruster >> --- >> block.c |6 -- >> block.h |1 + >> hw/ide/core.c |2 +-

Re: [Qemu-devel] [PATCH v2 37/45] block: Show whether the guest ejected the medium in info block

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> Need to ask the device, so this requires new BlockDevOps member >> is_medium_ejected(). >> >> Signed-off-by: Markus Armbruster > > I find the name confusing. "medium is ejected" seems to mean "tray is > open". It isn't obvi

Re: [Qemu-devel] [PATCH v2 26/45] ide/atapi: Preserve tray state on migration

2011-09-02 Thread Paolo Bonzini
On 09/02/2011 05:22 PM, Markus Armbruster wrote: >> On another note, have our subsections been fixed meanwhile? If not, >> increasing the version number instead might be the right choice. Paolo? > > No, they haven't, but there's hope they will before 1.0. Use a subsection here anyway? Or sh

Re: [Qemu-devel] [PATCH v2 26/45] ide/atapi: Preserve tray state on migration

2011-09-02 Thread Markus Armbruster
Paolo Bonzini writes: > On 09/02/2011 02:20 PM, Kevin Wolf wrote: >> Ah, here is the migration part. The state wasn't migrated before, so not >> doing it in patch 10 doesn't break anything. I would still prefer to add >> migration in the same patch that adds the fields. >> >> You could just move

Re: [Qemu-devel] [PATCH v2 26/45] ide/atapi: Preserve tray state on migration

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> Use a subsection, so that migration to older version still works, >> provided the tray is closed and unlocked. >> >> Signed-off-by: Markus Armbruster > > Ah, here is the migration part. The state wasn't migrated before, so

Re: [Qemu-devel] [PATCH] monitor: Protect outbuf from concurrent access

2011-09-02 Thread Anthony Liguori
On 09/02/2011 10:18 AM, Gerd Hoffmann wrote: Hi, A patch like the attached (warning: untested) should do as quick&dirty fix for stable. But IMO we really should fix spice instead. I agree. I'm not sure I like the idea of still calling QEMU code without holding the mutex (even the QObject code

[Qemu-devel] [PATCH] server: don't call reds_stream_free from worker thread context

2011-09-02 Thread Gerd Hoffmann
reds_stream_free() may call the channel_event callback which is not supposed to be callsed from worker thread context. This patch moves the reds_stream_free call for the display channel from the worker to the dispatcher to fix this issue. [ Note: not tested yet, against 0.8 branch, sending out fo

Re: [Qemu-devel] [PATCH v2 22/45] ide/atapi: Avoid physical/virtual tray state mismatch

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:08, schrieb Markus Armbruster: >> When ide-cd is backed by a physical drive, we want the physical tray >> match the virtual one. To that end, we call bdrv_eject() on guest's >> load/eject, and bdrv_lock_medium() on guest's prevent/allow removal. >> But we do

Re: [Qemu-devel] [PATCH] monitor: Protect outbuf from concurrent access

2011-09-02 Thread Gerd Hoffmann
Hi, A patch like the attached (warning: untested) should do as quick&dirty fix for stable. But IMO we really should fix spice instead. I agree. I'm not sure I like the idea of still calling QEMU code without holding the mutex (even the QObject code). I though just creating the objects isn'

[Qemu-devel] [PATCH] Display sector count in 'info block' output

2011-09-02 Thread Daniel P. Berrange
From: "Daniel P. Berrange" To aid in knowing whether a 'block_resize' was succesful, display the sector count in the 'info block' output Signed-off-by: Daniel P. Berrange --- block.c |6 -- qmp-commands.hx |1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a

Re: [Qemu-devel] QEMU online guest disk resize wrt host block devices

2011-09-02 Thread Daniel P. Berrange
On Thu, Sep 01, 2011 at 05:55:43PM +0200, Christoph Hellwig wrote: > Please try the attached (untested) patch: Yes, this patch worked succesfully with the following test case: $ dd if=/dev/zero of=loop.img bs=1M seek=100 count=0 $ losetup -f loop.img $ ./x86_64-softmmu/qemu-system-x86_64 -

Re: [Qemu-devel] [PULL 00/15] Tracing patches

2011-09-02 Thread Anthony Liguori
On 09/02/2011 09:54 AM, Anthony Liguori wrote: On 09/02/2011 04:39 AM, Stefan Hajnoczi wrote: On Thu, Sep 1, 2011 at 8:08 PM, Anthony Liguori wrote: On 09/01/2011 03:06 AM, Stefan Hajnoczi wrote: The following changes since commit f0fb8b7180fdcf536ea635a0720e1496110ecb3b: Merge branch 'omap-

Re: [Qemu-devel] [PATCH v2 19/45] block: Rename bdrv_set_locked() to bdrv_lock_medium()

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:07, schrieb Markus Armbruster: >> Signed-off-by: Markus Armbruster >> --- >> block.c |8 >> block.h |2 +- >> block/raw-posix.c |8 >> block/raw.c |6 +++--- >> block_int.h |2 +- >> hw/i

Re: [Qemu-devel] [PULL 00/15] Tracing patches

2011-09-02 Thread Anthony Liguori
On 09/02/2011 04:39 AM, Stefan Hajnoczi wrote: On Thu, Sep 1, 2011 at 8:08 PM, Anthony Liguori wrote: On 09/01/2011 03:06 AM, Stefan Hajnoczi wrote: The following changes since commit f0fb8b7180fdcf536ea635a0720e1496110ecb3b: Merge branch 'omap-for-upstream' of git://git.linaro.org/people

Re: [Qemu-devel] [PATCH v2 15/45] ide/atapi: Track tray locked state

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:07, schrieb Markus Armbruster: >> We already track it in BlockDriverState. Just like tray open/close >> state, we should track it in the device models instead, because it's >> device state. >> >> Signed-off-by: Markus Armbruster >> --- >> hw/ide/atapi.c

Re: [Qemu-devel] [PATCH] build: sort objects to remove duplicates for link

2011-09-02 Thread Anthony Liguori
On 09/02/2011 03:42 AM, Stefan Hajnoczi wrote: 2011/9/1 Michael Roth: On 09/01/2011 01:54 PM, Anthony Liguori wrote: On 08/25/2011 03:18 AM, Stefan Hajnoczi wrote: Avoid duplicate object files during the link. There are legitimate cases where a link command-line would include duplicate objec

Re: [Qemu-devel] [PATCH v2 11/45] scsi-disk: Factor out scsi_disk_emulate_start_stop()

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:07, schrieb Markus Armbruster: >> Signed-off-by: Markus Armbruster >> --- >> hw/scsi-disk.c | 17 + >> 1 files changed, 13 insertions(+), 4 deletions(-) >> >> diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c >> index fa198f9..d549cb7 100644 >

Re: [Qemu-devel] [PATCH v2 10/45] ide/atapi: Track tray open/close state

2011-09-02 Thread Markus Armbruster
Kevin Wolf writes: > Am 03.08.2011 15:07, schrieb Markus Armbruster: >> We already track it in BlockDriverState since commit 4be9762a. As >> discussed in that commit's message, we should track it in the device >> device models instead, because it's device state. >> >> Signed-off-by: Markus Armb

  1   2   >