[Qemu-devel] [PATCH v4 3/4] ssi: pl022: Send debug info to stderr

2014-04-14 Thread Peter Crosthwaite
To disentangle it from the monitor. Signed-off-by: Peter Crosthwaite --- hw/ssi/pl022.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ssi/pl022.c b/hw/ssi/pl022.c index fd479ef..84bf87a 100644 --- a/hw/ssi/pl022.c +++ b/hw/ssi/pl022.c @@ -14,7 +14,7 @@ #ifdef DEBUG_P

[Qemu-devel] [PATCH v4 4/4] ssi: pl022: Convert to use FIFO

2014-04-14 Thread Peter Crosthwaite
Use the FIFO API to factor out the ring buffer implementation code. Cleans up the somewhat verbose VMS description as well (version bump required). Signed-off-by: Peter Crosthwaite --- hw/ssi/pl022.c | 101 - 1 file changed, 42 insertions(

[Qemu-devel] [PATCH v4 1/4] util/fifo: Generalise naming scheme

2014-04-14 Thread Peter Crosthwaite
Generalise the names of the FIFO API to not include the "8". The exception is the push/pop functions for which we: s/fifo8_pop/fifo_pop8 s/fifo8_push/fifo_push8 This prepares support for generalising FIFO support to more integer widths. Most APIs will just share name and implementation. The push

Re: [Qemu-devel] [RFC/RFT v1 0/2] NAND QOMification - Round 1

2014-04-14 Thread Peter Crosthwaite
Ping! Any opinions on this one? Regards, Peter On Wed, Feb 12, 2014 at 11:12 AM, Peter Crosthwaite wrote: > Or perhaps even round 0.5 ... > > Hi Andreas, > > I have a work-in-progress lengthy series that moves towards the full > QOMification and BUSification of NAND. This will allow a few thing

Re: [Qemu-devel] [PATCH 0/2] ivshmem: validate incoming_posn value from server

2014-04-14 Thread Michael Roth
Quoting Stefan Hajnoczi (2014-03-31 02:08:09) > ivshmem can talk to a server over a UNIX domain socket on the host. We should > validate inputs from the server to prevent crashes or memory corruption. Cc'ing qemu-sta...@nongnu.org > > Stefan Hajnoczi (2): > ivshmem: check ivshmem_read() size

Re: [Qemu-devel] [PATCH] exec: Limit translation limiting in address_space_translate to xen

2014-04-14 Thread Michael Roth
Quoting Alexey Kardashevskiy (2014-03-26 23:35:26) > The address_space_translate() function cuts the returned plen (page size) > to hardcoded TARGET_PAGE_SIZE. This function can be used on pages bigger > than that so this limiting should not be used on such pages. > > Since originally the limiting

[Qemu-devel] [ANNOUNCE] QEMU 2.0.0-rc3 is now available

2014-04-14 Thread Michael Roth
Hello, On behalf of the QEMU Team, I'd like to announce the availability of the fourth release candidate for the QEMU 2.0 release. This release is meant for testing purposes and should not be used in a production environment. http://wiki.qemu.org/download/qemu-2.0.0-rc3.tar.bz2 You can help imp

Re: [Qemu-devel] [PATCH trivial 1/3] vl: remove useless 'continue'

2014-04-14 Thread Chen Gang
On 04/15/2014 10:11 AM, Peter Crosthwaite wrote: > On Tue, Apr 8, 2014 at 10:01 PM, Chen Gang wrote: >> > Normal "if (...) {...} else {...}" is enough in "while(...) {...}", not >> > need additional useless 'continue'. >> > > Only in the case where the if-else is not followed by any code. Which >

Re: [Qemu-devel] [PATCH trivial 2/3] vl: remove redundant local variable 'res'

2014-04-14 Thread Chen Gang
On 04/15/2014 10:13 AM, Peter Crosthwaite wrote: > On Tue, Apr 8, 2014 at 10:02 PM, Chen Gang wrote: >> In function, if no additional resources to free before quit, commonly, >> need not use additional local variable 'res' to notice about it. So >> remove it to simplify code. >> > > Styling wise,

[Qemu-devel] [PATCH] target-ppc: Remove PVR check from migration

2014-04-14 Thread Alexey Kardashevskiy
Currently migration fails if CPU version (PVR register) is different even a bit. This check is performed at the very end of migration when device states are sent. This is too late for management software and we need to provide a way for the user to make sure that migration will succeed if QEMU is s

[Qemu-devel] segfault while booting from saved snapshot

2014-04-14 Thread Shehbaz Jaffer
Hi, I am running a Ubuntu 12.04 guest VM that I created using vm-builder on a Ubuntu 12.04 Operating System. I am using qemu-2.0.0-rc0 version. I want to boot from a saved snapshot instance of the guest VM, so I created a snapshot using the Qemu Monitor as follows: stop savevm new cont quit I

Re: [Qemu-devel] [PATCH 1/2] ivshmem: check ivshmem_read() size argument

2014-04-14 Thread Gerd Hoffmann
> >> -static void ivshmem_read(void *opaque, const uint8_t * buf, int flags) > >> +static void ivshmem_read(void *opaque, const uint8_t * buf, int size) > >> { > >> IVShmemState *s = opaque; > >> int incoming_fd, tmp_fd; > >> int guest_max_eventfd; > >> long incoming_posn; > >>

Re: [Qemu-devel] [PATCH 33/35] pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole

2014-04-14 Thread Hu Tao
On Mon, Apr 14, 2014 at 06:44:42PM +0200, Igor Mammedov wrote: > On Mon, 14 Apr 2014 15:25:01 +0800 > Hu Tao wrote: > > > On Fri, Apr 04, 2014 at 03:36:58PM +0200, Igor Mammedov wrote: > > > Needed for Windows to use hotplugged memory device, otherwise > > > it complains that server is not config

[Qemu-devel] [PATCH v1 0/3] Introduce qemu_get_boot_opts()

2014-04-14 Thread Peter Crosthwaite
Hi Markus, This series introduces qemu_get_boot_opts(), in much the same way as was done for qemu_get_machine_opts(). As usual, I have out-of-scope and out-of-tree usages :) But P3 does clean up the one existing instance of the long-and-awkward form of this query and makes it consistent with an i

[Qemu-devel] [PATCH v1 1/3] vl.c: generalise qemu_get_machine_opts()

2014-04-14 Thread Peter Crosthwaite
This "nofail" (i.e. does not return NULL) mechanism driving qemu_get_machine_opts() does not need to be specific to machine opts - its applicable to other types of opts. Generalise and re-implement qemu_get_machine_opts() as a caller of the generalisation. Signed-off-by: Peter Crosthwaite --- v

[Qemu-devel] [PATCH v1 3/3] vl.c: Use qemu_get_boot_opts

2014-04-14 Thread Peter Crosthwaite
To simplfiy and make consistent with surrounding code using qemu_get_machine_opts(). Create a new local variable name boot_opts for consistency as well. Signed-off-by: Peter Crosthwaite --- vl.c | 39 +++ 1 file changed, 19 insertions(+), 20 deletions(-) dif

[Qemu-devel] [PATCH v1 2/3] vl.c: Add qemu_get_boot_opts()

2014-04-14 Thread Peter Crosthwaite
Same basic idea as qemu_get_machine_opts(). Signed-off-by: Peter Crosthwaite --- include/sysemu/sysemu.h | 1 + vl.c| 11 +++ 2 files changed, 12 insertions(+) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index ba5c7f8..d41748d 100644 --- a/includ

<    1   2   3