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

[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

[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

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

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

[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 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

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 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 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] 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 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] [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

[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 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

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/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/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: 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] 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;

[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

[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 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

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 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] 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 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] [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 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] 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 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

[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

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] [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

[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 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

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 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] [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/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

[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

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 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/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 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

[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 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 +++--

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 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

[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 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 11/12] xen_console: support the new extended xenstore protocol

2011-07-05 Thread Alexander Graf
From: Stefano Stabellini Since CS 21994 on xen-unstable.hg and CS 466608f3a32e1f9808acdf832a5843af37e5fcec on qemu-xen-unstable.git, few changes have been introduced to the PV console xenstore protocol, as described by the document docs/misc/console.txt under xen-unstable.hg. >From the Qemu poin

[Qemu-devel] [PATCH 02/12] xen: Clean up map cache API naming

2011-07-05 Thread Alexander Graf
From: Jan Kiszka The map cache is a Xen thing, so its API should make this clear. Signed-off-by: Jan Kiszka Signed-off-by: Alexander Graf --- exec.c | 18 ++ trace-events|6 +++--- xen-all.c |4 ++-- xen-mapcache-stub.c | 11 ++---

[Qemu-devel] [PATCH 04/12] xen: enable console and disk backend in HVM mode

2011-07-05 Thread Alexander Graf
From: Stefano Stabellini Initialize the Xen console backend and the Xen disk backend even when running in HVM mode so that PV on HVM drivers can connect to them. Signed-off-by: Stefano Stabellini Signed-off-by: Alexander Graf --- xen-all.c |8 1 files changed, 8 insertions(+), 0

[Qemu-devel] [PATCH 06/12] xen: add vkbd support for PV on HVM guests

2011-07-05 Thread Alexander Graf
From: Stefano Stabellini Register the vkbd backend even when running as device emulator for HVM guests: it is useful because it doesn't need a frequent timer like usb. Check whether the XenInput DisplayState has been set in the initialise state, rather than the input state. In case the DisplaySt

[Qemu-devel] [PATCH 08/12] qemu_ram_ptr_length: take ram_addr_t as arguments

2011-07-05 Thread Alexander Graf
From: Stefano Stabellini qemu_ram_ptr_length should take ram_addr_t as argument rather than target_phys_addr_t because is doing comparisons with RAMBlock addresses. cpu_physical_memory_map should create a ram_addr_t address to pass to qemu_ram_ptr_length from PhysPageDesc phys_offset. Remove co

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

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/msi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/msi.c b/hw/msi.c index e8c5607..f214fcf 100644 --- a/hw/msi.c +++ b/hw/msi.c @@ -249,7 +249,7 @@ void msi_notify(PCIDevice *dev, unsigned int vector) "notify

[Qemu-devel] [PATCH 09/12] xen_disk: treat "aio" as "raw"

2011-07-05 Thread Alexander Graf
From: Stefano Stabellini Sometimes the toolstack uses "aio" without an additional format identifier, in such cases use "raw". Updated in v2: - fix code style. Signed-off-by: Stefano Stabellini Signed-off-by: Alexander Graf --- hw/xen_disk.c |3 +++ 1 files changed, 3 insertions(+), 0 de

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

2011-07-05 Thread Fabien Chouteau
On 05/07/2011 18:02, Scott Wood wrote: > On Mon, 4 Jul 2011 17:06:54 +0200 > Fabien Chouteau wrote: > >> On 01/07/2011 22:22, Scott Wood wrote: >>> On Fri, 1 Jul 2011 16:13:41 +0200 >>> Fabien Chouteau wrote: +static void booke_update_fixed_timer(CPUState *env, +

[Qemu-devel] [PATCH 8/9] s390-virtio: use specific endian ld/st_phys

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/s390-virtio-bus.c | 10 +- hw/s390-virtio.c |6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/s390-virtio-bus.c b/hw/s390-virtio-bus.c index d4a12f7..dde6ba5 100644 --- a/hw/s390-virtio-bus.c +++ b/hw/s390-virtio-bu

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

2011-07-05 Thread Stefan Hajnoczi
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 Hajnoczi wrote: >> >>On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor  wrote: >> >>>I tr

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

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/msix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/msix.c b/hw/msix.c index 03d7bec..e67e700 100644 --- a/hw/msix.c +++ b/hw/msix.c @@ -359,7 +359,7 @@ void msix_notify(PCIDevice *dev, unsigned vector) address = pci_get_

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

2011-07-05 Thread Raghavendra D Prabhu
* 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 overflow being undefined by default (-Werror=strict-overflow). --- a/Makefile.hw +

[Qemu-devel] [PATCH 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] KVM call agenda for June 28

2011-07-05 Thread Marcelo Tosatti
On Tue, Jul 05, 2011 at 06:04:34PM +0300, Dor Laor wrote: > On 07/05/2011 05: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 Hajnoczi wrote: > On T

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

2011-07-05 Thread Scott Wood
On Mon, 4 Jul 2011 17:06:54 +0200 Fabien Chouteau wrote: > On 01/07/2011 22:22, Scott Wood wrote: > > On Fri, 1 Jul 2011 16:13:41 +0200 > > Fabien Chouteau wrote: > >> +static void booke_update_fixed_timer(CPUState *env, > >> + uint8_t target

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

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/hpet.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/hpet.c b/hw/hpet.c index ef9a2a0..4eda33d 100644 --- a/hw/hpet.c +++ b/hw/hpet.c @@ -192,7 +192,7 @@ static void update_irq(struct HPETTimer *timer, int set) qemu_

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

2011-07-05 Thread Stefan Hajnoczi
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; > + > +    for (i = 0; i < cmd->frame->header.sge_

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

2011-07-05 Thread Alexander Graf
Signed-off-by: Alexander Graf --- hw/ppc405_uc.c | 43 +++ 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/hw/ppc405_uc.c b/hw/ppc405_uc.c index 2ce79ee..06a053b 100644 --- a/hw/ppc405_uc.c +++ b/hw/ppc405_uc.c @@ -51,39 +51,42 @@ ram_add

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

2011-07-05 Thread Dor Laor
On 07/05/2011 05: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 Hajnoczi wrote: On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote: I tried to re-arrange all

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

2011-07-05 Thread Alexander Graf
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. Unfortunately, there is no endian specific call to easily rec

Re: [Qemu-devel] [PATCH] Make SLIRP Ethernet packets size to 64 bytes minimuma

2011-07-05 Thread Fabien Chouteau
On 30/06/2011 10:38, Fabien Chouteau wrote: > On 28/06/2011 15:15, Stefan Hajnoczi wrote: >> On Tue, Jun 28, 2011 at 10:08 AM, Fabien Chouteau >> wrote: >>> On 28/06/2011 10:34, Stefan Hajnoczi wrote: This patch doesn't hurt but we'd be just as well off without it. Did you do this

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

2011-07-05 Thread Alexander Graf
On 07/05/2011 03:59 PM, Paolo Bonzini wrote: On 07/05/2011 03:38 PM, Alexander Graf wrote: +if (is_sgl64) { +iov_pa = ldq_phys(pa); +} else { +iov_pa = ldl_phys(pa); These load data from memory in target endianness. Are you sure that's what you want? I'd

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

2011-07-05 Thread Kevin Wolf
Am 05.07.2011 16:32, schrieb Marcelo Tosatti: > 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 Hajnoczi wrote: On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote: > I tried to re-

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

2011-07-05 Thread Marcelo Tosatti
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 Hajnoczi wrote: > >>On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote: > >>>I tried to re-arrange all of the requirements and use cases using

Re: [Qemu-devel] [PATCH] pci: add standard bridge device

2011-07-05 Thread Michael S. Tsirkin
On Tue, Jul 05, 2011 at 10:29:36PM +0900, Isaku Yamahata wrote: > On Mon, Jul 04, 2011 at 12:43:59PM +0300, Michael S. Tsirkin wrote: > > +/* Mapping mandated by PCI-to-PCI Bridge architecture specification, > > + * revision 1.2 */ > > +/* Table 9-1: Interrupt Binding for Devices Behind a Bridge */

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

2011-07-05 Thread Paolo Bonzini
On 07/05/2011 03:38 PM, Alexander Graf wrote: >> >> +if (is_sgl64) { >> +iov_pa = ldq_phys(pa); >> +} else { >> +iov_pa = ldl_phys(pa); > > These load data from memory in target endianness. Are you sure that's > what you want? I'd expect this to be defined

Re: [Qemu-devel] utimensat trouble on mips

2011-07-05 Thread Peter Maydell
On 5 July 2011 13:07, Johannes Schauer wrote: > About a year ago, Kenneth Johansson reported [1], that trying to do a > debian debootstrap using qemu user emulation will fail due to the > following error: > > /bin/tar: ./postinst: Cannot utime: Level 2 not synchronized This is the result of issue

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

2011-07-05 Thread Michael Roth
This adds the initial set of QMP/QAPI commands provided by the guest agent: guest-sync guest-ping guest-info guest-shutdown guest-file-open guest-file-read guest-file-write guest-file-seek guest-file-close guest-fsfreeze-freeze guest-fsfreeze-thaw guest-fsfreeze-status The input/output specificat

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

2011-07-05 Thread Dor Laor
Anthony advised to clone http://wiki.qemu.org/index.php?title=Features/LiveBlockMigrationFuture to the list in order to encourage discussion, so here it is: qemu is expected to support these features (some already implemen

[Qemu-devel] [PATCH v5 17/18] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile|8 +++- test-qmp-commands.c | 113 +++ 2 files changed, 120 insertions(+), 1 deletions(-) create mode 100644 test-qmp-commands.c diff --git a/Makefile b/Makefile index a243c24..cbd2d77 100

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

2011-07-05 Thread Peter Maydell
On 5 July 2011 11:08, Wesley W. Terpstra wrote: > 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 fixes. Than

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

2011-07-05 Thread Dor Laor
On 07/05/2011 03:58 PM, Marcelo Tosatti wrote: On Tue, Jul 05, 2011 at 01:40:08PM +0100, Stefan Hajnoczi wrote: On Tue, Jul 5, 2011 at 9:01 AM, Dor Laor wrote: I tried to re-arrange all of the requirements and use cases using this wiki page: http://wiki.qemu.org/Features/LiveBlockMigration It

[Qemu-devel] [PATCH v5 16/18] qapi: add test-visitor, tests for gen. visitor code

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile | 18 +++- test-visitor.c | 305 2 files changed, 321 insertions(+), 2 deletions(-) create mode 100644 test-visitor.c diff --git a/Makefile b/Makefile index 42ae4e5..a243c24 100644 --- a/

[Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v6

2011-07-05 Thread Michael Roth
This is Set 3/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set2-v5, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set3-v6 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basi

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

2011-07-05 Thread Alexander Graf
On 07/05/2011 01:03 PM, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. Signed-off-by: Hannes Reinecke --- Makefile.objs |1 + default-configs/pci.mak |1 + hw/megasas.c| 1950

Re: [Qemu-devel] [PATCH] pci: add standard bridge device

2011-07-05 Thread Isaku Yamahata
On Mon, Jul 04, 2011 at 12:43:59PM +0300, Michael S. Tsirkin wrote: > +/* Mapping mandated by PCI-to-PCI Bridge architecture specification, > + * revision 1.2 */ > +/* Table 9-1: Interrupt Binding for Devices Behind a Bridge */ > +static int pci_bridge_dev_map_irq_fn(PCIDevice *dev, int irq_num) >

[Qemu-devel] [PATCH v5 14/18] qapi: add qapi-commands.py code generator

2011-07-05 Thread Michael Roth
This is the code generator for qapi command marshaling/dispatch. Currently only generators for synchronous qapi/qmp functions are supported. This script generates the following files: $(prefix)qmp-marshal.c: command marshal/dispatch functions for each QMP command define

[Qemu-devel] [PATCH v5 13/18] qapi: add qapi-visit.py code generator

2011-07-05 Thread Michael Roth
This is the code generator for qapi visiter functions used to marshal/unmarshal/dealloc qapi types. It generates the following 2 files: $(prefix)qapi-visit.c: visiter function for a particular c type, used to automagically convert qobjects into the

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

2011-07-05 Thread Michael Roth
This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel and routes them through to dispatch routines, and writes the results back to the channel in a manner similar to QMP. A shorthand invocation: qemu-ga -d Is equivalent to: qemu-ga -c v

[Qemu-devel] [PATCH v6 3/4] guest agent: add guest agent commands schema file

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi-schema-guest.json | 204 1 files changed, 204 insertions(+), 0 deletions(-) create mode 100644 qapi-schema-guest.json diff --git a/qapi-schema-guest.json b/qapi-schema-guest.json new file mode 100644 index 0

[Qemu-devel] [PATCH v6 1/4] guest agent: command state class

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile|4 ++- configure |1 + qga/guest-agent-command-state.c | 73 +++ qga/guest-agent-core.h | 25 + 4 files changed, 102 insertions(+), 1 deleti

[Qemu-devel] [PATCH v5 11/18] qapi: add qapi.py helper libraries

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth --- scripts/qapi.py | 203 +++ 1 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi.py diff --git a/scripts/qapi.py b/scripts/qapi.py new file mode 100644 index 000..56af232 --- /

Re: [Qemu-devel] [PATCH 3/3] hw/omap_gpio.c: Convert to qdev

2011-07-05 Thread Peter Maydell
On 4 July 2011 23:39, andrzej zaborowski wrote: > Patch looks good overall, but for consistency we should rename > functions which start with omap2_gpio_module_ to omap2_gpio_ if the > state pointer passed is no longer the module pointer but instead the > whole thing pointer.  But maybe it would m

[Qemu-devel] [PATCH v5 10/18] qapi: add ordereddict.py helper library

2011-07-05 Thread Michael Roth
We need this to parse dictionaries with schema ordering intact so that C prototypes can be generated deterministically. Signed-off-by: Michael Roth --- scripts/ordereddict.py | 128 1 files changed, 128 insertions(+), 0 deletions(-) create mode

Re: [Qemu-devel] Setting up PPC440 Virtex Image for Qemu

2011-07-05 Thread Suzuki Poulose
On 06/30/11 18:40, Edgar E. Iglesias wrote: On Thu, Jun 30, 2011 at 06:30:04PM +0530, Suzuki Poulose wrote: On 06/30/11 18:02, Edgar E. Iglesias wrote: On Thu, Jun 30, 2011 at 05:45:23PM +0530, Suzuki Poulose wrote: Hi, I am working on enabling the KEXEC on PPC440 chipsets. To debug my patche

[Qemu-devel] [PATCH v5 18/18] qapi: add QAPI code generation documentation

2011-07-05 Thread Michael Roth
Signed-off-by: Michael Roth --- docs/qapi-code-gen.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 docs/qapi-code-gen.txt diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt new file mode 100644 index 0

[Qemu-devel] [PATCH v5 09/18] qapi: add QMP dispatch functions

2011-07-05 Thread Michael Roth
Given an object recieved via QMP, this code uses the dispatch table provided by qmp_registry.c to call the corresponding marshalling/dispatch function and format return values/errors for delivery to the QMP. Currently only synchronous QMP functions are supported, but this will also be used for asyn

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

2011-07-05 Thread Alexander Graf
On 07/05/2011 01:03 PM, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA. Nice, so it does work for me this time :). Tested-by: Alexander Graf Alex

[Qemu-devel] [PATCH v5 07/18] qapi: add QAPI dealloc visitor

2011-07-05 Thread Michael Roth
Type of Visitor class that can be passed into a qapi-generated C type's visitor function to free() any heap-allocated data types. Signed-off-by: Michael Roth --- Makefile.objs |2 +- qapi/qapi-dealloc-visitor.c | 138 +++ qapi/qapi-deall

  1   2   >