[Qemu-devel] [PATCH] allow make {dist,}clean work w/out configure

2012-09-15 Thread Mike Frysinger
There's no reason to require configure to run before running a clean target, so check MAKECMDGOALS before. Signed-off-by: Mike Frysinger --- Makefile |4 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 1cd5bc8..e75740c 100644 --- a/Makefile +++ b/Makefile @@ -14,

[Qemu-devel] [PATCH] fix warnings from printf target addresses

2012-09-15 Thread Mike Frysinger
Current code triggers: memory.c: In function 'invalid_read': memory.c:1001: warning: format '%#x' expects type 'unsigned int', but argument 4 has type 'target_phys_addr_t' memory.c: In function 'invalid_write': memory.c:1013: warning: format '%#x' expects type 'unsigned int', but ar

[Qemu-devel] [PATCH] fix gcc warnings when RESERVED_VA is 0

2012-09-15 Thread Mike Frysinger
The current code, while correct, triggers a bunch of gcc warnings when RESERVED_VA is 0 like so: linux-user/syscall.c: In function 'do_shmat': linux-user/syscall.c:3058: warning: comparison of unsigned expression < 0 is always false linux-user/syscall.c: In function 'open_self_maps': linux-user/sy

[Qemu-devel] [PATCH 6/6] linux-user: Fix siginfo handling

2012-09-15 Thread Richard Henderson
Compare signal numbers in the proper domain. Convert all of the fields for SIGIO and SIGCHLD. Signed-off-by: Richard Henderson --- linux-user/qemu.h| 3 +++ linux-user/signal.c | 59 +++- linux-user/syscall.c | 2 +- 3 files changed, 44 inse

[Qemu-devel] [PATCH 3/6] alpha-linux-user: Fix sigaltstack structure definition

2012-09-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/alpha/target_signal.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linux-user/alpha/target_signal.h b/linux-user/alpha/target_signal.h index 94f15f6..d3822da 100644 --- a/linux-user/alpha/target_signal.h +++ b/linux-use

[Qemu-devel] [PATCH 1/6] linux-user: Perform more checks on iovec lists

2012-09-15 Thread Richard Henderson
Validate count between 0 and IOV_MAX. Limit total length of operation in the same way the kernel does. Signed-off-by: Richard Henderson --- linux-user/syscall.c | 162 --- 1 file changed, 102 insertions(+), 60 deletions(-) diff --git a/linux-user

[Qemu-devel] [PATCH 5/6] target-alpha: Fix cpu_alpha_init

2012-09-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/translate.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 12de6a3..f998f75 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3525,6 +3525,

[Qemu-devel] [PATCH 2/6] linux-user: Implement gethostname

2012-09-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/syscall.c | 13 + 1 file changed, 13 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index ceca04c..925e579 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8866,6 +8866,19 @@ abi_long do_syscall(v

[Qemu-devel] [PATCH 4/6] alpha-linux-user: Fix sigaction

2012-09-15 Thread Richard Henderson
Unconditional bswap replaced by __get_user/__put_user. Signed-off-by: Richard Henderson --- linux-user/signal.c | 22 -- linux-user/syscall_defs.h | 2 +- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index 78

[Qemu-devel] [PATCH 0/6] linux-user improvements

2012-09-15 Thread Richard Henderson
These patches are available at git://repo.or.cz/qemu/rth.git axp-next and fix several problems detected by the glibc testsuite. r~ Richard Henderson (6): linux-user: Perform more checks on iovec lists linux-user: Implement gethostname alpha-linux-user: Fix sigaltstack structure defin

Re: [Qemu-devel] [PATCH 11/25] q35: Introduce q35 pc based chipset emulator

2012-09-15 Thread Michael S. Tsirkin
On Thu, Sep 13, 2012 at 04:12:42PM -0400, Jason Baron wrote: > diff --git a/hw/pc_q35.c b/hw/pc_q35.c > new file mode 100644 > index 000..4f75d97 > --- /dev/null > +++ b/hw/pc_q35.c > @@ -0,0 +1,378 @@ > +/* > + * QEMU PC System Emulator > + * > + * Copyright (c) 2003-2004 Fabrice Bellard > + *

Re: [Qemu-devel] [PATCH 00/25] q35 series take #1

2012-09-15 Thread Michael S. Tsirkin
On Sat, Sep 15, 2012 at 12:14:01AM +0900, Isaku Yamahata wrote: > On Thu, Sep 13, 2012 at 04:12:34PM -0400, Jason Baron wrote: > > 2) hotplug > > I've added piix acpi style hotplug to ich9. > > What's the point of this? > Its design is ad-hoc and shpc/pcie hotplug are available. We have a pci bri

Re: [Qemu-devel] [PATCH 00/25] q35 series take #1

2012-09-15 Thread Michael S. Tsirkin
On Sat, Sep 15, 2012 at 09:24:51AM +0900, Isaku Yamahata wrote: > On Fri, Sep 14, 2012 at 03:01:55PM -0400, Jason Baron wrote: > > On Sat, Sep 15, 2012 at 02:34:18AM +0900, Isaku Yamahata wrote: > > > On Fri, Sep 14, 2012 at 11:23:29AM -0400, Jason Baron wrote: > > > > On Sat, Sep 15, 2012 at 12:14

Re: [Qemu-devel] [PATCH 00/25] q35 series take #1

2012-09-15 Thread Michael S. Tsirkin
On Fri, Sep 14, 2012 at 03:01:55PM -0400, Jason Baron wrote: > On Sat, Sep 15, 2012 at 02:34:18AM +0900, Isaku Yamahata wrote: > > On Fri, Sep 14, 2012 at 11:23:29AM -0400, Jason Baron wrote: > > > On Sat, Sep 15, 2012 at 12:14:01AM +0900, Isaku Yamahata wrote: > > > > On Thu, Sep 13, 2012 at 04:12

Re: [Qemu-devel] [PATCH 00/25] q35 series take #1

2012-09-15 Thread Michael S. Tsirkin
On Sat, Sep 15, 2012 at 01:33:04PM +0200, Paolo Bonzini wrote: > Il 15/09/2012 02:24, Isaku Yamahata ha scritto: > >> > ok, yes pcie hotplug seems to work :) I guess I got confused b/c I > >> > thought devices would show up on the host bus. So the host bus in q35 > >> > simply doesn't support hotpl

Re: [Qemu-devel] [PATCH] tcg: Fix MAX_OPC_PARAM_IARGS

2012-09-15 Thread Blue Swirl
Thanks, applied. On Wed, Sep 12, 2012 at 5:18 PM, Stefan Weil wrote: > DEF_HELPER_FLAGS_5 was added some time ago without adjusting > MAX_OPC_PARAM_IARGS. > > Fixing the definition becomes more important as QEMU is using > an increasing number of helper functions called with 5 arguments. > > Add

Re: [Qemu-devel] [PATCH v5] configure: properly check if -lrt and -lm is needed

2012-09-15 Thread Blue Swirl
Thanks, applied. On Wed, Sep 12, 2012 at 9:06 AM, Natanael Copa wrote: > Fixes build against uClibc. > > uClibc provides 2 versions of clock_gettime(), one with realtime > support and one without (this is so you can avoid linking in -lrt > unless actually needed). This means that the clock_gettim

Re: [Qemu-devel] [PATCH] Basic support for ARM A15 "architectured" (cp15) timers

2012-09-15 Thread Blue Swirl
On Sat, Sep 15, 2012 at 8:57 AM, Daniel Forsgren wrote: > Thanks for the feedback! > > I should probably point out (as I wrote in my initial mail) that this is just > a prototype - a quick n dirty hack to get Linux up and running with the arch > timers. It is very true that I'm not following the

[Qemu-devel] [PATCH] usb-redir: Allow to attach USB 2.0 devices to 1.1 host controller

2012-09-15 Thread Jan Kiszka
From: Jan Kiszka This follows the logic of host-linux: If a 2.0 device has no ISO endpoint and no interrupt endpoint with a packet size > 64, we can attach it also to an 1.1 host controller. In case the redir server does not report endpoint sizes, play safe and remove the 1.1 compatibility as wel

Re: [Qemu-devel] [PATCH 1/9] NiosII: Add support for the Altera NiosII soft-core CPU.

2012-09-15 Thread Chris Wulff
On Tue, Sep 11, 2012 at 5:34 PM, Aurelien Jarno wrote: > On Sun, Sep 09, 2012 at 08:19:59PM -0400, crwu...@gmail.com wrote: > > From: Chris Wulff > > > > Signed-off-by: Chris Wulff > > > +tcg_gen_movi_tl(dc->cpu_R[R_RA], dc->pc + 4); > > +tcg_gen_movi_tl(dc->cpu_R[R_PC], > > +

Re: [Qemu-devel] [PATCH 10/25] pcie: Convert PCIExpressHost to use the QOM.

2012-09-15 Thread Andreas Färber
Am 13.09.2012 22:12, schrieb Jason Baron: > Let's use PCIExpressHost with QOM. > > Signed-off-by: Jason Baron Acked-by: Andreas Färber Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

Re: [Qemu-devel] [libvirt] [PATCH v2 1/4] config: Introduce for SPICE graphics

2012-09-15 Thread Daniel P. Berrange
On Fri, Sep 14, 2012 at 05:23:16PM -0600, Eric Blake wrote: > [adding qemu] > > On 09/14/2012 11:47 AM, Daniel P. Berrange wrote: > > On Fri, Sep 14, 2012 at 07:34:50PM +0200, Michal Privoznik wrote: > >> With this element users will control how SPICE > >> server behaves upon migration. For now, t

Re: [Qemu-devel] [PATCH 3/9] Altera: Add support for Altera devices required to boot linux on NiosII.

2012-09-15 Thread Andreas Färber
Am 11.09.2012 21:53, schrieb Blue Swirl: > On Mon, Sep 10, 2012 at 12:20 AM, wrote: >> diff --git a/hw/nios2_pic_cpu.c b/hw/nios2_pic_cpu.c >> new file mode 100644 >> index 000..c89b4ae >> --- /dev/null >> +++ b/hw/nios2_pic_cpu.c >> @@ -0,0 +1,48 @@ >> +/* >> + * QEMU Altera Nios II CPU inte

Re: [Qemu-devel] [PATCH 1/9] NiosII: Add support for the Altera NiosII soft-core CPU.

2012-09-15 Thread Andreas Färber
Am 10.09.2012 02:19, schrieb crwu...@gmail.com: > From: Chris Wulff > > Signed-off-by: Chris Wulff > --- > target-nios2/Makefile.objs |5 + > target-nios2/altera_iic.c | 100 +++ > target-nios2/cpu-qom.h | 69 +++ > target-nios2/cpu.c | 83 +++ > target-nios2/cpu.h

[Qemu-devel] [RFC V2] QEMU wiki remix

2012-09-15 Thread Benoît Canet
Hello list, Here is the new version of the QEMU wiki remix using the QEMU logo. http://files.nodalink.com/qemu/Main_Page since v1: fluid layout minimalist design Best regards Benoît

Re: [Qemu-devel] [PATCH 00/25] q35 series take #1

2012-09-15 Thread Paolo Bonzini
Il 15/09/2012 02:24, Isaku Yamahata ha scritto: >> > ok, yes pcie hotplug seems to work :) I guess I got confused b/c I >> > thought devices would show up on the host bus. So the host bus in q35 >> > simply doesn't support hotplug? > No, it doesn't. I think it makes sense then to keep ACPI hotplug

Re: [Qemu-devel] [PATCH] Basic support for ARM A15 "architectured" (cp15) timers

2012-09-15 Thread Daniel Forsgren
Thanks for the feedback! I should probably point out (as I wrote in my initial mail) that this is just a prototype - a quick n dirty hack to get Linux up and running with the arch timers. It is very true that I'm not following the QEMU coding standard (I must admit that haven't even read it).

Re: [Qemu-devel] [PATCH] Versatile Express: add modelling of NOR flash

2012-09-15 Thread Francesco Lavra
On 09/05/2012 09:07 PM, Francesco Lavra wrote: > Hi, > > On 09/05/2012 10:47 AM, Peter Maydell wrote: >> On 5 September 2012 06:16, Stefan Weil wrote: >>> Am 04.09.2012 19:08, schrieb Francesco Lavra: /* VE_NORFLASH0ALIAS: not modelled */ >>> >>> >>> What about that alias? It's not dif