[Qemu-devel] [PATCH 10/12] checkpatch: don't error out on }, { lines

2011-07-05 Thread Alexander Graf
When having code like this: static PCIDeviceInfo piix_ide_info[] = { { .qdev.name= "piix3-ide", .qdev.size= sizeof(PCIIDEState), .qdev.no_user = 1, .no_hotplug = 1, .init = pci_piix_ide_initfn, .v

[Qemu-devel] [PATCH 07/12] xen_disk: cope with missing xenstore "params" node

2011-07-05 Thread Alexander Graf
From: Stefano Stabellini When disk is a cdrom and the drive is empty the "params" node in xenstore might be missing completely: cope with it instead of segfaulting. Updated in v2: - actually removed the strchr(blkdev->params, ':') that caused the segfault; - free all the allocated strings from

[Qemu-devel] [PATCH 03/12] xen: Fold CONFIG_XEN_MAPCACHE into CONFIG_XEN

2011-07-05 Thread Alexander Graf
From: Jan Kiszka Xen won't be enabled if there is no backend support available for the host. And that also means the map cache will work. So drop the separate config switch and move the required stubs over to xen-stub.c. Signed-off-by: Jan Kiszka Signed-off-by: Alexander Graf --- Makefile.tar

Re: [Qemu-devel] [PATCH 2/5] block: add bdrv_open_conversion_target

2011-07-05 Thread Kevin Wolf
Am 05.07.2011 06:41, schrieb Devin Nakamura: > Signed-off-by: Devin Nakamura > --- > block.c | 19 +++ > block.h |2 ++ > 2 files changed, 21 insertions(+), 0 deletions(-) > > diff --git a/block.c b/block.c > index 24a25d5..e7699a6 100644 > --- a/block.c > +++ b/block.c > @

[Qemu-devel] [PATCH 01/12] xen: Clean up build system

2011-07-05 Thread Alexander Graf
From: Jan Kiszka Introduce CONFIG_XEN_BACKEND so that this new config solely controls the target-independent backend build and CONFIG_XEN can focus on per-target building. Signed-off-by: Jan Kiszka Signed-off-by: Alexander Graf --- Makefile.objs |4 ++-- Makefile.target | 13 +++--

[Qemu-devel] [PATCH 4/8] ide: Support I/O status

2011-07-05 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- hw/ide/core.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index bf9df41..5fae4c6 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -473,6 +473,7 @@ void ide_sector_read(IDEState *s) if (n >

[Qemu-devel] [PATCH 6/9] pl080: use specific endian ld/st_phys

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/pl080.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pl080.c b/hw/pl080.c index 901f04a..dd8139b 100644 --- a/hw/pl080.c +++ b/hw/pl080.c @@ -199,10 +199,10 @@ again: if (size == 0) { /* Trans

Re: [Qemu-devel] [PATCH 1/5] block_int: add basic conversion api

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 05, 2011 at 12:41:20AM -0400, Devin Nakamura wrote: Please use 'block' instead of 'block_int' as the tag for this patch. I usually do git log to find out which tag is used for a particular file. 'block_int' has never been used in qemu.git but 'block' is used on block layer changes.

[Qemu-devel] [PATCH 9/9] spapr: use specific endian ld/st_phys

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/spapr.h |4 ++-- hw/spapr_hcall.c | 12 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/spapr.h b/hw/spapr.h index b52133a..263691b 100644 --- a/hw/spapr.h +++ b/hw/spapr.h @@ -280,12 +280,12 @@ target_ulong spapr_hyp

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

2011-07-05 Thread Anthony Liguori
On 07/05/2011 01:51 PM, Luiz Capitulino wrote: On Tue, 05 Jul 2011 13:33:07 -0500 Anthony Liguori wrote: On 07/05/2011 01:17 PM, Luiz Capitulino wrote: We need to track the VM status so that QMP can report it to clients. This commit adds the VMStatus type and related functions. The vm_status

[Qemu-devel] [PATCH 2/8] QMP: query-status: Introduce 'status' key

2011-07-05 Thread Luiz Capitulino
This new key reports the current VM status to clients. Please, check the documentation being added in this commit for more details. Signed-off-by: Luiz Capitulino --- monitor.c |3 +-- qmp-commands.hx | 17 - 2 files changed, 17 insertions(+), 3 deletions(-) diff --g

[Qemu-devel] [PATCH 3/9] intel-hda: use specific endian ld/st_phys

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/intel-hda.c | 21 - 1 files changed, 4 insertions(+), 17 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-hda.c index 0ce..5a2bc3a 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -224,19 +224,6 @@ static target_phys_addr_t int

Re: [Qemu-devel] [PATCH V2] [PowerPC][RFC] booke timers

2011-07-05 Thread Scott Wood
On Tue, 5 Jul 2011 18:41:13 +0200 Fabien Chouteau wrote: > On 05/07/2011 18:02, Scott Wood wrote: > > On Mon, 4 Jul 2011 17:06:54 +0200 > > Fabien Chouteau wrote: > >> Do you mean "lapse = period - ((tb - (1 << target_bit)) & (period - 1));" ? > > > > Yes. > > > > Or more simply: > > > > laps

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

2011-07-05 Thread Luiz Capitulino
This commit adds support to the BlockDriverState type to keep track of the last I/O status. That is, at every I/O operation we update a status field in the BlockDriverState instance. Valid statuses are: OK, FAILED and ENOSPC. ENOSPC is distinguished from FAILED because an management application ca

Re: [Qemu-devel] device assignment for embedded Power

2011-07-05 Thread Scott Wood
On Fri, 1 Jul 2011 17:32:43 -0500 Anthony Liguori wrote: > On 07/01/2011 11:43 AM, Scott Wood wrote: > > However, we'll need to address the question of what it means to say "irq 10" > > It depends on what the bus is. If you're going to declare "system bus" > which is sort of what we call ISA f

[Qemu-devel] [PATCH 5/8] virtio: Support I/O status

2011-07-05 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- hw/virtio-blk.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index bf70200..692520c 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -94,6 +94,7 @@ static void virtio_blk_rw_complete(void *opaq

[Qemu-devel] [PATCH 05/12] xen_console: fix memory leak

2011-07-05 Thread Alexander Graf
From: Stefano Stabellini con_init leaks the string "type", fix it. Signed-off-by: Stefano Stabellini Signed-off-by: Alexander Graf --- hw/xen_console.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/xen_console.c b/hw/xen_console.c index c6c8163..2d613ee 10

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

2011-07-05 Thread Luiz Capitulino
We need to track the VM status so that QMP can report it to clients. This commit adds the VMStatus type and related functions. The vm_status_set() function is used to keep track of the current VM status. The current statuses are: - debug: guest is running under gdb - inmigrate: guest is

Re: [Qemu-devel] KVM call agenda for June 28

2011-07-05 Thread Marcelo Tosatti
On Tue, Jul 05, 2011 at 04:37:08PM +0100, Stefan Hajnoczi wrote: > On Tue, Jul 5, 2011 at 3:32 PM, Marcelo Tosatti wrote: > > On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote: > >> On 07/05/2011 03:58 PM, Marcelo Tosatti wrote: > >> >On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnocz

[Qemu-devel] [PULL 00/12] Xen patch queue 2011-07-05

2011-07-05 Thread Alexander Graf
Hi Anthony, This is my current patch queue for Xen stuff that accumulated over the past few weeks. Please pull. Alex The following changes since commit 9312805d33e8b106bae356d13a8071fb37d75554: Vasily Khoruzhick (1): pxa2xx_lcd: add proper rotation support are available in the git re

[Qemu-devel] [PATCH v1 0/8]: QMP: Thin provisioning support

2011-07-05 Thread Luiz Capitulino
Roughly speaking, thin provisioning is a feature where the VM is started with a small storage and when a no space error is triggered, more space is allocated and the VM is put to run again. This series allows a management tool using QMP to implement thin provisioning support. It does the following

Re: [Qemu-devel] [PATCH] sheepdog: add data preallocation support

2011-07-05 Thread MORITA Kazutaka
At Fri, 01 Jul 2011 10:29:09 +0200, Kevin Wolf wrote: > > Am 21.05.2011 14:35, schrieb MORITA Kazutaka: > > This introduces a qemu-img create option for sheepdog which allows the > > data to be preallocated (note that sheepdog always preallocates > > metadata). This is necessary to use Sheepdog v

[Qemu-devel] [PATCH 12/12] xen_console: fall back to qemu serial device

2011-07-05 Thread Alexander Graf
The new xen_console protocol changed the default xen_console output device from whatever Qemu chose to whatever xenstore choses and "pty" as fallback. This is not how Qemu works. It has its own serial redirection semantics. So it xenstore doesn't contain information on what to do, Qemu is the plac

Re: [Qemu-devel] [PATCH 2/5] block: add bdrv_open_conversion_target

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 05, 2011 at 12:41:21AM -0400, Devin Nakamura wrote: > +int bdrv_open_conversion_target(BlockDriverState **bs, > +char *filename, char *target_fmt, QEMUOptionParameter *options) > +{ > +BlockDriver *drv; > + > +drv = bdrv_find_format(target_fmt); > +if(!drv){ Please

[Qemu-devel] [PATCH v2] sheepdog: add full data preallocation support

2011-07-05 Thread MORITA Kazutaka
This introduces qemu-img create option for sheepdog which allows the data to be fully preallocated (note that sheepdog always preallocates metadata). The option is disabled by default and you need to enable it like the following: qemu-img create sheepdog:test -o preallocation=full 1G Signed-off-

Re: [Qemu-devel] qemu crashes on Mac OS X

2011-07-05 Thread Alexandre Raymond
Hi again Damjan, On Mon, Jul 4, 2011 at 6:35 PM, Damjan Marion wrote: > > On Jul 4, 2011, at 6:59 PM, Alexandre Raymond wrote: > >> Hi Damjan, >> >> >> Can you try applying the following two patches and see if it solves >> your problem? >> >> http://patchwork.ozlabs.org/patch/100348/ >> http://pa

[Qemu-devel] [PATCH 6/8] scsi: Support I/O status

2011-07-05 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- hw/scsi-disk.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 66037fd..7002560 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -137,10 +137,12 @@ static void scsi_cancel_io(SCSIRequest *req

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

2011-07-05 Thread Luiz Capitulino
On Tue, 05 Jul 2011 13:33:07 -0500 Anthony Liguori wrote: > On 07/05/2011 01:17 PM, Luiz Capitulino wrote: > > We need to track the VM status so that QMP can report it to clients. > > > > This commit adds the VMStatus type and related functions. The > > vm_status_set() function is used to keep tr

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

2011-07-05 Thread Luiz Capitulino
Contains the last I/O status for the given device. Currently this is only supported by ide, scsi and virtio block devices. Signed-off-by: Luiz Capitulino --- block.c | 15 ++- block.h |2 +- qmp-commands.hx |6 ++ 3 files changed, 21 insertions(+), 2 del

[Qemu-devel] [Bug 568614] Re: x86_64 host curses interface: spacing/garbling

2011-07-05 Thread Devin J. Pohly
I just checked out the ncurses source - it looks like the type of "chtype" actually depends on how ncurses is configured at build time: curses.h.in: #if @cf_cv_enable_lp64@ && defined(_LP64) typedef unsigned chtype; typedef unsigned mmask_t; #else typedef unsigned @cf_cv_typeof_chtype@ chtype; typ

[Qemu-devel] [PATCH 8/8] HMP: Print 'io-status' information

2011-07-05 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- block.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 28df3d8..2b414ec 100644 --- a/block.c +++ b/block.c @@ -1695,6 +1695,10 @@ static void bdrv_print_dict(QObject *obj, void *opaque) monitor_printf

Re: [Qemu-devel] device assignment for embedded Power

2011-07-05 Thread Yoder Stuart-B08248
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Thursday, June 30, 2011 7:58 PM > To: Yoder Stuart-B08248 > Cc: qemu-devel@nongnu.org; Wood Scott-B07421; Alexander Graf; > alex.william...@redhat.com; > anth...@codemonkey.ws; d...@au1.ibm.com;

Re: [Qemu-devel] PATCH: fix qemu-mips[el]-static to work with debian squeeze/sid chroot

2011-07-05 Thread Lisandro Damián Nicanor Pérez Meyer
On Mar 05 Jul 2011 07:08:23 Wesley W. Terpstra escribió: > I also recently tried to get a mipsel debian/sid chroot running under my > amd64/squeeze system. As posted by Lisandro earlier this month, it didn't > work. ;-) There are several problems, the most glaring of which the > attached patch fixe

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

2011-07-05 Thread Anthony Liguori
On 07/05/2011 01:17 PM, Luiz Capitulino wrote: We need to track the VM status so that QMP can report it to clients. This commit adds the VMStatus type and related functions. The vm_status_set() function is used to keep track of the current VM status. The current statuses are: Which states are

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

2011-07-05 Thread Luiz Capitulino
On Tue, 05 Jul 2011 13:58:34 -0500 Anthony Liguori wrote: > On 07/05/2011 01:51 PM, Luiz Capitulino wrote: > > On Tue, 05 Jul 2011 13:33:07 -0500 > > Anthony Liguori wrote: > > > >> On 07/05/2011 01:17 PM, Luiz Capitulino wrote: > >>> We need to track the VM status so that QMP can report it to c

Re: [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions

2011-07-05 Thread Blue Swirl
On Tue, Jul 5, 2011 at 7:28 PM, Alexander Graf wrote: > Device code some times needs to access physical memory and does that > through the ld./st._phys functions. However, these are the exact same > functions that the CPU uses to access memory, which means they will > be endianness swapped dependi

Re: [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions

2011-07-05 Thread Alexander Graf
On 06.07.2011, at 00:05, Blue Swirl wrote: > On Wed, Jul 6, 2011 at 12:55 AM, Alexander Graf wrote: >> >> On 05.07.2011, at 23:48, Blue Swirl wrote: >> >>> On Tue, Jul 5, 2011 at 7:28 PM, Alexander Graf wrote: Device code some times needs to access physical memory and does that thro

[Qemu-devel] CPU assignment possiblities?

2011-07-05 Thread Erik Rull
Hi all, I want to assign multiple host cores to a VM that are then exposed there as only one virtual processor core. I want to maximize there the available computation power and the guest OS cannot handle SMP. And: How can I enable qemu to run on multiple host cores? I have a i7 HT enabled linux

Re: [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions

2011-07-05 Thread Blue Swirl
On Wed, Jul 6, 2011 at 1:13 AM, Alexander Graf wrote: > > On 06.07.2011, at 00:05, Blue Swirl wrote: > >> On Wed, Jul 6, 2011 at 12:55 AM, Alexander Graf wrote: >>> >>> On 05.07.2011, at 23:48, Blue Swirl wrote: >>> On Tue, Jul 5, 2011 at 7:28 PM, Alexander Graf wrote: > Device code som

Re: [Qemu-devel] [PATCH 2/3] Add fno-strict-overflow

2011-07-05 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 4:36 PM, Raghavendra D Prabhu wrote: > * On Mon, Jul 04, 2011 at 11:38:30PM +0100, Peter Maydell > wrote: >> >> On 4 July 2011 23:00, Raghavendra D Prabhu >> wrote: >>> >>> This is to avoid gcc optimizating out the comparison in assert, >>> due to assumption of signed over

Re: [Qemu-devel] device assignment for embedded Power

2011-07-05 Thread Alexander Graf
On 05.07.2011, at 20:19, Yoder Stuart-B08248 wrote: > > >> -Original Message- >> From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] >> Sent: Thursday, June 30, 2011 7:58 PM >> To: Yoder Stuart-B08248 >> Cc: qemu-devel@nongnu.org; Wood Scott-B07421; Alexander Graf; >> alex.w

Re: [Qemu-devel] [PATCH 0/9] Don't use ld./st._phys in hw/

2011-07-05 Thread Blue Swirl
On Tue, Jul 5, 2011 at 7:28 PM, Alexander Graf wrote: > We have quite some code in hw/ that uses ld./st._phys functions > in device emulation code. This is just pure wrong, as devices > don't know about the CPU endianness (except for virtio), so they > should instead use something endian specific.

Re: [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions

2011-07-05 Thread Alexander Graf
On 05.07.2011, at 23:48, Blue Swirl wrote: > On Tue, Jul 5, 2011 at 7:28 PM, Alexander Graf wrote: >> Device code some times needs to access physical memory and does that >> through the ld./st._phys functions. However, these are the exact same >> functions that the CPU uses to access memory, whi

Re: [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions

2011-07-05 Thread Blue Swirl
On Wed, Jul 6, 2011 at 12:55 AM, Alexander Graf wrote: > > On 05.07.2011, at 23:48, Blue Swirl wrote: > >> On Tue, Jul 5, 2011 at 7:28 PM, Alexander Graf wrote: >>> Device code some times needs to access physical memory and does that >>> through the ld./st._phys functions. However, these are the

Re: [Qemu-devel] [PATCH 1/9] exec: add endian specific phys ld/st functions

2011-07-05 Thread Alexander Graf
On 06.07.2011, at 00:22, Blue Swirl wrote: > On Wed, Jul 6, 2011 at 1:13 AM, Alexander Graf wrote: >> >> On 06.07.2011, at 00:05, Blue Swirl wrote: >> >>> On Wed, Jul 6, 2011 at 12:55 AM, Alexander Graf wrote: On 05.07.2011, at 23:48, Blue Swirl wrote: > On Tue, Jul 5, 20

[Qemu-devel] [PATCH v2 1/9] exec: add endian specific phys ld/st functions

2011-07-05 Thread Alexander Graf
Device code some times needs to access physical memory and does that through the ld./st._phys functions. However, these are the exact same functions that the CPU uses to access memory, which means they will be endianness swapped depending on the target CPU. However, devices don't know about the CP

Re: [Qemu-devel] [PATCH v6 2/4] guest agent: qemu-ga daemon

2011-07-05 Thread Michael Roth
Doh! Missed a final build test and this little bugger slipped in. Please apply the following patch to fix it, qapi-backport-set3-v6 has been updated accordingly. Thanks to Matsuda Daiki for the catch/patch! --- qemu-ga.c.orig 2011-07-06 09:03:00.656139317 +0900 +++ qemu-ga.c 2011-07-06 0

Re: [Qemu-devel] CPU assignment possiblities?

2011-07-05 Thread Alex Williamson
On Tue, Jul 5, 2011 at 3:09 PM, Erik Rull wrote: > > Hi all, > > I want to assign multiple host cores to a VM that are then exposed there as > only one virtual processor core. I want to maximize there the available > computation power and the guest OS cannot handle SMP. > > And: How can I enable q

[Qemu-devel] buildbot failure in qemu on qmp_x86_64_debian_5_0

2011-07-05 Thread qemu
The Buildbot has detected a new failure on builder qmp_x86_64_debian_5_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/qmp_x86_64_debian_5_0/builds/25 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: b1_qemu_1 Build

[Qemu-devel] IO Functionality for Hardware

2011-07-05 Thread Philip Loh
I am attempting to develop some code for a new board and am stuck trying to implement a working IO system. How can I stream input to my qemu-system-X executable and, for example, get something to be output from it, say, print to screen, without using fprintf? Thanks! Also, what does cpu_physical_m

Re: [Qemu-devel] [PATCH 5/5] megasas: LSI Megaraid SAS emulation

2011-07-05 Thread Hannes Reinecke
On 07/05/2011 05:21 PM, Stefan Hajnoczi wrote: On Tue, Jul 5, 2011 at 12:03 PM, Hannes Reinecke wrote: +static void megasas_unmap_sgl(struct megasas_cmd_t *cmd) +{ +uint16_t flags = le16_to_cpu(cmd->frame->header.flags); +int i, is_write = (flags& MFI_FRAME_DIR_WRITE) ? 1 : 0; + +f

<    1   2