Re: [Qemu-devel] [PATCH for-1.4 2/2] configure: Fix build with XFree

2013-02-04 Thread Stefan Weil
Am 05.02.2013 01:21, schrieb Richard Henderson: > The build is broken on ppc64-linux, possibly only with new binutils: > > ld: hw/lm32/../milkymist-tmu2.o: undefined reference to symbol 'XFree' > ld: note: 'XFree' is defined in DSO /lib64/libX11.so.6 so try \ > adding it to the linker command lin

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-04 Thread Markus Armbruster
Blue Swirl writes: > On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: >> Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and >> stress test at >> http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt > > There's no license. Can we use that? It's been used widely,

Re: [Qemu-devel] [PATCH 18/19] hw: remove CPU dependencies

2013-02-04 Thread Paolo Bonzini
Il 04/02/2013 23:30, Peter Maydell ha scritto: > On 4 February 2013 17:30, Paolo Bonzini wrote: >> Some devices or headers are using poisoned identifiers. >> For .c files, some are useless and we remove them. >> >> For headers, wrap the definitions in the headers with >> > > Truncated sentence? >

[Qemu-devel] [PATCH 1/2] qemu/iovec: Don't assert if sbytes is zero

2013-02-04 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Since these values can possibly be sent from guest (for hw/9pfs), do a sanity check on them. A 9p write request with 0 bytes caused qemu to abort without this patch Signed-off-by: Aneesh Kumar K.V --- util/iov.c |4 1 file changed, 4 insertions(+) diff --git

Re: [Qemu-devel] [PATCH v4 02/13] qdev: change first argument of qbus_create_inplace to void *

2013-02-04 Thread Paolo Bonzini
Il 25/01/2013 15:04, Andreas Färber ha scritto: > Am 25.01.2013 14:12, schrieb Paolo Bonzini: >> Make it clear that no BUS() macro is needed in the callers (in fact it >> wouldn't work because the object has not been initialized yet with the >> right class). >> >> Suggested-by: Andreas Faerber >>

Re: [Qemu-devel] [PATCH 00/19] hw/ directory restructuring

2013-02-04 Thread Paolo Bonzini
Il 04/02/2013 22:23, Peter Maydell ha scritto: > On 4 February 2013 20:51, Paolo Bonzini wrote: >> Il 04/02/2013 21:33, Peter Maydell ha scritto: The $FOO device models should all be in hw/$FOO. But there are some parts that do not fit in a category >>> >>> Surely this is what hw/misc i

[Qemu-devel] [PATCH 2/2] qemu/9p: Don't ignore error in fid clunk

2013-02-04 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" We use the clunk request to do the actual xattr operation. So don't ignore the error value for fid clunk. Security model "none" don't support posix acl. Without this patch guest won't get EOPNOTSUPP error on setxattr("system.posix_acl_access") Signed-off-by: Aneesh Kuma

[Qemu-devel] [PATCH v2] usb-ehci: Replace PORTSC macros with variables

2013-02-04 Thread Kuo-Jung Su
From: Kuo-Jung Su Replace PORTSC macros with variables which could then be configured in ehci__class_init(...) to support some non-standard EHCI controllers. Signed-off-by: Kuo-Jung Su Cc: Gerd Hoffmann Cc: Andreas Cc: Peter Crosthwaite --- Changes for V2: - add missing port init to

Re: [Qemu-devel] [PATCH v2 01/20] arm: add Faraday a36x SoC platform support

2013-02-04 Thread Kuo-Jung Su
2013/2/1 Andreas Färber : > 嗨 國榮, > > Am 01.02.2013 09:57, schrieb Kuo-Jung Su: >> Thanks for the information, and sorry for the mess I've done. > > You don't need to apologize for every review comment you get. It's > meant for improvements of results, not personal. :) > Thanks. It's so kind of yo

Re: [Qemu-devel] [PATCH 5/6] load_linux: report open kernel file & its size error

2013-02-04 Thread li guang
OK, will fix. Thanks! 在 2013-02-04一的 18:20 +,Blue Swirl写道: > On Mon, Feb 4, 2013 at 2:27 AM, liguang wrote: > > Signed-off-by: liguang > > --- > > hw/pc.c | 14 +++--- > > 1 files changed, 11 insertions(+), 3 deletions(-) > > > > diff --git a/hw/pc.c b/hw/pc.c > > index 01d00f6..0

Re: [Qemu-devel] [PATCH 3/7] qdev_prop_parse(): report errors via Error

2013-02-04 Thread Laszlo Ersek
On 02/04/13 18:27, Luiz Capitulino wrote: > On Fri, 1 Feb 2013 18:38:15 +0100 > Laszlo Ersek wrote: > >> >> Signed-off-by: Laszlo Ersek > > I usually split this kind of patch the following way: > > 1. add an Error ** argument to the function reporting the error. Callers > are changed to

[Qemu-devel] [PATCH for-1.4 2/2] configure: Fix build with XFree

2013-02-04 Thread Richard Henderson
The build is broken on ppc64-linux, possibly only with new binutils: ld: hw/lm32/../milkymist-tmu2.o: undefined reference to symbol 'XFree' ld: note: 'XFree' is defined in DSO /lib64/libX11.so.6 so try \ adding it to the linker command line So let's follow the linker's advice. Signed-off-by: R

[Qemu-devel] [PATCH for-1.4 1/2] bswap: Fix width of swap in leul_to_cpu

2013-02-04 Thread Richard Henderson
The misnamed HOST_LONG_BITS is really HOST_POINTER_BITS. Here we're explicitly using an unsigned long, rather than uintptr_t, so it is more correct to select the swap size via ULONG_MAX. Acked-by: Andreas Färber Signed-off-by: Richard Henderson --- include/qemu/bswap.h | 12 ++-- 1 fil

Re: [Qemu-devel] [PATCH 0/7] propagate Errors to do_device_add()

2013-02-04 Thread Laszlo Ersek
On 02/04/13 19:01, Luiz Capitulino wrote: > On Fri, 1 Feb 2013 18:38:12 +0100 > Laszlo Ersek wrote: > >> This series is the first in converting do_device_add() to qapi. > > I've reviewed this, although it doesn't apply on master anymore and > then I was unable to try it. Thanks for the review,

Re: [Qemu-devel] [Qemu-ppc] [PATCH] Fix circular dependency for HOST_LONG_BITS qemu-common.h <-> bswap.h

2013-02-04 Thread Richard Henderson
On 2013-02-04 16:07, Peter Maydell wrote: On 4 February 2013 23:52, Richard Henderson wrote: On 2013-02-04 15:30, David Gibson wrote: Anthony, Richard, anyone? Please apply - qemu has now been build-broken on all big endian platforms for a month. I know. See also my bswap.h patch which al

Re: [Qemu-devel] [Qemu-ppc] [PATCH] Fix circular dependency for HOST_LONG_BITS qemu-common.h <-> bswap.h

2013-02-04 Thread Peter Maydell
On 4 February 2013 23:52, Richard Henderson wrote: > On 2013-02-04 15:30, David Gibson wrote: >> Anthony, Richard, anyone? >> >> Please apply - qemu has now been build-broken on all big endian >> platforms for a month. > > > I know. See also my bswap.h patch which also fixes the width > of long v

Re: [Qemu-devel] [PATCH 2/7] do_device_add(): look up "device" opts list with qemu_find_opts_err()

2013-02-04 Thread Laszlo Ersek
On 02/04/13 17:38, Luiz Capitulino wrote: > On Fri, 1 Feb 2013 18:38:14 +0100 > Laszlo Ersek wrote: > >> >> Signed-off-by: Laszlo Ersek >> --- >> hw/qdev-monitor.c |7 +-- >> 1 files changed, 5 insertions(+), 2 deletions(-) >> >> diff --git a/hw/qdev-monitor.c b/hw/qdev-monitor.c >> in

Re: [Qemu-devel] [Qemu-ppc] [PATCH] Fix circular dependency for HOST_LONG_BITS qemu-common.h <-> bswap.h

2013-02-04 Thread Richard Henderson
On 2013-02-04 15:30, David Gibson wrote: Anthony, Richard, anyone? Please apply - qemu has now been build-broken on all big endian platforms for a month. I know. See also my bswap.h patch which also fixes the width of long vs uintptr_t. No one seems willing to pick these up... r~

Re: [Qemu-devel] [PULL] virtio,make,pci,e1000,vfio,piix

2013-02-04 Thread Anthony Liguori
Pulled. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH V4 00/22] Multiqueue virtio-net

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-1.4?] isa: QOM'ify isa_bus_from_device()

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-1.4] configure: Keep -Werror enabled for Release Candidates

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-1.4] libqtest: Wait for the right child PID after killing QEMU

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 0/3] accel:some cleanup work for vm accelerator

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [Qemu-ppc] [PATCH] Fix circular dependency for HOST_LONG_BITS qemu-common.h <-> bswap.h

2013-02-04 Thread David Gibson
Anthony, Richard, anyone? Please apply - qemu has now been build-broken on all big endian platforms for a month. On Tue, Jan 22, 2013 at 04:33:26PM +1100, David Gibson wrote: > Commit c732a52d3e3b7ed42d7daa94ba40a83408cd6f22 from Richard Henderson > changed leul_to_cpu() in bswap.h from a macro t

Re: [Qemu-devel] [PATCH for-1.4 v2] target-ppc: Fix target_ulong vs. hwaddr format mismatches

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [Qemu-stable] Patch queue for qemu-1.1.3 stable release

2013-02-04 Thread Doug Goldstein
On Mon, Feb 4, 2013 at 4:40 AM, Michael Tokarev wrote: > Hello. > > This is my attempt at releasing a next stable/bugfix release of > abandomed 1.1 series of qemu. I tried my best to colledt all > fixes, and the last 1.1 has been out for quite a while now, so > it think it is time to release 1.1.

Re: [Qemu-devel] [PATCH for-1.4] Revert "e1000: no need auto-negotiation if link was down"

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH V4 RESEND 00/22] Multiqueue virtio-net

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 1/2] tap: unbreak -netdev tap,fd=X

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-1.4] acpi_piix4: fix segfault migrating from 1.2

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 00/10] -numa option parsing fixes & improvements

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 0/8] -numa option parsing fixes (v2)

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-1.4 v4 00/12] qdev: correct reference counting

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-1.4?] i2c: Drop I2C_SLAVE_FROM_QDEV() macro

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] sparc: disable qtest in make check

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 0/8] -numa option parsing fixes (v3)

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] xen: fix build problem introduced from per-queue peers

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] Update version for 1.4.0-rc0

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] s390x: silence warning from GCC on uninitialized values

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for 1.4] target-s390x: Fix wrong comparison in interrupt handling

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-1.4 0/8] -numa option parsing fixes (v7)

2013-02-04 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH V20 6/8] Add support for cancelling of a TPM command

2013-02-04 Thread Stefan Berger
On 02/04/2013 05:06 PM, Corey Bryant wrote: On 02/04/2013 01:48 PM, Stefan Berger wrote: On 02/04/2013 11:02 AM, Corey Bryant wrote: +/* + * As of Linux 3.7 the tpm_tis driver does not properly cancel + * commands for all TPMs. Any idea what the plan is for this issue? Is it a

Re: [Qemu-devel] [PATCH 18/19] hw: remove CPU dependencies

2013-02-04 Thread Peter Maydell
On 4 February 2013 17:30, Paolo Bonzini wrote: > Some devices or headers are using poisoned identifiers. > For .c files, some are useless and we remove them. > > For headers, wrap the definitions in the headers with > Truncated sentence? > Signed-off-by: Paolo Bonzini > --- a/hw/pci/host-apb.c

Re: [Qemu-devel] [PATCH V20 6/8] Add support for cancelling of a TPM command

2013-02-04 Thread Corey Bryant
On 02/04/2013 01:48 PM, Stefan Berger wrote: On 02/04/2013 11:02 AM, Corey Bryant wrote: @@ -221,7 +243,24 @@ static void tpm_passthrough_deliver_request(TPMBackend *tb) static void tpm_passthrough_cancel_cmd(TPMBackend *tb) { -/* cancelling an ongoing command is known not to work wi

Re: [Qemu-devel] [PATCH 4/7] block/vpc: Improve vpc_open (optimisation and error handling)

2013-02-04 Thread Jeff Cody
On Fri, Feb 01, 2013 at 10:51:31PM +0100, Stefan Weil wrote: > * Always read the footer at the end of the image. > The footer exists for all kinds of VHD images, so there is no need > to read its copy at the start of dynamic VHD images. > > * Return error codes from bdrv_pread like in other bl

Re: [Qemu-devel] [PATCH] s390x: silence warning from GCC on uninitialized values

2013-02-04 Thread Stefan Weil
Am 04.02.2013 22:23, schrieb Anthony Liguori: > As best I can tell, this is a false positive. > > [aliguori@ccnode4 qemu-s390]$ make > CCs390x-softmmu/target-s390x/helper.o > /home/aliguori/git/qemu/target-s390x/helper.c: In function ‘do_interrupt’: > /home/aliguori/git/qemu/target-s3

Re: [Qemu-devel] [PATCH] linux-user: Support setgroups syscall with no groups

2013-02-04 Thread Eric Blake
On 02/04/2013 02:07 PM, Peter Maydell wrote: > On 4 February 2013 18:38, Eric Blake wrote: >> On 02/02/2013 04:04 PM, dill...@dillona.com wrote: >>> - >>> -grouplist = alloca(gidsetsize * sizeof(gid_t)); >>> -target_grouplist = lock_user(VERIFY_READ, arg2, gidsetsize * >>>

[Qemu-devel] [PATCH] s390x: silence warning from GCC on uninitialized values

2013-02-04 Thread Anthony Liguori
As best I can tell, this is a false positive. [aliguori@ccnode4 qemu-s390]$ make CCs390x-softmmu/target-s390x/helper.o /home/aliguori/git/qemu/target-s390x/helper.c: In function ‘do_interrupt’: /home/aliguori/git/qemu/target-s390x/helper.c:673:17: error: ‘addr’ may be used uninitial

Re: [Qemu-devel] [PATCH 00/19] hw/ directory restructuring

2013-02-04 Thread Peter Maydell
On 4 February 2013 20:51, Paolo Bonzini wrote: > Il 04/02/2013 21:33, Peter Maydell ha scritto: >>> The $FOO device models should all be in hw/$FOO. But there are some >>> parts that do not fit in a category >> >> Surely this is what hw/misc is for? > > It's mostly interrupt/GPIO/DMA/memory/cache

Re: [Qemu-devel] [PATCH] linux-user: Support setgroups syscall with no groups

2013-02-04 Thread Peter Maydell
On 4 February 2013 18:38, Eric Blake wrote: > On 02/02/2013 04:04 PM, dill...@dillona.com wrote: >> - >> -grouplist = alloca(gidsetsize * sizeof(gid_t)); >> -target_grouplist = lock_user(VERIFY_READ, arg2, gidsetsize * 2, >> 1); >> -if (!target_grouplist) { >>

Re: [Qemu-devel] [PATCH][v5] linux-user: correct semctl() and shmctl()

2013-02-04 Thread Laurent Vivier
Le lundi 04 février 2013 à 15:16 +, Peter Maydell a écrit : > On 31 January 2013 19:50, Laurent Vivier wrote: > > The parameter "union semun" of semctl() is not a value > > but a pointer to the value. > > Hi. For your next patch could you make sure you send it as > a fresh email rather than a

Re: [Qemu-devel] [PATCH 00/19] hw/ directory restructuring

2013-02-04 Thread Paolo Bonzini
Il 04/02/2013 21:33, Peter Maydell ha scritto: > On 4 February 2013 18:59, Paolo Bonzini wrote: >> Il 04/02/2013 19:13, Peter Maydell ha scritto: >>> I think this is inconsistent. Either we should organise by category, >>> or we should organise per-target, but we shouldn't try to do both. >>> Othe

Re: [Qemu-devel] [PATCH for-1.4] libi2c-omap: Fix endianness dependency

2013-02-04 Thread Anthony Liguori
Peter Maydell writes: > On 2 February 2013 18:26, Blue Swirl wrote: >> On Sat, Feb 2, 2013 at 5:44 PM, Peter Maydell >> wrote: >>> On 2 February 2013 17:37, Andreas Färber wrote: Am 02.02.2013 17:49, schrieb Peter Maydell: libqtest.h has no generic endian-aware memread functions unl

Re: [Qemu-devel] [PATCH 00/19] hw/ directory restructuring

2013-02-04 Thread Peter Maydell
On 4 February 2013 18:59, Paolo Bonzini wrote: > Il 04/02/2013 19:13, Peter Maydell ha scritto: >> I think this is inconsistent. Either we should organise by category, >> or we should organise per-target, but we shouldn't try to do both. >> Otherwise we're just going to wind up with half the $TARG

Re: [Qemu-devel] [PATCH WIP 0/4] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-02-04 Thread Nicholas A. Bellinger
Hi Paolo, On Thu, 2013-01-31 at 00:12 -0800, Nicholas A. Bellinger wrote: > Hi Paolo, > > On Wed, 2013-01-30 at 17:41 +0100, Paolo Bonzini wrote: > > As expected, using a separate device finds a snag: vhost-scsi is passing > > force=false to vhost_dev_init, and the BIOS does not use MSI-X so i

Re: [Qemu-devel] [PATCH qom-cpu-next v3 3/4] target-i386: Slim conversion to X86CPU subclasses

2013-02-04 Thread Igor Mammedov
On Mon, 4 Feb 2013 17:05:01 +0100 Igor Mammedov wrote: > On Mon, 04 Feb 2013 13:52:32 +0100 > Andreas Färber wrote: > > > Am 04.02.2013 12:08, schrieb Igor Mammedov: > > > On Sat, 2 Feb 2013 01:37:07 +0100 > > > Andreas Färber wrote: > > > [...] > > > >> @@ -2198,6 +2018,8 @@ static void x8

Re: [Qemu-devel] [PATCH v2] MIPS: Translate breaks and traps into the appropriate signal

2013-02-04 Thread Meador Inge
Ping: http://patchwork.ozlabs.org/patch/211162/. On 01/10/2013 04:50 PM, Meador Inge wrote: > GCC and GAS are capable of generating traps or breaks to check for > division by zero. Additionally, GAS is capable of generating traps > or breaks to check for overflow on certain division and multiplic

[Qemu-devel] [PATCH v3 00/10] main-loop: switch to g_poll(3) on POSIX hosts

2013-02-04 Thread Stefan Hajnoczi
Amos Kong reported that file descriptors numbered higher than 1024 could crash QEMU. This is due to the fixed size of the fd_set type used for select(2) event polling. This series converts the main-loop.c and aio-posix.c select(2) calls to g_poll(3). This eliminates the fd_set type and allows Q

[Qemu-devel] [PATCH 60/60] migration: Fix madvise breakage if host and guest have different page sizes

2013-02-04 Thread Michael Tokarev
From: David Gibson madvise(DONTNEED) will throw away the contents of the whole page at the given address, even if the given length is less than the page size. One can argue about whether that's the correct behaviour, but that's what it's done for a long time in Linux at least. That means that t

[Qemu-devel] [PATCH 04/60] configure: Fix CONFIG_QEMU_HELPERDIR generation

2013-02-04 Thread Michael Tokarev
From: Jan Kiszka We need to evaluate $libexecdir in configure, otherwise we literally end up with "${prefix}/libexec" instead of the absolute path as CONFIG_QEMU_HELPERDIR. Signed-off-by: Jan Kiszka Signed-off-by: Aurelien Jarno (cherry picked from commit 38f419f35225decdbaea9fe1fd00218f8924ce

Re: [Qemu-devel] [PATCH 6/7] qbus_find(): report errors via Error

2013-02-04 Thread Luiz Capitulino
On Mon, 04 Feb 2013 19:23:15 +0100 Laszlo Ersek wrote: > On 02/04/13 18:51, Luiz Capitulino wrote: > > On Fri, 1 Feb 2013 18:38:18 +0100 > > Laszlo Ersek wrote: > > > >> > >> Signed-off-by: Laszlo Ersek > > > > Splitting this as I suggested in the other patch would make review > > easier. I

[Qemu-devel] [PATCH 25/60] hw: Fix return value check for bdrv_read, bdrv_write

2013-02-04 Thread Michael Tokarev
From: Stefan Weil Those functions return -errno in case of an error. The old code would typically only detect EPERM (1) errors. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi (cherry picked from commit 7a608f562ebd91e811ed0b725e528c894e4f19c4) Signed-off-by: Michael Tokarev --- h

[Qemu-devel] [PATCH v3 01/10] main-loop: fix select_ret uninitialized variable warning

2013-02-04 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- main-loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main-loop.c b/main-loop.c index 6f52ac3..d0d8fe4 100644 --- a/main-loop.c +++ b/main-loop.c @@ -330,7 +330,8 @@ void qemu_fd_register(int fd) static int os_host_main_loop_wait(uin

[Qemu-devel] [PATCH 03/19] hw: move qdev-monitor.o to toplevel directory

2013-02-04 Thread Paolo Bonzini
qdev-monitor.c is the only "core qdev" file that is not used in user-mode emulation, and it does not define anything that is used by hardware models. Remove it from the hw/ directory and remove hw/qdev-monitor.h from hw/qdev.h too; this requires some files to have some new explicitly includes. Si

[Qemu-devel] [PATCH 04/10] hw/arm_sysctl: Implement SYS_CFG_DVIMODE as a no-op

2013-02-04 Thread Peter Maydell
SYS_CFG_DVIMODE allows the guest to select whether the output DVI signal is VGA, SVGA, XGA, SGA or UXGA. Since this makes no difference to QEMU, implement writes as a no-op so Linux doesn't complain. Signed-off-by: Peter Maydell --- hw/arm_sysctl.c |8 1 file changed, 8 insertions(+

[Qemu-devel] [PATCH 6/8] vl.c: Use parse_uint_full() for NUMA nodeid

2013-02-04 Thread Eduardo Habkost
This should catch many kinds of errors that the current code wasn't checking for: - Values that can't be parsed as a number - Negative values - Overflow - Empty string Signed-off-by: Eduardo Habkost Reviewed-by: Eric Blake --- vl.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[Qemu-devel] [PATCH for-1.4 0/8] -numa option parsing fixes (v7)

2013-02-04 Thread Eduardo Habkost
Resending whole series after v6 was reviewed and got no objections. Changes v6 -> v7: - Refresh of patch 1/8 against qemu.git master (trivial conflicts on tests/Makefile) - Correction of typo on comment on util/cutils.c Eduardo Habkost (8): cutils: unsigned int parsing functions vl.c: F

[Qemu-devel] [PATCH 8/8] vl.c: validate -numa "cpus" parameter properly

2013-02-04 Thread Eduardo Habkost
- Accept empty strings without aborting - Use parse_uint*() to parse numbers - Abort if anything except '-' or end-of-string is found after the first number. - Check for endvalue < value Also change the MAX_CPUMASK_BITS warning message from "A max of %d CPUs are supported in a guest" to "qemu: N

[Qemu-devel] [PATCH 18/19] hw: remove CPU dependencies

2013-02-04 Thread Paolo Bonzini
Some devices or headers are using poisoned identifiers. For .c files, some are useless and we remove them. For headers, wrap the definitions in the headers with Signed-off-by: Paolo Bonzini --- hw/char/etraxfs_ser.c|2 -- hw/char/sclpconsole.c|2 +- hw/display/exynos4210

[Qemu-devel] [PATCH 4/4] virtio: console: add flow control

2013-02-04 Thread Amit Shah
The virtio-serial-bus already has the logic to make flow control work properly. Hook into the char layer's new ability to signal a backend is writable again. Signed-off-by: Amit Shah --- hw/virtio-console.c | 13 + 1 file changed, 13 insertions(+) diff --git a/hw/virtio-console.c b

[Qemu-devel] [PATCH 07/60] cpu_physical_memory_write_rom() needs to do TB invalidates

2013-02-04 Thread Michael Tokarev
From: David Gibson cpu_physical_memory_write_rom(), despite the name, can also be used to write images into RAM - and will often be used that way if the machine uses load_image_targphys() into RAM addresses. However, cpu_physical_memory_write_rom(), unlike cpu_physical_memory_rw() doesn't invali

[Qemu-devel] [PATCH v3 04/10] slirp: slirp/slirp.c coding style cleanup

2013-02-04 Thread Stefan Hajnoczi
The slirp glue code uses tabs in some places. Since the next patch will modify the file, convert tabs to spaces and fix checkpatch.pl issues. Signed-off-by: Stefan Hajnoczi --- slirp/slirp.c | 608 ++ 1 file changed, 311 insertions(+), 297

[Qemu-devel] [PATCH 17/19] hw: use _p variants, not _raw

2013-02-04 Thread Paolo Bonzini
ld*_raw and st*_raw is not available in common-obj-y, but it is also useless in softmmu targets: what it does is this #define laddr(x) (uint8_t *)(intptr_t)(x) #define ldub_raw(p) ldub_p(laddr((p))) #define ldsb_raw(p) ldsb_p(laddr((p))) #define lduw_raw(p) lduw_p(laddr((p)))

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-04 Thread Blue Swirl
On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: > Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and > stress test at > http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt There's no license. Can we use that? > > Unfortunately, both JSON parser and formatter m

Re: [Qemu-devel] [PATCH 00/19] hw/ directory restructuring

2013-02-04 Thread Paolo Bonzini
Il 04/02/2013 19:13, Peter Maydell ha scritto: >> > This reorganizes the over 600 files in the hw/ directory to multiple >> > subdirectories: acpi/, audio/, block/, bt/, char/, display/, i2c/, input/, >> > isa/, misc/, net/, scsi/, sd/, ssi/, timer/, virtio/, watchdog/, xen/. >> > These are in addi

[Qemu-devel] [PATCH 3/4] char: add gio watch fn for tcp backends

2013-02-04 Thread Amit Shah
Signed-off-by: Amit Shah --- qemu-char.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/qemu-char.c b/qemu-char.c index 7fa9372..01b0190 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2484,6 +2484,12 @@ static ssize_t tcp_chr_recv(CharDriverState *chr, char *buf, size_t len) } #end

Re: [Qemu-devel] [PATCH 14/19] hw: use default-configs for more devices instead of hw/ARCH/Makefile.objs

2013-02-04 Thread Andreas Färber
Am 04.02.2013 18:29, schrieb Paolo Bonzini: > Other devices are now moved out of hw/ARCH, adding new CONFIG_* > symbols that let them be included selectively in the emulators. > The devices however are still compiled in target-specific > directories. > > Signed-off-by: Paolo Bonzini I don't thin

Re: [Qemu-devel] [PATCH V20 6/8] Add support for cancelling of a TPM command

2013-02-04 Thread Stefan Berger
On 02/04/2013 11:02 AM, Corey Bryant wrote: @@ -221,7 +243,24 @@ static void tpm_passthrough_deliver_request(TPMBackend *tb) static void tpm_passthrough_cancel_cmd(TPMBackend *tb) { -/* cancelling an ongoing command is known not to work with some TPMs */ +TPMPassthruState *tpm_pt

[Qemu-devel] [PATCH 05/19] virtio-9p: use CONFIG_VIRTFS, not CONFIG_LINUX

2013-02-04 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/virtio-pci.h |2 +- hw/virtio.h |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h index d24957c..e775525 100644 --- a/hw/virtio-pci.h +++ b/hw/virtio-pci.h @@ -75,7 +75,7 @@ struct VirtIOPCIPro

Re: [Qemu-devel] [PATCH 18/19] hw: remove CPU dependencies

2013-02-04 Thread Andreas Färber
Am 04.02.2013 18:30, schrieb Paolo Bonzini: > Some devices or headers are using poisoned identifiers. > For .c files, some are useless and we remove them. > > For headers, wrap the definitions in the headers with #if at start of line gets dropped by git. ;) > > Signed-off-by: Paolo Bonzini > -

Re: [Qemu-devel] [PATCH] bitops: unify bitops_flsl with host-utils.h, call it bitops_clzl

2013-02-04 Thread Peter Maydell
On 4 February 2013 18:26, Richard Henderson wrote: > /** > - * bitops_fls - find last (most-significant) set bit in a long word > + * bitops_clzl - find last (most-significant) set bit in a long word Should probably change the descriptive text to say "count leading zeros"... > * @word: the wo

Re: [Qemu-devel] [PATCH] bitops: unify bitops_flsl with host-utils.h, call it bitops_clzl

2013-02-04 Thread Richard Henderson
On 2013-02-04 10:34, Peter Maydell wrote: - } +/* Both this function and the gcc builtin are undefined at 0, whereas + the host-utils functions return word-size at 0. Thus we prefer the + gcc builtin as the closer match. */ I think we should just fix the inconsistency ra

Re: [Qemu-devel] [PATCH] linux-user: Support setgroups syscall with no groups

2013-02-04 Thread Eric Blake
On 02/02/2013 04:04 PM, dill...@dillona.com wrote: > From: Dillon Amburgey > > Signed-off-by: Dillon Amburgey > --- > linux-user/syscall.c | 22 -- > 1 files changed, 12 insertions(+), 10 deletions(-) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index a1

[Qemu-devel] [PATCH v3 06/10] iohandler: switch to GPollFD

2013-02-04 Thread Stefan Hajnoczi
Convert iohandler_select_fill() and iohandler_select_poll() to use GPollFD instead of rfds/wfds/xfds. Signed-off-by: Stefan Hajnoczi --- include/qemu/main-loop.h | 4 ++-- iohandler.c | 40 ++-- main-loop.c | 4 ++-- 3 files changed

Re: [Qemu-devel] [PATCH v3 1/3] VFIO: Wrapper for getting reference to vfio_device from device

2013-02-04 Thread Alex Williamson
On Sun, 2013-02-03 at 14:10 +, Pandarathil, Vijaymohan R wrote: > - Added vfio_device_get_from_dev() as wrapper to get > reference to vfio_device from struct device. > > - Added vfio_device_data() as a wrapper to get device_data from > vfio_device. > > Signed-o

Re: [Qemu-devel] [PATCH 1/8] cutils: unsigned int parsing functions

2013-02-04 Thread Laszlo Ersek
On 02/04/13 19:27, Eduardo Habkost wrote: > Changes on v7 are trivial: > - Patch refresh after changes on test/Makefile on qemu.git master > - Fix typo on comment on parse_uint() (missing whitespace) > > As the changes are really trivial, I am keeping the Reviewed-by lines > from Eric and Laszl

Re: [Qemu-devel] [PATCH] bitops: unify bitops_flsl with host-utils.h, call it bitops_clzl

2013-02-04 Thread Eric Blake
On 02/04/2013 11:26 AM, Richard Henderson wrote: > Similar to the bitops_ctz change just made. > > Signed-off-by: Richard Henderson > --- > include/qemu/bitops.h | 44 +++- > target-i386/topology.h | 2 +- > util/bitops.c | 2 +- > 3 files chan

Re: [Qemu-devel] [PATCHv2] virtio-net: remove mq feature flag

2013-02-04 Thread Blue Swirl
On Mon, Feb 4, 2013 at 7:41 AM, Michael S. Tsirkin wrote: > mq flag is not needed: we can look at the number of queues and set > the flag accordingly. > Removing this feature removes ambiguity (what does it mean to have > queues=2 with mq=off?), and simplifies compatibility hacks. > work-around fo

Re: [Qemu-devel] [PATCH 4/4] virtio: console: add flow control

2013-02-04 Thread Blue Swirl
On Mon, Feb 4, 2013 at 12:50 PM, Amit Shah wrote: > The virtio-serial-bus already has the logic to make flow control work > properly. Hook into the char layer's new ability to signal a backend is > writable again. > > Signed-off-by: Amit Shah > --- > hw/virtio-console.c | 13 + > 1

[Qemu-devel] [PATCH 19/19] hw: compile most devices once

2013-02-04 Thread Paolo Bonzini
Most devices moved to hw/ subdirectories (other than hw/ARCH) can now be compiled once only. A notable exception is that many framebuffer devices have assumptions on the target endianness. I have no idea what would happen with OMAP in armeb mode, for example, so I'm leaving them aside. The ARM m

[Qemu-devel] [PATCH 06/19] virtio-9p: remove PCI dependencies from hw/9pfs/

2013-02-04 Thread Paolo Bonzini
Also move the 9p.h file to 9pfs/virtio-9p-device.h, for consistency with the corresponding .c file. Signed-off-by: Paolo Bonzini --- hw/9pfs/virtio-9p-device.c | 53 +- hw/{9p.h => 9pfs/virtio-9p-device.h} |4 +- hw/9pfs/virtio-9p.c

[Qemu-devel] [PATCH] bitops: unify bitops_flsl with host-utils.h, call it bitops_clzl

2013-02-04 Thread Richard Henderson
Similar to the bitops_ctz change just made. Signed-off-by: Richard Henderson --- include/qemu/bitops.h | 44 +++- target-i386/topology.h | 2 +- util/bitops.c | 2 +- 3 files changed, 17 insertions(+), 31 deletions(-) diff --git a/include/qemu

Re: [Qemu-devel] [PATCH 6/6] load_linux: change kernel header size allocation

2013-02-04 Thread Blue Swirl
On Mon, Feb 4, 2013 at 2:27 AM, liguang wrote: > it's not necessary to alloc 8K bytes for kernel > header, 0.5K is enough. > > Signed-off-by: liguang > --- > hw/pc.c | 10 ++ > 1 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/hw/pc.c b/hw/pc.c > index 0ccd775..b6b236f

[Qemu-devel] [PATCH 4/8] vl.c: Check for NUMA node limit inside numa_add()

2013-02-04 Thread Eduardo Habkost
Instead of checking the limit before calling numa_add(), check the limit only when we already know we're going to add a new node. Signed-off-by: Eduardo Habkost Reviewed-by: Eric Blake --- vl.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 586a

[Qemu-devel] [PATCH 1/8] cutils: unsigned int parsing functions

2013-02-04 Thread Eduardo Habkost
There are lots of duplicate parsing code using strto*() in QEMU, and most of that code is broken in one way or another. Even the visitors code have duplicate integer parsing code[1]. This introduces functions to help parsing unsigned int values: parse_uint() and parse_uint_full(). Parsing function

[Qemu-devel] [PATCH 3/8] vl.c: Abort on unknown -numa option type

2013-02-04 Thread Eduardo Habkost
Abort in case an invalid -numa option is provided, instead of silently ignoring it. Signed-off-by: Eduardo Habkost Reviewed-by: Eric Blake --- vl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vl.c b/vl.c index 0dae44c..586aa9a 100644 --- a/vl.c +++ b/vl.c @@ -1293,6 +1293,9 @@ static

[Qemu-devel] [PATCH 7/8] vl.c: Extract -numa "cpus" parsing to separate function

2013-02-04 Thread Eduardo Habkost
This will make it easier to refactor that code later. Signed-off-by: Eduardo Habkost Reviewed-by: Eric Blake --- vl.c | 41 +++-- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/vl.c b/vl.c index d6f6422..de164f8 100644 --- a/vl.c +++ b/vl.c @

[Qemu-devel] [PATCH 2/8] vl.c: Fix off-by-one bug when handling "-numa node" argument

2013-02-04 Thread Eduardo Habkost
The numa_add() code was unconditionally adding 1 to the get_opt_name() return value, making it point after the end of the string if no ',' separator is present. Example of weird behavior caused by the bug: $ qemu-img create -f qcow2 this-file-image-has,cpus=5,mem=1000,in-its-name.qcow2 5G Fo

[Qemu-devel] [PATCH 5/8] vl.c: numa_add(): Validate nodeid before using it

2013-02-04 Thread Eduardo Habkost
Without this check, QEMU will corrupt memory if a too-large nodeid is provided in the command-line. e.g.: -numa node,mem=...,cpus=...,nodeid=65 This changes nodenr to unsigned long long, to avoid integer conversion issues when converting the strtoull() result to int. Signed-off-by: Eduardo Hab

  1   2   3   >