[Qemu-devel] [PATCH] pseries: Add device tree properties for VMX/VSX and DFP under kvm

2011-09-20 Thread David Gibson
Sufficiently recent PAPR specifications define properties "ibm,vmx" and "ibm,dfp" on the CPU node which advertise whether the VMX vector extensions (or the later VSX version) and/or the Decimal Floating Point operations from IBM's recent POWER CPUs are available. Currently we do not put these in t

[Qemu-devel] [PATCH] Probe PCI existence

2011-09-20 Thread Jan Kiszka
From: Jan Kiszka This prevents lockups when trying to allocate PCI resources on an ISA-only system like QEMU can emulate. Signed-off-by: Jan Kiszka --- src/pci.c | 14 +- src/pci.h |3 ++- src/pciinit.c |7 +-- 3 files changed, 20 insertions(+), 4 deletions(-)

Re: [Qemu-devel] [PATCH v8 3/4] block: add block timer and throttling algorithm

2011-09-20 Thread Zhi Yong Wu
On Wed, Sep 21, 2011 at 11:14 AM, Zhi Yong Wu wrote: > On Tue, Sep 20, 2011 at 8:34 PM, Marcelo Tosatti wrote: >> On Mon, Sep 19, 2011 at 05:55:41PM +0800, Zhi Yong Wu wrote: >>> On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti >>> wrote: >>> > On Tue, Sep 13, 2011 at 11:09:46AM +0800, Zhi Yong

Re: [Qemu-devel] [PATCH 1/2] softfloat: Use uint16 consistently

2011-09-20 Thread Gauresh Rane
I am still not able to compile this with these changes.

Re: [Qemu-devel] [PATCH v8 3/4] block: add block timer and throttling algorithm

2011-09-20 Thread Zhi Yong Wu
On Tue, Sep 20, 2011 at 8:34 PM, Marcelo Tosatti wrote: > On Mon, Sep 19, 2011 at 05:55:41PM +0800, Zhi Yong Wu wrote: >> On Wed, Sep 14, 2011 at 6:50 PM, Marcelo Tosatti wrote: >> > On Tue, Sep 13, 2011 at 11:09:46AM +0800, Zhi Yong Wu wrote: >> >> On Fri, Sep 9, 2011 at 10:44 PM, Marcelo Tosatt

[Qemu-devel] [PATCH v2] block: allow resizing of images residing on host devices

2011-09-20 Thread Christoph Hellwig
Allow to resize images that reside on host devices up to the available space. This allows to grow images after resizing the device manually or vice versa. Signed-off-by: Christoph Hellwig Index: qemu/block/raw-posix.c === --- qemu.

Re: [Qemu-devel] [PATCH] Revert "alpha-softmmu: Disable for the 0.15 release branch."

2011-09-20 Thread Edgar E. Iglesias
On Tue, Sep 20, 2011 at 03:36:24PM -0700, Richard Henderson wrote: > This reverts commit 46f08792bb4a69ab8aab897c174d82b006026140. > > This was not supposed to be applied to mainline. Yes, I've applied it thanks. Cheers

[Qemu-devel] buildbot failure in qemu on default_mingw32

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

[Qemu-devel] buildbot failure in qemu on default_openbsd_current

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

[Qemu-devel] buildbot failure in qemu on default_openbsd_4.9

2011-09-20 Thread qemu
The Buildbot has detected a new failure on builder default_openbsd_4.9 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_openbsd_4.9/builds/31 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_openbsd49 Bui

[Qemu-devel] [PATCH] Revert "alpha-softmmu: Disable for the 0.15 release branch."

2011-09-20 Thread Richard Henderson
This reverts commit 46f08792bb4a69ab8aab897c174d82b006026140. This was not supposed to be applied to mainline. Signed-off-by: Richard Henderson --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index ad924c4..414317a 100755 --- a/config

Re: [Qemu-devel] [PATCH] MAINTAINERS: update maintainer for target-arm and ARM devboards

2011-09-20 Thread Paul Brook
> > Add myself as co-maintainer alongside Paul Brook for the TCG ARM > > guest implementation (target-arm) and the ARM dev boards (integratorcp, > > realview, stellaris, versatilepb). > > > > Signed-off-by: Peter Maydell > > Acked-by: Anthony Liguori > > Paul, speak now or forever hold your pea

Re: [Qemu-devel] [PATCH] isapc: give system address space when pci is disabled

2011-09-20 Thread Hervé Poussineau
Jan Kiszka a écrit : On 2011-09-19 20:49, Hervé Poussineau wrote: Jan Kiszka a écrit : On 2011-09-18 18:04, Hervé Poussineau wrote: Signed-off-by: Hervé Poussineau --- hw/pc_piix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index da6

Re: [Qemu-devel] [PULL] pci fixes and cleanups

2011-09-20 Thread Anthony Liguori
On 09/20/2011 11:40 AM, Michael S. Tsirkin wrote: Pull from the temp tree at github. The following changes since commit 530889ff95659d8fea81eb556e5706387fdddfa7: sun4u: don't set up isa_mem_base (2011-09-18 12:00:19 +) Pulled. Thanks. Regards, Anthony Liguori are available in the

Re: [Qemu-devel] [PULL 00/20] Block patches

2011-09-20 Thread Anthony Liguori
On 09/20/2011 06:11 AM, Kevin Wolf wrote: The following changes since commit 530889ff95659d8fea81eb556e5706387fdddfa7: sun4u: don't set up isa_mem_base (2011-09-18 12:00:19 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Pulled. Thanks. Regar

Re: [Qemu-devel] [PULL] slirp fix

2011-09-20 Thread Anthony Liguori
On 09/15/2011 05:21 PM, Jan Kiszka wrote: The following changes since commit 44520db10b1b92f272348ab7028e7afc68ac3edf: Gdbstub: Fix back-trace on SPARC32 (2011-09-10 18:12:35 +) are available in the git repository at: git://git.kiszka.org/qemu.git queues/slirp Pulled. Thanks. Rega

Re: [Qemu-devel] [PULL 0/9]: QMP queue

2011-09-20 Thread Anthony Liguori
On 09/15/2011 03:05 PM, Luiz Capitulino wrote: Anthony, This is my latest pull of the RunState series with a build problem fixed and yet another rebase (solved automatically by git). The changes (since ef4f97cba2a354656b00eb8659bf61ab2321fa4e) are available in the following repository: Pulled

Re: [Qemu-devel] [libvirt] [PATCH] qemu: Fix shutdown regression

2011-09-20 Thread Anthony Liguori
On 09/20/2011 02:03 PM, Eric Blake wrote: On 09/20/2011 12:52 PM, Anthony Liguori wrote: On 09/20/2011 01:01 PM, Eric Blake wrote: On 09/20/2011 11:39 AM, Jiri Denemark wrote: The commit that prevents disk corruption on domain shutdown (96fc4784177ecb70357518fa863442455e45ad0e) causes regressi

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-20 Thread Richard Henderson
On 09/20/2011 12:19 PM, Alan Amaral wrote: > QEMU emulator version 0.14.50, Copyright (c) 2003-2008 Fabrice Bellard > You are correct, it's not hardcoded to 4. However, when it's allocated the > number of elements IS 4. Also, > there's a comment just above pci_set_irq which says: > > /* 0 <= i

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-20 Thread Jan Kiszka
On 2011-09-20 21:19, Alan Amaral wrote: > QEMU emulator version 0.14.50, Copyright (c) 2003-2008 Fabrice Bellard (That's an ambitious development version.) > > You are correct, it's not hardcoded to 4. However, when it's allocated the > number of elements IS 4. Also, > there's a comment just

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-20 Thread Alan Amaral
QEMU emulator version 0.14.50, Copyright (c) 2003-2008 Fabrice Bellard You are correct, it's not hardcoded to 4. However, when it's allocated the number of elements IS 4. Also, there's a comment just above pci_set_irq which says: /* 0 <= irq_num <= 3. level must be 0 or 1 */ static void pci_se

[Qemu-devel] [PATCH 2/2] trace: Add "vcpu_reset" event

2011-09-20 Thread Lluís Vilanova
Signals the reset of the state a vCPU (CPUState structure). Signed-off-by: Lluís Vilanova --- target-arm/helper.c |3 +++ target-cris/translate.c |3 +++ target-i386/helper.c |3 +++ target-lm32/helper.c |3 +++ target-m68k/helper.c |

[Qemu-devel] [PATCH 1/2] trace: Add "vcpu_init" event

2011-09-20 Thread Lluís Vilanova
Signals the creation of a new vCPU (CPUState structure). Signed-off-by: Lluís Vilanova --- cpus.c|1 + qemu-common.h |4 +++- trace-events |7 +++ 3 files changed, 11 insertions(+), 1 deletions(-) diff --git a/cpus.c b/cpus.c index 54c188c..ab699bb 100644 --- a/cpus.c +

[Qemu-devel] [PATCH] trace: Update docs to use example events that exist

2011-09-20 Thread Lluís Vilanova
The events 'qemu_malloc' and 'qemu_free' used in the examples no longer exist, so use 'qemu_vmalloc' and 'qemu_vfree' instead. Signed-off-by: Lluís Vilanova --- docs/tracing.txt | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/tracing.txt b/docs/tracin

Re: [Qemu-devel] [libvirt] [PATCH] qemu: Fix shutdown regression

2011-09-20 Thread Eric Blake
On 09/20/2011 12:52 PM, Anthony Liguori wrote: On 09/20/2011 01:01 PM, Eric Blake wrote: On 09/20/2011 11:39 AM, Jiri Denemark wrote: The commit that prevents disk corruption on domain shutdown (96fc4784177ecb70357518fa863442455e45ad0e) causes regression with QEMU 0.14.* and 0.15.* because of a

[Qemu-devel] [PATCH v2 2/6] Introduce qemu_cond_timedwait for POSIX

2011-09-20 Thread Jan Kiszka
On 2011-09-20 20:22, Paolo Bonzini wrote: > On 09/20/2011 06:53 PM, Jan Kiszka wrote: >> First user will be posix compat aio. >> >> Signed-off-by: Jan Kiszka > > I'm pretty sure the win32 version is not thread-safe, Yeah, I would even say it's completely broken. Was a naive hack. > but posix com

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-20 Thread Richard Henderson
On 09/20/2011 10:24 AM, Alan Amaral wrote: > I'm not on this mailing list, so please CC me on any replies. Thanks. > > I ran qemu with valgrind last night and found an error in the pci emulation > code, which may, > or may not, be biting us. So far the effects seem benign, although there > ex

Re: [Qemu-devel] [libvirt] [PATCH] qemu: Fix shutdown regression

2011-09-20 Thread Anthony Liguori
On 09/20/2011 01:01 PM, Eric Blake wrote: On 09/20/2011 11:39 AM, Jiri Denemark wrote: The commit that prevents disk corruption on domain shutdown (96fc4784177ecb70357518fa863442455e45ad0e) causes regression with QEMU 0.14.* and 0.15.* because of a regression bug in QEMU that was fixed only rece

Re: [Qemu-devel] [libvirt] [PATCH] qemu: Fix shutdown regression

2011-09-20 Thread Eric Blake
On 09/20/2011 11:39 AM, Jiri Denemark wrote: The commit that prevents disk corruption on domain shutdown (96fc4784177ecb70357518fa863442455e45ad0e) causes regression with QEMU 0.14.* and 0.15.* because of a regression bug in QEMU that was fixed only recently in QEMU git. With affected QEMU binari

Re: [Qemu-devel] [PATCH] MAINTAINERS: update maintainer for target-arm and ARM devboards

2011-09-20 Thread Juan Quintela
Peter Maydell wrote: > Add myself as co-maintainer alongside Paul Brook for the TCG ARM > guest implementation (target-arm) and the ARM dev boards (integratorcp, > realview, stellaris, versatilepb). > > Signed-off-by: Peter Maydell Acked-by: Juan Quintela

[Qemu-devel] pci_change_irq_level is broken...

2011-09-20 Thread Alan Amaral
I'm not on this mailing list, so please CC me on any replies.  Thanks.   I ran qemu with valgrind last night and found an error in the pci emulation code, which may, or may not, be biting us.  So far the effects seem benign, although there exists the possibility of trashing random memory.   In

Re: [Qemu-devel] [PATCH 2/6] Introduce qemu_cond_timedwait

2011-09-20 Thread Paolo Bonzini
On 09/20/2011 06:53 PM, Jan Kiszka wrote: First user will be posix compat aio. Signed-off-by: Jan Kiszka I'm pretty sure the win32 version is not thread-safe, but posix compat aio is currently POSIX only. Just leave it out. Paolo

Re: [Qemu-devel] [libvirt] [PATCH] qemu: Fix shutdown regression

2011-09-20 Thread Eric Blake
On 09/20/2011 12:06 PM, Dave Allan wrote: On Tue, Sep 20, 2011 at 07:39:15PM +0200, Jiri Denemark wrote: The commit that prevents disk corruption on domain shutdown (96fc4784177ecb70357518fa863442455e45ad0e) causes regression with QEMU 0.14.* and 0.15.* because of a regression bug in QEMU that w

Re: [Qemu-devel] [PATCH 2/2] block: avoid SIGUSR2

2011-09-20 Thread Christoph Hellwig
On Mon, Sep 19, 2011 at 03:05:47PM +0100, Stefan Hajnoczi wrote: > On Mon, Sep 19, 2011 at 12:54 PM, Frediano Ziglio wrote: > > @@ -547,7 +549,7 @@ static int posix_aio_flush(void *opaque) > > > > ?static PosixAioState *posix_aio_state; > > > > -static void aio_signal_handler(int signum) > > +stat

[Qemu-devel] [PATCH 6/6] audio: Switch coreaudio to QemuMutex

2011-09-20 Thread Jan Kiszka
Using the error management of QemuMutex allows to simplify the code. CC: malc CC: Andreas Färber Signed-off-by: Jan Kiszka --- audio/coreaudio.c | 56 +++- 1 files changed, 8 insertions(+), 48 deletions(-) diff --git a/audio/coreaudio.c b/audi

[Qemu-devel] [PATCH] target-i386: fix for X86_64 dynamic translation in push_T1()

2011-09-20 Thread Ivan Ganev
Fix a bug in X86_64 dynamic translation in push_T1() -- emits a push for the wrong temporary. Signed-off-by: Ivan Ganev --- diff -Naur qemu-0.15.0-org/target-i386/translate.c qemu-0.15.0-mod/target-i386/translate.c --- qemu-0.15.0-org/target-i386/translate.c 2011-08-08 11:28:42.0 -070

Re: [Qemu-devel] [PATCH] MAINTAINERS: update maintainer for target-arm and ARM devboards

2011-09-20 Thread Anthony Liguori
On 09/20/2011 10:18 AM, Peter Maydell wrote: Add myself as co-maintainer alongside Paul Brook for the TCG ARM guest implementation (target-arm) and the ARM dev boards (integratorcp, realview, stellaris, versatilepb). Signed-off-by: Peter Maydell Acked-by: Anthony Liguori Paul, speak now or f

[Qemu-devel] [PATCH 3/6] Switch POSIX compat AIO to QEMU abstractions

2011-09-20 Thread Jan Kiszka
Although there is nothing to wrap for non-POSIX here, redirecting thread and synchronization services to our core simplifies managements jobs like scheduling parameter adjustment. It also frees compat AIO from some duplicate code (/wrt qemu-thread). CC: Kevin Wolf Signed-off-by: Jan Kiszka ---

[Qemu-devel] [PATCH 0/6] Spread the use of QEMU threading & locking API

2011-09-20 Thread Jan Kiszka
This adds two missing features to our QEMU threading and locking abstractions, qemu_thread_join and qemu_cond_timedwait, and then converts compat AIO, compatfd, and several audio subsystems. This not only saves a few lines of code, it also allows to apply certain thread and lock parameters centrall

[Qemu-devel] [PATCH 2/6] Introduce qemu_cond_timedwait

2011-09-20 Thread Jan Kiszka
First user will be posix compat aio. Signed-off-by: Jan Kiszka --- qemu-thread-posix.c | 22 ++ qemu-thread-win32.c | 16 +++- qemu-thread.h |2 ++ 3 files changed, 39 insertions(+), 1 deletions(-) diff --git a/qemu-thread-posix.c b/qemu-thread-posi

Re: [Qemu-devel] [PATCH 00/13] Memory API conversion, batch 8

2011-09-20 Thread Peter Maydell
On 20 September 2011 17:47, Peter Maydell wrote: > On 18 September 2011 15:15, Avi Kivity wrote: >> Batch 7 has some issues due to the ISA conversion, so I reordered some >> patches and am posting this for your review and testing.  It should be >> straightforward but this stuff never is. >> >> Al

[Qemu-devel] [PATCH 5/6] audio: Use QEMU threads & synchronization

2011-09-20 Thread Jan Kiszka
This both simplifies error handling and enables central management of threads and locks. CC: malc Signed-off-by: Jan Kiszka --- audio/audio_pt_int.c | 167 ++--- audio/audio_pt_int.h | 45 ++ audio/esdaudio.c | 92

[Qemu-devel] [PATCH 1/6] Enable joinable POSIX threads

2011-09-20 Thread Jan Kiszka
Allow to control if a QEMU thread is created joinable or not. Make it not joinable by default to avoid that we keep the associated resources around when terminating a thread without joining it (what we couldn't do so far for obvious reasons). The audio subsystem will need the join feature when con

[Qemu-devel] [PATCH 4/6] Switch compatfd to QEMU thread

2011-09-20 Thread Jan Kiszka
qemu_thread_create already does signal blocking and detaching for us. Signed-off-by: Jan Kiszka --- compatfd.c | 16 +++- 1 files changed, 3 insertions(+), 13 deletions(-) diff --git a/compatfd.c b/compatfd.c index 31654c6..5431e4b 100644 --- a/compatfd.c +++ b/compatfd.c @@ -12,1

Re: [Qemu-devel] [PATCH] MAINTAINERS: update maintainer for target-arm and ARM devboards

2011-09-20 Thread Edgar E. Iglesias
On Tue, Sep 20, 2011 at 04:18:46PM +0100, Peter Maydell wrote: > Add myself as co-maintainer alongside Paul Brook for the TCG ARM > guest implementation (target-arm) and the ARM dev boards (integratorcp, > realview, stellaris, versatilepb). > > Signed-off-by: Peter Maydell Acked-by: Edgar E. Igl

Re: [Qemu-devel] [PATCH] MAINTAINERS: claim maintainership for the OMAP devices

2011-09-20 Thread Edgar E. Iglesias
On Tue, Sep 20, 2011 at 11:22:06AM +0100, Peter Maydell wrote: > Signed-off-by: Peter Maydell > --- > (1) I've put this in the 'Devices' part of the MAINTAINERS file > because OMAP isn't a specific machine; seemed the best fit > (2) I'll put together a pullreq with this and the other omap > patche

Re: [Qemu-devel] [PATCH 00/13] Memory API conversion, batch 8

2011-09-20 Thread Peter Maydell
On 18 September 2011 15:15, Avi Kivity wrote: > Batch 7 has some issues due to the ISA conversion, so I reordered some > patches and am posting this for your review and testing.  It should be > straightforward but this stuff never is. > > Also available on git://github.com/avikivity/qemu.git memor

[Qemu-devel] [PULL] pci fixes and cleanups

2011-09-20 Thread Michael S. Tsirkin
Pull from the temp tree at github. The following changes since commit 530889ff95659d8fea81eb556e5706387fdddfa7: sun4u: don't set up isa_mem_base (2011-09-18 12:00:19 +) are available in the git repository at: git://github.com/mstsirkin/qemu.git for_anthony Jan Kiszka (2): pci: Rem

Re: [Qemu-devel] [ltt-dev] [PATCH 2/3] trace: [ust] Do not use 'm' in event argument names (used by ust macros)

2011-09-20 Thread Mathieu Desnoyers
* Stefan Hajnoczi (stefa...@gmail.com) wrote: > 2011/9/20 Mathieu Desnoyers : > > * Lluís Vilanova (vilan...@ac.upc.edu) wrote: > >> Stefan Hajnoczi writes: > >> > >> > On Fri, Sep 16, 2011 at 06:59:38PM +0200, Lluís Vilanova wrote: > >> >> Signed-off-by: Lluís Vilanova > >> >> --- > >> >> trace-e

Re: [Qemu-devel] [ltt-dev] [PATCH 2/3] trace: [ust] Do not use 'm' in event argument names (used by ust macros)

2011-09-20 Thread Mathieu Desnoyers
* Lluís Vilanova (vilan...@ac.upc.edu) wrote: > > I don't know about the portability requirements in UST, but if supporting only > gcc is an option, you can simply use this line in the macro: > > void *__tp_cb_data __attribute__((unused)); > Done. See commit 34dca3cc6e0b230c98

[Qemu-devel] [PATCH 08/12] scsi-disk: store valid mode pages in a table

2011-09-20 Thread Paolo Bonzini
A small refactoring of the MODE SENSE implementation in scsi-disk. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 25 + 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 624996b..0c47a39 100644 --- a/hw/scsi-disk.c

[Qemu-devel] [PATCH 01/12] scsi: pass correct sense code for ENOMEDIUM

2011-09-20 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 48abe49..534baa2 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -230,6 +230,9 @@ static int scsi_handle_rw_error(SCSIDiskReq *r, in

[Qemu-devel] [PATCH 04/12] atapi: fill in AUDIO_CTL page correctly

2011-09-20 Thread Paolo Bonzini
The page is not anymore in MMC, but at least keep the values sane. Signed-off-by: Paolo Bonzini --- hw/ide/atapi.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index 347c38d..10f161f 100644 --- a/hw/ide/atapi.c +++ b/hw/ide/atapi.c @@

[Qemu-devel] [PATCH 03/12] atapi: move GESN definitions to scsi-defs.h

2011-09-20 Thread Paolo Bonzini
As a complement to the previous patch, move definitions for GET EVENT STATUS NOTIFICATION from the two functions to scsi-defs.h. The NCR_* constants are just bit values corresponding to the ENC_* values, with no offsets even, so keep just one copy. Signed-off-by: Paolo Bonzini --- hw/ide/atapi.

[Qemu-devel] [PATCH 10/12] scsi-disk: support DVD profile in GET CONFIGURATION

2011-09-20 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 50 ++ 1 files changed, 42 insertions(+), 8 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 33bab8c..d6b5bfe 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -562,6 +562,19 @@ s

[Qemu-devel] [PATCH 11/12] scsi-disk: support READ DVD STRUCTURE

2011-09-20 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 101 +++- 1 files changed, 100 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index d6b5bfe..778332e 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -575,10 +575

[Qemu-devel] [PATCH 03/23] migration: Fold MigrationState into FdMigrationState

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration-exec.c | 10 +- migration-fd.c | 10 +- migration-tcp.c | 10 +- migration-unix.c | 10 +- migration.c | 14 ++ migration.h | 23 +-- 6 files changed, 31 insertions(

[Qemu-devel] [PATCH 02/12] atapi/scsi: unify definitions for MMC

2011-09-20 Thread Paolo Bonzini
The definitions in ide/internal.h are duplicates, since ATAPI commands actually come from SCSI. Use the ones in scsi-defs.h and move the missing ones there. Two exceptions: - MODE_PAGE_WRITE_PARMS conflicts with the "flexible disk geometry" page in scsi-disk.c. It is unused, so pick the latter.

[Qemu-devel] [PATCH 05/12] scsi: notify the device when unit attention is reported

2011-09-20 Thread Paolo Bonzini
Reporting media change events via unit attention sense codes requires a small state machine: first report "NO MEDIUM", then report "MEDIUM MAY HAVE CHANGED". Unfortunately there is no good hooking point for the device to notice that its pending unit attention condition has been reported. This pat

[Qemu-devel] [PATCH 07/12] scsi-disk: add stubs for more MMC commands

2011-09-20 Thread Paolo Bonzini
This patch adds a few stub implementations for MMC commands to scsi-disk, to be filled in later in the series. It also adds to scsi-defs.h constants for commands implemented by ide/atapi.c, when missing. Signed-off-by: Paolo Bonzini --- hw/scsi-defs.h |3 ++ hw/scsi-disk.c | 63 ++

[Qemu-devel] [PATCH 12/12] scsi-disk: report media changed via GET EVENT STATUS NOTIFICATION

2011-09-20 Thread Paolo Bonzini
This adds support for media change notification via the GET EVENT STATUS NOTIFICATION command, used by Linux versions 2.6.38 and newer. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 57 --- 1 files changed, 53 insertions(+), 4 deletions(-

Re: [Qemu-devel] [PATCH 5/7] migration: add error handling to migrate_fd_put_notify().

2011-09-20 Thread Paolo Bonzini
On 09/20/2011 03:24 PM, Juan Quintela wrote: diff --git a/migration.c b/migration.c index c56d29c..7f8928a 100644 --- a/migration.c +++ b/migration.c @@ -312,6 +312,9 @@ void migrate_fd_put_notify(void *opaque) qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); qemu_file_put_notif

Re: [Qemu-devel] [PATCH 2/7] migration: only flush when there are no errors

2011-09-20 Thread Paolo Bonzini
On 09/20/2011 03:24 PM, Juan Quintela wrote: If we have one error while migrating, and then we issuse a "migrate_cancel" command, guest hang. Fix it for flushing only when migration is in MIG_STATE_ACTIVE. In case of error of cancellation, don't flush. We had an infinite loop at buffered_close

[Qemu-devel] [PATCH 09/12] atapi/scsi-disk: make mode page values coherent between the two

2011-09-20 Thread Paolo Bonzini
This patch adds to scsi-disk the missing mode page 0x01 for both disk and CD-ROM drives, and mode page 0x0e for CD drives only. A few offsets were wrong in atapi.c. Also change the 2Ah mode page to expose DVD media read capabilities in the IDE cdrom. This lets you run dvd+rw-mediainfo on the vir

[Qemu-devel] [PATCH 14/23] migration: Move exported functions to the end of the file

2011-09-20 Thread Juan Quintela
This means we can remove the two forward declarations. Signed-off-by: Juan Quintela --- migration.c | 188 -- 1 files changed, 91 insertions(+), 97 deletions(-) diff --git a/migration.c b/migration.c index 306ac4e..642fee1 100644 --- a/mi

[Qemu-devel] [PATCH 10/23] migration: Introduce migrate_fd_completed() for consistency

2011-09-20 Thread Juan Quintela
This function is a bit different of the others that change the state, in the sense that if migrate_fd_cleanup() returns an error, it set the status to error, not completed. Signed-off-by: Juan Quintela --- migration.c | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-)

Re: [Qemu-devel] [PATCH] qxl: Drop phread_yield on OOM

2011-09-20 Thread Gerd Hoffmann
On 09/20/11 17:21, Jan Kiszka wrote: This was only a best-effort attempt, by far not guaranteed to have an effect. Drop it so that also no direct pthread usage remain in the device model. Signed-off-by: Jan Kiszka All three patches are fine. I'll go queue it up in the spice queue when I'm bac

[Qemu-devel] [PATCH 06/12] scsi-disk: report media changed via unit attention sense codes

2011-09-20 Thread Paolo Bonzini
Building on the previous patch, this one adds a media change callback to scsi-disk. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |5 + hw/scsi-disk.c | 29 - hw/scsi.h |2 ++ 3 files changed, 35 insertions(+), 1 deletions(-) diff --git a/hw/scsi

[Qemu-devel] [PATCH 22/23] migration: propagate error correctly

2011-09-20 Thread Juan Quintela
unix and tcp outgoing migration have error values, but didn't returned it. Make them return the error. Notice that EINPROGRESS & EWOULDBLOCK are not considered errors as callwill be retry later. Signed-off-by: Juan Quintela --- migration-tcp.c | 20 +++- migration-unix.c |

[Qemu-devel] [PATCH 04/23] migration: Rename FdMigrationState MigrationState

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration-exec.c | 10 +- migration-fd.c | 10 +- migration-tcp.c | 12 ++-- migration-unix.c | 12 ++-- migration.c | 34 +- migration.h | 38 +++-

[Qemu-devel] [PATCH 01/23] migration: Make *start_outgoing_migration return FdMigrationState

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration-exec.c |4 ++-- migration-fd.c |4 ++-- migration-tcp.c |4 ++-- migration-unix.c |4 ++-- migration.c |4 ++-- migration.h |8 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/migration-exec.

[Qemu-devel] [PATCH 00/12] scsi-disk: Add DVD-ROM support and media change + atapi: nitpicking

2011-09-20 Thread Paolo Bonzini
This series brings scsi-disk and ide/atapi almost on feature parity. After this series, the only missing feature in scsi-disk is the READ CD command. The main addition is media change support, both via unit attention and via GET EVENT STATUS NOTIFICATION. I originally planned to work on this afte

[Qemu-devel] [PATCH] qxl: Drop phread_yield on OOM

2011-09-20 Thread Jan Kiszka
This was only a best-effort attempt, by far not guaranteed to have an effect. Drop it so that also no direct pthread usage remain in the device model. Signed-off-by: Jan Kiszka --- Depends on the previous qxl patch I just sent. hw/qxl.c |6 -- 1 files changed, 0 insertions(+), 6 deleti

[Qemu-devel] [PATCH] MAINTAINERS: update maintainer for target-arm and ARM devboards

2011-09-20 Thread Peter Maydell
Add myself as co-maintainer alongside Paul Brook for the TCG ARM guest implementation (target-arm) and the ARM dev boards (integratorcp, realview, stellaris, versatilepb). Signed-off-by: Peter Maydell --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MA

[Qemu-devel] [PATCH 23/23] migration: make migration-{tcp, unix} consistent

2011-09-20 Thread Juan Quintela
Files are almost identical in functionality, just remove the differences that make no sense. Signed-off-by: Juan Quintela --- migration-tcp.c | 15 ++- migration-unix.c | 46 +- 2 files changed, 35 insertions(+), 26 deletions(-) diff

[Qemu-devel] [PATCH 21/23] migration: Don't use callback on file defining it

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration-tcp.c |4 ++-- migration-unix.c |6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/migration-tcp.c b/migration-tcp.c index 1ca48fa..c259b8d 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -58,7 +58,7 @@ static void

[Qemu-devel] [PATCH] qxl: Convert to QEMU thread API

2011-09-20 Thread Jan Kiszka
Use QEMU thread API instead of pthread directly. We still need to get rid of pthread_yield, though, to drop pthread.h inclusion. Signed-off-by: Jan Kiszka --- hw/qxl.c |4 ++-- hw/qxl.h |3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index a282d

Re: [Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Gerd Hoffmann
On 09/20/11 17:00, Jan Kiszka wrote: On 2011-09-20 16:48, Gerd Hoffmann wrote: On 09/20/11 16:27, Jan Kiszka wrote: Hi Gerd, can you (or anyone familiar with those bits) comment on pthread_yield() in ioport_write() of hw/qxl.c? Which threads are supposed to run this way? spice server thread

[Qemu-devel] [PATCH] spice: Convert core to QEMU thread API

2011-09-20 Thread Jan Kiszka
No need to use pthread directly, we have proper abstractions for identity checking. Signed-off-by: Jan Kiszka --- ui/spice-core.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 3cbc721..afdf82e 100644 --- a/ui/spice-core.c

Re: [Qemu-devel] [ltt-dev] [PATCH 2/3] trace: [ust] Do not use 'm' in event argument names (used by ust macros)

2011-09-20 Thread Lluís Vilanova
Stefan Hajnoczi writes: > AFAICT the only problem with libust is the __tp_cb_data set but not > used warning that gcc 4.6 emits, see my test program: Here's a prettified version of the failing (pre-processed) code: static inline void trace_ust_g_malloc(size_t size, void* ptr) { do

[Qemu-devel] [PATCH] Drop unneeded pthread.h inclusions

2011-09-20 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- hw/xen_nic.c |1 - hw/xics.c |2 -- ui/spice-display.c |2 -- 3 files changed, 0 insertions(+), 5 deletions(-) diff --git a/hw/xen_nic.c b/hw/xen_nic.c index aeca8da..ef2a2d6 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -25,7 +25,6 @@

[Qemu-devel] [PATCH 07/23] migration: move migrate_create_state to do_migrate

2011-09-20 Thread Juan Quintela
Once there, remove all parameters that don't need to be passed to *start_outgoing_migration() functions Signed-off-by: Juan Quintela --- migration-exec.c | 19 +-- migration-fd.c | 22 ++ migration-tcp.c | 22 +++--- migration-unix.c |

[Qemu-devel] [PATCH 20/23] migration: Make state definitions local

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration.c |8 migration.h |8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/migration.c b/migration.c index fb95e14..1e88230 100644 --- a/migration.c +++ b/migration.c @@ -31,6 +31,14 @@ do { } while (0) #endif

[Qemu-devel] [PATCH 16/23] migration: another case of global variable assigned to local one

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/migration.c b/migration.c index 1ab26fb..f405d3c 100644 --- a/migration.c +++ b/migration.c @@ -136,9 +136,8 @@ void do_info_migrate(Monitor *mon, QObject **ret_data) QDic

[Qemu-devel] [PATCH 13/23] migration: Remove migration cancel() callback

2011-09-20 Thread Juan Quintela
It is used only in one place Signed-off-by: Juan Quintela --- migration.c |9 - migration.h |1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/migration.c b/migration.c index d63150e..306ac4e 100644 --- a/migration.c +++ b/migration.c @@ -132,12 +132,12 @@ free_

[Qemu-devel] [PATCH 02/23] migration: Use FdMigrationState instead of MigrationState when possible

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration.c | 34 -- migration.h | 16 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/migration.c b/migration.c index 1a5e25f..007b162 100644 --- a/migration.c +++ b/migration.c @@ -34,7 +34,7

Re: [Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Jan Kiszka
On 2011-09-20 16:48, Gerd Hoffmann wrote: > On 09/20/11 16:27, Jan Kiszka wrote: >> Hi Gerd, >> >> can you (or anyone familiar with those bits) comment on pthread_yield() >> in ioport_write() of hw/qxl.c? Which threads are supposed to run this >> way? > > spice server thread. > >> Can't this rel

[Qemu-devel] [PATCH 12/23] migration: Remove get_status() accessor

2011-09-20 Thread Juan Quintela
It is only used inside migration.c, and fields on that struct are accessed all around the place on that file. Signed-off-by: Juan Quintela --- migration.c | 16 +--- migration.h |1 - 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/migration.c b/migration.c inde

[Qemu-devel] [PATCH 09/23] migration: Refactor and simplify error checking in migrate_fd_put_ready

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration.c | 19 +-- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/migration.c b/migration.c index 59e8f06..9d877a0 100644 --- a/migration.c +++ b/migration.c @@ -368,22 +368,21 @@ static void migrate_fd_put_ready(void *opaque

Re: [Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Gerd Hoffmann
On 09/20/11 16:27, Jan Kiszka wrote: Hi Gerd, can you (or anyone familiar with those bits) comment on pthread_yield() in ioport_write() of hw/qxl.c? Which threads are supposed to run this way? spice server thread. Can't this relation be expressed explicitly? The thread is created by libsp

Re: [Qemu-devel] [PATCH 2/7] migration: only flush when there are no errors

2011-09-20 Thread Juan Quintela
"Daniel P. Berrange" wrote: > On Tue, Sep 20, 2011 at 03:24:41PM +0200, Juan Quintela wrote: >> If we have one error while migrating, and then we issuse a >> "migrate_cancel" command, guest hang. Fix it for flushing only when >> migration is in MIG_STATE_ACTIVE. In case of error of cancellation,

[Qemu-devel] [PATCH 11/23] migration: Our release callback was just free

2011-09-20 Thread Juan Quintela
We called it from a single place, and always with state != MIG_STATE_ACTIVE. Just remove the whole callback. For users of the notifier, notice that this is exactly the case where they don't care, we are just freeing the state from previous failed migration (it can't be a sucessful one, otherwise

Re: [Qemu-devel] [ltt-dev] [PATCH 2/3] trace: [ust] Do not use 'm' in event argument names (used by ust macros)

2011-09-20 Thread Stefan Hajnoczi
2011/9/20 Mathieu Desnoyers : > * Lluís Vilanova (vilan...@ac.upc.edu) wrote: >> Stefan Hajnoczi writes: >> >> > On Fri, Sep 16, 2011 at 06:59:38PM +0200, Lluís Vilanova wrote: >> >> Signed-off-by: Lluís Vilanova >> >> --- >> >> trace-events |    4 ++-- >> >> 1 files changed, 2 insertions(+), 2 de

[Qemu-devel] [PATCH 08/23] migration: Introduce MIG_STATE_NONE

2011-09-20 Thread Juan Quintela
Use MIG_STATE_ACTIVE only when migration has really started Signed-off-by: Juan Quintela --- migration.c |6 +- migration.h | 11 +++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/migration.c b/migration.c index 1d7a488..59e8f06 100644 --- a/migration.c +++ b/

[Qemu-devel] [PATCH 05/23] migration: Refactor MigrationState creation

2011-09-20 Thread Juan Quintela
Signed-off-by: Juan Quintela --- migration-exec.c | 16 +--- migration-fd.c | 16 +--- migration-tcp.c | 15 +-- migration-unix.c | 15 +-- migration.c | 29 + migration.h | 11 +++ 6 file

Re: [Qemu-devel] [ltt-dev] [PATCH 2/3] trace: [ust] Do not use 'm' in event argument names (used by ust macros)

2011-09-20 Thread Mathieu Desnoyers
* Lluís Vilanova (vilan...@ac.upc.edu) wrote: > Stefan Hajnoczi writes: > > > On Fri, Sep 16, 2011 at 06:59:38PM +0200, Lluís Vilanova wrote: > >> Signed-off-by: Lluís Vilanova > >> --- > >> trace-events |4 ++-- > >> 1 files changed, 2 insertions(+), 2 deletions(-) > >> > >> diff --git a/tra

[Qemu-devel] qxl: pthread_yield on QXL_IO_NOTIFY_OOM

2011-09-20 Thread Jan Kiszka
Hi Gerd, can you (or anyone familiar with those bits) comment on pthread_yield() in ioport_write() of hw/qxl.c? Which threads are supposed to run this way? Can't this relation be expressed explicitly? If not, can we use a sleep here (how long?)? The background is that yielding easily breaks into

Re: [Qemu-devel] [PATCH 2/7] migration: only flush when there are no errors

2011-09-20 Thread Daniel P. Berrange
On Tue, Sep 20, 2011 at 03:24:41PM +0200, Juan Quintela wrote: > If we have one error while migrating, and then we issuse a > "migrate_cancel" command, guest hang. Fix it for flushing only when > migration is in MIG_STATE_ACTIVE. In case of error of cancellation, > don't flush. > > We had an inf

Re: [Qemu-devel] [ltt-dev] [PATCH 2/3] trace: [ust] Do not use 'm' in event argument names (used by ust macros)

2011-09-20 Thread Mathieu Desnoyers
* Stefan Hajnoczi (stefa...@gmail.com) wrote: > On Fri, Sep 16, 2011 at 06:59:38PM +0200, Lluís Vilanova wrote: > > Signed-off-by: Lluís Vilanova > > --- > > trace-events |4 ++-- > > 1 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/trace-events b/trace-events > > index

[Qemu-devel] [PATCH 19/23] migration: Export a function that tells if the migration has finished correctly

2011-09-20 Thread Juan Quintela
This will allows us to hide the status values. Signed-off-by: Juan Quintela --- migration.c |4 ++-- migration.h |2 +- ui/spice-core.c |4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/migration.c b/migration.c index b8632e5..fb95e14 100644 --- a/migrat

  1   2   >