[Qemu-devel] problems with 1G hugepages and linux 3.12-rc3

2013-10-06 Thread andy123
Hi, as the subject states, I have some problems with 1G hugepages with qemu(-vfio-git) on Linux 3.12-rc3. I start qemu like this, for example: /usr/bin/qemu-system-x86_64 -enable-kvm -m 1024 -mem-path /dev/hugepages -drive file=/files/vm/arch.img,if=virtio,media=disk -monitor stdio where

Re: [Qemu-devel] [PATCH] config-host.mak: escape configure arguments

2013-10-06 Thread Gabriel Kerneis
On Sun, Oct 06, 2013 at 07:47:02AM +0200, Stefan Weil wrote: What about removing the comment with the configure parameters from config-host.mak? Sound like a good idea. * Easier code - no need to create a configure call from a comment. Note we still need some escaping for single quotes, but

[Qemu-devel] [PULL 02/14] tests: Update .gitignore for test-int128 and test-bitops

2013-10-06 Thread Michael Tokarev
From: Markus Armbruster arm...@redhat.com Forgotten in commit 6046c62 and 3464700. Cc: qemu-sta...@nongnu.org Reviewed-by: Andreas Färber afaer...@suse.de Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by: Michael Tokarev m...@tls.msk.ru

[Qemu-devel] [PULL 00/14] Trivial patches for 2013-10-06

2013-10-06 Thread Michael Tokarev
Here's another trivial patche pull request, for patches collected in last 2 weeks (2 instead of 1 because both week were more or less quiet and there weren't many patches). There's nothing exciting in here, but there are a few minor fixes for small but annoying-in-some-environments issues.

[Qemu-devel] [PULL 06/14] target-i386: Fix compiler warning (integer constant is too large)

2013-10-06 Thread Michael Tokarev
From: Stefan Weil s...@weilnetz.de From buildbot default_i386_rhel61: CCi386-softmmu/target-i386/arch_memory_mapping.o target-i386/arch_memory_mapping.c: In function 'walk_pde': target-i386/arch_memory_mapping.c:110: warning: integer constant is too large for 'long' type Signed-off-by:

[Qemu-devel] [PULL 08/14] sh4: Fix serial line access for Linux kernels later than 3.2

2013-10-06 Thread Michael Tokarev
From: Guenter Roeck li...@roeck-us.net With Linux kernel version 3.3 or later, qemu fails with the following message: sh_serial: unsupported read from 0x18 Aborted Reported-and-analyzed-by: Rob Landley r...@landley.net Signed-off-by: Guenter Roeck li...@roeck-us.net Reviewed-by: Peter Maydell

[Qemu-devel] [PULL 03/14] tests: Fix schema parser test for in-tree build

2013-10-06 Thread Michael Tokarev
From: Markus Armbruster arm...@redhat.com Commit 4f193e3 added the test, but screwed up in-tree builds (SRCDIR=.): the tests's output overwrites the expected output, and is thus compared to itself. Cc: qemu-sta...@nongnu.org Reported-by: Laszlo Ersek ler...@redhat.com Reviewed-by: Andreas Färber

[Qemu-devel] [PULL 12/14] hw/9pfs: Fix errno value for xattr functions

2013-10-06 Thread Michael Tokarev
From: Daniel P. Berrange berra...@redhat.com If there is no operation driver for the xattr type the functions return '-1' and set errno to '-EOPNOTSUPP'. When the calling code sets 'ret = -errno' this turns into a large positive number. In Linux 3.11, the kernel has switched to using 9p version

[Qemu-devel] [PULL 11/14] vl: Clean up unnecessary boot_order complications

2013-10-06 Thread Michael Tokarev
From: Markus Armbruster arm...@redhat.com Messed up in commit 8281abd. Signed-off-by: Markus Armbruster arm...@redhat.com Signed-off-by: Michael Tokarev m...@tls.msk.ru --- vl.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 983cdc6..7e1f408

[Qemu-devel] [PULL 14/14] migration: Fix compiler warning ('caps' may be used uninitialized)

2013-10-06 Thread Michael Tokarev
Signed-off-by: Michael Tokarev m...@tls.msk.ru Reviewed-by: Stefan Weil s...@weilnetz.de --- migration.c |1 + 1 file changed, 1 insertion(+) diff --git a/migration.c b/migration.c index b4f8462..2b1ab20 100644 --- a/migration.c +++ b/migration.c @@ -150,6 +150,7 @@

[Qemu-devel] [PULL 01/14] .gitignore: ignore tests/qemu-iotests/socket_scm_helper

2013-10-06 Thread Michael Tokarev
From: Fam Zheng f...@redhat.com Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by: Wenchao Xiaxiaw...@linux.vnet.ibm.com Signed-off-by: Michael Tokarev m...@tls.msk.ru --- tests/qemu-iotests/.gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/tests/qemu-iotests/.gitignore

[Qemu-devel] [PULL 05/14] block: Remove unused assignment (fixes warning from clang)

2013-10-06 Thread Michael Tokarev
From: Stefan Weil s...@weilnetz.de blockdev.c:1929:13: warning: Value stored to 'ret' is never read ret = 0; ^ ~ Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Michael Tokarev m...@tls.msk.ru --- blockdev.c |1 - 1 file changed, 1 deletion(-) diff

[Qemu-devel] [PULL 07/14] hw/alpha: Fix compiler warning (integer constant is too large)

2013-10-06 Thread Michael Tokarev
From: Stefan Weil s...@weilnetz.de From buildbot default_i386_rhel61: CCalpha-softmmu/hw/alpha/typhoon.o hw/alpha/typhoon.c: In function 'typhoon_translate_iommu': hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type hw/alpha/typhoon.c:703: warning: integer

[Qemu-devel] [PULL 10/14] qemu-char: Fix potential out of bounds access to local arrays

2013-10-06 Thread Michael Tokarev
From: Stefan Weil s...@weilnetz.de Latest gcc-4.8 supports a new option -fsanitize=address which activates an AddressSanitizer. This AddressSanitizer stops the QEMU system emulation very early because two character arrays of size 8 are potentially written with 9 bytes. Commit

[Qemu-devel] [PULL 09/14] pci-ohci: Add missing 'break' in ohci_service_td

2013-10-06 Thread Michael Tokarev
From: Ján Veselý jano.ves...@gmail.com Device communication errors need to be reported to driver. Add a debug message while at it. Signed-off-by: Jan Vesely jano.ves...@gmail.com Acked-by: Gerd Hoffmann kra...@gmail.com Signed-off-by: Michael Tokarev m...@tls.msk.ru --- hw/usb/hcd-ohci.c |2

[Qemu-devel] [PULL 13/14] util/path: Fix type which is longer than 8 bit for MinGW

2013-10-06 Thread Michael Tokarev
From: Stefan Weil s...@weilnetz.de While dirent-d_type is 8 bit for most systems, it is 32 bit for MinGW. Reducing it to 8 bit results in a compiler warning because the macro is_dir_maybe compares that 8 bit value with 32 bit constants. Using 'unsigned' instead of 'unsigned char' matches the

[Qemu-devel] [PULL 04/14] exec: cleanup DEBUG_SUBPAGE

2013-10-06 Thread Michael Tokarev
From: Amos Kong ak...@redhat.com Touched some error after enabling DEBUG_SUBPAGE. Signed-off-by: Amos Kong ak...@redhat.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Michael Tokarev m...@tls.msk.ru --- exec.c | 18 +- 1 file changed, 9 insertions(+), 9

Re: [Qemu-devel] Update the id of Vexpress Cortex-A9 from r0p0 to r0p1?

2013-10-06 Thread Peter Maydell
On 6 October 2013 20:12, Mian Yousaf Kaukab yre...@gmail.com wrote: Default vexpress_defconfig does not boot on qemu vexpress-a9 target. In kernel, vexpress uart detection for DEBUG_LL is done using Coretex-A9 id. Only r0p1 is mapped to legacy map. All other variants are mapped to RS1/aseries

Re: [Qemu-devel] [Bug 1180777] Re: RDP traffic freeze on quiet network

2013-10-06 Thread f3a97
Hi, I've double checked my conf, I can confirm I'm not using virtio but standard Win 7 drivers. (please see my VM conf that I posted some time ago). So it's not definitely a virtio-specific issue. On 3 October 2013 16:31, Serge Hallyn 1180...@bugs.launchpad.net wrote: Quoting Vasile

Re: [Qemu-devel] [Bug 1100843] Re: Live Migration Causes Performance Issues

2013-10-06 Thread Zhang Haoyu
From my testing this has been fixed in the saucy version (1.5.0) of qemu. It is fixed by this patch: f1c72795af573b24a7da5eb52375c9aba8a37972 However later in the history this commit was reverted, and again broke this. The other commit that fixes this is: 211ea74022f51164a7729030b28eec90b6c99a08

[Qemu-devel] bug report

2013-10-06 Thread Peter Cheung
hi all I found a bug in qemu, when i invoke: cpu_physical_memory_rw(addr, mem_buf, noOfBytes, 0); where addr=0x0 and noOfBytes=50, qemu will has segmentation fault. I call the cpu_physical_memory_rw right after the qemu is started (haven't run yet) with gdb. Thanksfrom Peter

Re: [Qemu-devel] Update the id of Vexpress Cortex-A9 from r0p0 to r0p1?

2013-10-06 Thread Andreas Färber
Am 06.10.2013 14:10, schrieb Peter Maydell: The major thing we need is a mechanism for allowing at least the board, and possibly also the user, to specify properties of the cpu like which rev/patchlevel is it I believe I posted patches for that long ago, to clean up the PXA mess a little...

Re: [Qemu-devel] [PATCH 0/4] qdev: switch reset to post-order, clean up PCI reset

2013-10-06 Thread Michael S. Tsirkin
On Thu, Oct 03, 2013 at 06:53:10PM +0200, Paolo Bonzini wrote: Il 03/10/2013 18:54, Michael S. Tsirkin ha scritto: For each PCI device I tried creating a VM with an instance of it (a few devices at a time), and did VM resets. Earlier versions were tested by the guy who reported the SCSI

Re: [Qemu-devel] [PATCH v8 18/26] i386: define pc guest info

2013-10-06 Thread Michael S. Tsirkin
On Fri, Oct 04, 2013 at 06:18:42PM +0200, Igor Mammedov wrote: On Thu, 3 Oct 2013 18:05:35 +0300 Michael S. Tsirkin m...@redhat.com wrote: This defines a structure that will be used to fill in acpi tables where relevant properties are not yet available using QOM. Reviewed-by: Laszlo

Re: [Qemu-devel] [PATCH 0/4] qdev: switch reset to post-order, clean up PCI reset

2013-10-06 Thread Paolo Bonzini
Il 06/10/2013 20:28, Michael S. Tsirkin ha scritto: For each PCI device I tried creating a VM with an instance of it (a few devices at a time), and did VM resets. Earlier versions were tested by the guy who reported the SCSI problems. x86 kvm only? Yes. Hmm, I'm not

Re: [Qemu-devel] [PATCH v8 18/26] i386: define pc guest info

2013-10-06 Thread Michael S. Tsirkin
On Fri, Oct 04, 2013 at 06:18:42PM +0200, Igor Mammedov wrote: On Thu, 3 Oct 2013 18:05:35 +0300 Michael S. Tsirkin m...@redhat.com wrote: This defines a structure that will be used to fill in acpi tables where relevant properties are not yet available using QOM. Reviewed-by: Laszlo

[Qemu-devel] Update the id of Vexpress Cortex-A9 from r0p0 to r0p1?

2013-10-06 Thread Mian Yousaf Kaukab
Hi, Default vexpress_defconfig does not boot on qemu vexpress-a9 target. In kernel, vexpress uart detection for DEBUG_LL is done using Coretex-A9 id. Only r0p1 is mapped to legacy map. All other variants are mapped to RS1/aseries map. As qemu vexpress-a9 target reports Cortex-A9 version as r0p0,

Re: [Qemu-devel] Update the id of Vexpress Cortex-A9 from r0p0 to r0p1?

2013-10-06 Thread Peter Maydell
On 7 October 2013 02:26, Andreas Färber afaer...@suse.de wrote: Am 06.10.2013 14:10, schrieb Peter Maydell: The major thing we need is a mechanism for allowing at least the board, and possibly also the user, to specify properties of the cpu like which rev/patchlevel is it I believe I posted

Re: [Qemu-devel] [PATCH V13 10/13] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node

2013-10-06 Thread Wanlong Gao
On 10/04/2013 04:13 PM, Paolo Bonzini wrote: Il 04/10/2013 02:04, Marcelo Tosatti ha scritto: This QMP command allows user set guest node's memory policy through the QMP protocol. The qmp-shell command is like: set-mem-policy nodeid=0 policy=membind relative=true host-nodes=0-1