Re: [Qemu-devel] [PATCH V12 3/4] Use QemuOpts support in block layer

2013-03-25 Thread Dong Xu Wang
On Thu, Mar 21, 2013 at 11:31 PM, Markus Armbruster arm...@redhat.com wrote: Dong Xu Wang wdon...@linux.vnet.ibm.com writes: This patch will use QemuOpts related functions in block layer, add a member bdrv_create_opts to BlockDriver struct, it will return a QemuOptsList pointer, which

Re: [Qemu-devel] [RFC qemu PATCH] only writing out the last byte of MAC makes it have effect

2013-03-25 Thread Michael S. Tsirkin
On Mon, Mar 25, 2013 at 10:23:57AM +0800, Amos Kong wrote: On Fri, Mar 22, 2013 at 10:45:09AM +1030, Rusty Russell wrote: Michael S. Tsirkin m...@redhat.com writes: On Thu, Mar 21, 2013 at 02:44:50PM +0800, Amos Kong wrote: The lengcy guests don't have mac programming command, we don't

[Qemu-devel] [Bug 1159605] [NEW] run command hangs using -M none

2013-03-25 Thread jiamswang
Public bug reported: when i run following command, it just hangs there qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -machine none,kernel_irqchip=on -monitor unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile

Re: [Qemu-devel] [PATCH v3] gtk: Release modifier when graphic console loses keyboard focus

2013-03-25 Thread Stefan Hajnoczi
On Sun, Mar 24, 2013 at 07:10:02PM +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com This solves, e.g., sticky ALT when selecting a GTK menu, switching to a different window or selecting a different virtual console. Signed-off-by: Jan Kiszka jan.kis...@siemens.com ---

Re: [Qemu-devel] Abort in monitor_puts.

2013-03-25 Thread Gerd Hoffmann
On 03/22/13 22:39, Luiz Capitulino wrote: On Fri, 22 Mar 2013 16:50:39 -0400 Luiz Capitulino lcapitul...@redhat.com wrote: On Fri, 22 Mar 2013 10:17:58 +0100 KONRAD Frédéric fred.kon...@greensocs.com wrote: Hi, Seems there is an issue with the current git (found by toddf on IRC). To

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Jan Kiszka
On 2013-03-12 11:32, Gerd Hoffmann wrote: Use QemuConsole instead. Updates interfaces in console.[ch] and adapts gfx hardware emulation code. Breaks vmware-vga, the X server no longer starts up. I do not spot any obvious typo etc. in the conversion, so I suspect, some values returned by the

[Qemu-devel] qxl: qxl's event named QXL_INTERRUPT_DISPLAY

2013-03-25 Thread 楼正伟
Hi, I'm learning about qxl device in KVM VM. I got a problem and asks for help. Thanks. The qemu's command is: qemu-system-x86_64 -spice port=5900,disable-ticketing -vga qxl --enable-kvm ... The code in function 'interface_get_command' is followed: SPICE_RING_POP(ring, notify);

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Gerd Hoffmann
On 03/25/13 08:50, Jan Kiszka wrote: On 2013-03-12 11:32, Gerd Hoffmann wrote: Use QemuConsole instead. Updates interfaces in console.[ch] and adapts gfx hardware emulation code. Breaks vmware-vga, the X server no longer starts up. I do not spot any obvious typo etc. in the conversion,

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Jan Kiszka
On 2013-03-25 08:55, Gerd Hoffmann wrote: On 03/25/13 08:50, Jan Kiszka wrote: On 2013-03-12 11:32, Gerd Hoffmann wrote: Use QemuConsole instead. Updates interfaces in console.[ch] and adapts gfx hardware emulation code. Breaks vmware-vga, the X server no longer starts up. I do not spot

[Qemu-devel] [Bug 1159605] Re: run command hangs using -M none

2013-03-25 Thread Shehbaz Jaffer
** Tags added: paramter passing -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1159605 Title: run command hangs using -M none Status in QEMU: New Bug description: when i run following

Re: [Qemu-devel] [RFC 10/12] Add qemu_put_buffer_no_copy

2013-03-25 Thread Orit Wasserman
On 03/23/2013 06:27 PM, Michael R. Hines wrote: Can you add a flag or something to indicate that the iov pointer belongs to RAM and not to device state? That way, I could re-use this code for RDMA - if I see this flag, I will know to send to RDMA. This function is called only for ram

[Qemu-devel] [PULL 0/2] ipxe: disable two second timeout

2013-03-25 Thread Gerd Hoffmann
Hi, See $subject, minor tweak for the ipxe roms. please pull, Gerd The following changes since commit fe6344a05fba26e16863fefcb823242e579b0991: Remove device_tree.o from hw/moxie/Makefile.objs. (2013-03-24 11:30:04 +0100) are available in the git repository at:

[Qemu-devel] [PATCH 2/2] ipxe: update binaries

2013-03-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- pc-bios/efi-e1000.rom| Bin 174080 - 173568 bytes pc-bios/efi-eepro100.rom | Bin 175104 - 174592 bytes pc-bios/efi-ne2k_pci.rom | Bin 173568 - 173056 bytes pc-bios/efi-pcnet.rom| Bin 173568 - 173056 bytes pc-bios/efi-rtl8139.rom |

[Qemu-devel] [PATCH 1/2] ipxe: disable two second timeout

2013-03-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- roms/Makefile |7 +-- roms/config.ipxe.general.h |2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 roms/config.ipxe.general.h diff --git a/roms/Makefile b/roms/Makefile index 3dc5609..7a228ae

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Gerd Hoffmann
On 03/25/13 08:59, Jan Kiszka wrote: On 2013-03-25 08:55, Gerd Hoffmann wrote: On 03/25/13 08:50, Jan Kiszka wrote: On 2013-03-12 11:32, Gerd Hoffmann wrote: Use QemuConsole instead. Updates interfaces in console.[ch] and adapts gfx hardware emulation code. Breaks vmware-vga, the X server

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Jan Kiszka
On 2013-03-25 09:21, Gerd Hoffmann wrote: On 03/25/13 08:59, Jan Kiszka wrote: On 2013-03-25 08:55, Gerd Hoffmann wrote: On 03/25/13 08:50, Jan Kiszka wrote: On 2013-03-12 11:32, Gerd Hoffmann wrote: Use QemuConsole instead. Updates interfaces in console.[ch] and adapts gfx hardware

Re: [Qemu-devel] [PATCHv4 1/9] move vector definitions to qemu-common.h

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: vector optimizations will now be used at various places not just in is_dup_page() in arch_init.c this patch also adds a zero splat vector. Signed-off-by: Peter Lieven p...@kamp.de Reviewed-by: Eric Blake ebl...@redhat.com --- arch_init.c

[Qemu-devel] [Bug 1159605] Re: run command hangs using -M none

2013-03-25 Thread Shehbaz Jaffer
Hi, Please see notes about all the commands that you are mentioning in the bug : 1. qemu-system-x86_64 -enable-kvm -S -no-user-config -nodefaults -nographic -machine none,kernel_irqchip=on -monitor unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait -pidfile

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Gerd Hoffmann
Hi, Any hints in the X server log? vmwlegacy(0): Weight given (565) is inconsistent with the depth (24) Weight hints depth 16 indeed. What depth used the server to run at? 16 or 24? cheers, Gerd

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Jan Kiszka
On 2013-03-25 09:39, Gerd Hoffmann wrote: Hi, Any hints in the X server log? vmwlegacy(0): Weight given (565) is inconsistent with the depth (24) Weight hints depth 16 indeed. What depth used the server to run at? 16 or 24? 24 signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCHv4 2/9] cutils: add a function to find non-zero content in a buffer

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: this adds buffer_find_nonzero_offset() which is a SSE2/Altivec optimized function that searches for non-zero content in a buffer. due to the optimizations used in the function there are restrictions on buffer address and search length. the

Re: [Qemu-devel] [PATCHv4 3/9] buffer_is_zero: use vector optimizations if possible

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: performance gain on SSE2 is approx. 20-25%. altivec is not tested. performance for unsigned long arithmetic is unchanged. Signed-off-by: Peter Lieven p...@kamp.de Reviewed-by: Eric Blake ebl...@redhat.com --- util/cutils.c |5 + 1 file

[Qemu-devel] [Bug 1159605] Re: run command hangs using -M none

2013-03-25 Thread Shehbaz Jaffer
** Changed in: qemu Status: New = Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1159605 Title: run command hangs using -M none Status in QEMU: Invalid Bug description: when i

Re: [Qemu-devel] [PATCH] block: Add options QDict to bdrv_file_open() prototypes (fix MinGW build)

2013-03-25 Thread Stefan Hajnoczi
On Sun, Mar 24, 2013 at 08:08:36AM +0100, Stefan Weil wrote: The new parameter is unused yet. This part was missing in commit 787e4a8500020695eb391e2f1cc4767ee071d441. Cc: Kevin Wolf kw...@redhat.com Cc: Eric Blake ebl...@redhat.com Signed-off-by: Stefan Weil s...@weilnetz.de ---

Re: [Qemu-devel] [PATCH] rbd: fix compile error

2013-03-25 Thread Stefan Hajnoczi
On Sun, Mar 24, 2013 at 03:41:15PM +0800, Liu Yuan wrote: From: Liu Yuan tailai...@taobao.com Commit 787e4a85 [block: Add options QDict to bdrv_file_open() prototypes] didn't update rbd.c accordingly. Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com

Re: [Qemu-devel] [PATCHv4 2/9] cutils: add a function to find non-zero content in a buffer

2013-03-25 Thread Peter Lieven
Am 25.03.2013 um 09:53 schrieb Orit Wasserman owass...@redhat.com: On 03/22/2013 02:46 PM, Peter Lieven wrote: this adds buffer_find_nonzero_offset() which is a SSE2/Altivec optimized function that searches for non-zero content in a buffer. due to the optimizations used in the function

Re: [Qemu-devel] [PATCH] ifname=xxx for -netdev bridge

2013-03-25 Thread Stefan Hajnoczi
On Thu, Mar 21, 2013 at 07:05:09PM +0100, Alexandre Kandalintsev wrote: Hi! Here is the patch that allows us to specify the name of tap interface when -netdev bridge is used. It's like -netdev tap,ifname=xxx, but for bridges. ** Motivation ** We've got zillions of VMs and would

Re: [Qemu-devel] [PATCHv4 4/9] bitops: use vector algorithm to optimize find_next_bit()

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: this patch adds the usage of buffer_find_nonzero_offset() to skip large areas of zeroes. compared to loop unrolling presented in an earlier patch this adds another 50% performance benefit for skipping large areas of zeroes. loop unrolling alone

Re: [Qemu-devel] [RFC PATCH 3/3] mc146818rtc: export the timezone information

2013-03-25 Thread Paolo Bonzini
Il 28/02/2013 03:12, H. Peter Anvin ha scritto: From: H. Peter Anvin h...@zytor.com There is no standard method for storing timezone information associated with the classic PC/AT RTC, however, there are standard methods in ACPI (Time and Alarm Device) and EFI (GetTime/SetTime) for getting

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2013-03-25 Thread Paolo Bonzini
Il 24/03/2013 06:06, H. Peter Anvin ha scritto: Low priority ping on this patchset...? -hpa I think it fell through the cracks due to the RFC tag. Patches 1 and 2 look good, but Anthony does not apply TCG patches. CCing Blue and Aurelien. Paolo

Re: [Qemu-devel] [PATCH 06/14] nbd: Keep hostname and port separate

2013-03-25 Thread Kevin Wolf
Am 22.03.2013 um 23:46 hat Paolo Bonzini geschrieben: Il 22/03/2013 18:41, Kevin Wolf ha scritto: +QemuOpts *opts = qemu_opts_create_nofail(socket_optslist); + +qemu_opt_set(opts, host, s-inet_addr-host); +qemu_opt_set(opts, port, s-inet_addr-port); +if

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Gerd Hoffmann
On 03/25/13 09:40, Jan Kiszka wrote: On 2013-03-25 09:39, Gerd Hoffmann wrote: Hi, Any hints in the X server log? vmwlegacy(0): Weight given (565) is inconsistent with the depth (24) Weight hints depth 16 indeed. What depth used the server to run at? 16 or 24? 24 As expected.

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2013-03-25 Thread Andreas Färber
Am 24.03.2013 06:06, schrieb H. Peter Anvin: Low priority ping on this patchset...? You forgot to CC me on the CPU models... 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] [PATCHv4 2/9] cutils: add a function to find non-zero content in a buffer

2013-03-25 Thread Orit Wasserman
On 03/25/2013 10:56 AM, Peter Lieven wrote: Am 25.03.2013 um 09:53 schrieb Orit Wasserman owass...@redhat.com: On 03/22/2013 02:46 PM, Peter Lieven wrote: this adds buffer_find_nonzero_offset() which is a SSE2/Altivec optimized function that searches for non-zero content in a buffer.

Re: [Qemu-devel] [PATCHv4 5/9] migration: search for zero instead of dup pages

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: virtually all dup pages are zero pages. remove the special is_dup_page() function and use the optimized buffer_find_nonzero_offset() function instead. here buffer_find_nonzero_offset() is used directly to avoid the unnecssary additional checks in

Re: [Qemu-devel] [PATCHv4 6/9] migration: add an indicator for bulk state of ram migration

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: the first round of ram transfer is special since all pages are dirty and thus all memory pages are transferred to the target. this patch adds a boolean variable to track this stage. Signed-off-by: Peter Lieven p...@kamp.de Reviewed-by: Eric Blake

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Jan Kiszka
On 2013-03-25 10:10, Gerd Hoffmann wrote: On 03/25/13 09:40, Jan Kiszka wrote: On 2013-03-25 09:39, Gerd Hoffmann wrote: Hi, Any hints in the X server log? vmwlegacy(0): Weight given (565) is inconsistent with the depth (24) Weight hints depth 16 indeed. What depth used the server to

Re: [Qemu-devel] [PATCH 11/20] qemu-char: use a glib timeout instead of qemu-timer

2013-03-25 Thread Stefan Hajnoczi
On Fri, Mar 15, 2013 at 4:44 PM, Anthony Liguori aligu...@us.ibm.com wrote: Laurent Desnogues laurent.desnog...@gmail.com writes: Hello, On Tue, Mar 5, 2013 at 6:51 PM, Amit Shah amit.s...@redhat.com wrote: From: Anthony Liguori aligu...@us.ibm.com Signed-off-by: Anthony Liguori

Re: [Qemu-devel] [RFC PATCH 1/3] target-i386: Add 486sx, old486, and old486sx CPU models

2013-03-25 Thread Andreas Färber
Am 28.02.2013 03:12, schrieb H. Peter Anvin: From: H. Peter Anvin h...@zytor.com Add models for 486SX, and pre-CPUID versions of the 486 (DX SX). Change the model number for the standard 486DX to a model which actually had CPUID. Note: these models are fairly vestigial, for example most

Re: [Qemu-devel] [PATCHv4 2/9] cutils: add a function to find non-zero content in a buffer

2013-03-25 Thread Paolo Bonzini
+size_t buffer_find_nonzero_offset(const void *buf, size_t len) +{ +VECTYPE *p = (VECTYPE *)buf; +VECTYPE zero = ZERO_SPLAT; +size_t i; + +assert(len % (BUFFER_FIND_NONZERO_OFFSET_UNROLL_FACTOR +* sizeof(VECTYPE)) == 0); +assert(((uintptr_t) buf) %

Re: [Qemu-devel] [PATCHv4 7/9] migration: do not sent zero pages in bulk stage

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: during bulk stage of ram migration if a page is a zero page do not send it at all. the memory at the destination reads as zero anyway. even if there is an madvise with QEMU_MADV_DONTNEED at the target upon receipt of a zero page I have observed

Re: [Qemu-devel] [PATCH 14/42] migration: prepare to access s-state outside critical sections

2013-03-25 Thread Stefan Hajnoczi
On Fri, Feb 22, 2013 at 5:36 PM, Paolo Bonzini pbonz...@redhat.com wrote: Accessing s-state outside the big QEMU lock will simplify a bit the locking/unlocking of the iothread lock. We need to keep the lock in migrate_fd_error and migrate_fd_completed, however, because they call

Re: [Qemu-devel] qxl: qxl's event named QXL_INTERRUPT_DISPLAY

2013-03-25 Thread Alon Levy
Hi, I'm learning about qxl device in KVM VM. I got a problem and asks for help. Thanks. The qemu's command is: qemu-system-x86_64 -spice port=5900,disable-ticketing -vga qxl --enable-kvm ... The code in function 'interface_get_command' is followed:

Re: [Qemu-devel] [PATCH 02/10] versatile_pci: Expose PCI I/O region on Versatile PB

2013-03-25 Thread Peter Maydell
On 25 March 2013 01:01, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Sun, Mar 24, 2013 at 9:32 PM, Peter Maydell peter.mayd...@linaro.org wrote: Comments in the QEMU source code claim that the version of the PCI controller on the VersatilePB board doesn't support the PCI I/O

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Gerd Hoffmann
On 03/25/13 10:32, Jan Kiszka wrote: On 2013-03-25 10:10, Gerd Hoffmann wrote: On 03/25/13 09:40, Jan Kiszka wrote: On 2013-03-25 09:39, Gerd Hoffmann wrote: Hi, Any hints in the X server log? vmwlegacy(0): Weight given (565) is inconsistent with the depth (24) Weight hints depth 16

Re: [Qemu-devel] [PATCH 14/42] migration: prepare to access s-state outside critical sections

2013-03-25 Thread Gerd Hoffmann
Hi, http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/566/steps/compile/logs/stdio The latest RHEL6 mingw gcc is version 4.4 but this buildslave is RHEL6.1 so perhaps it's an older version that is missing the atomics builtins? No, it's RHEL-6.4 actually, even though the

Re: [Qemu-devel] [PATCH 1/8] RFC: chardev frontend open handling cleanup

2013-03-25 Thread Alon Levy
This patch-series is the result of the [PATCH 1/2] char: add qemu_chr_be_is_fe_connected discussion thread. This patch series (tries to) make(s) the frontend open concept both more explicit and generic, and significantly cleans up the surrounding code. The whole patch series looks good

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Jan Kiszka
On 2013-03-25 10:48, Gerd Hoffmann wrote: On 03/25/13 10:32, Jan Kiszka wrote: On 2013-03-25 10:10, Gerd Hoffmann wrote: On 03/25/13 09:40, Jan Kiszka wrote: On 2013-03-25 09:39, Gerd Hoffmann wrote: Hi, Any hints in the X server log? vmwlegacy(0): Weight given (565) is inconsistent with

Re: [Qemu-devel] [PATCHv4 2/9] cutils: add a function to find non-zero content in a buffer

2013-03-25 Thread Orit Wasserman
On 03/25/2013 11:42 AM, Paolo Bonzini wrote: +size_t buffer_find_nonzero_offset(const void *buf, size_t len) +{ +VECTYPE *p = (VECTYPE *)buf; +VECTYPE zero = ZERO_SPLAT; +size_t i; + +assert(len % (BUFFER_FIND_NONZERO_OFFSET_UNROLL_FACTOR +* sizeof(VECTYPE)) ==

Re: [Qemu-devel] [PATCHv4 8/9] migration: do not search dirty pages in bulk stage

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: avoid searching for dirty pages just increment the page offset. all pages are dirty anyway. Signed-off-by: Peter Lieven p...@kamp.de Reviewed-by: Eric Blake ebl...@redhat.com --- arch_init.c |8 +++- 1 file changed, 7 insertions(+), 1

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Jan Kiszka
On 2013-03-25 10:55, Jan Kiszka wrote: On 2013-03-25 10:48, Gerd Hoffmann wrote: On 03/25/13 10:32, Jan Kiszka wrote: On 2013-03-25 10:10, Gerd Hoffmann wrote: On 03/25/13 09:40, Jan Kiszka wrote: On 2013-03-25 09:39, Gerd Hoffmann wrote: Hi, Any hints in the X server log? vmwlegacy(0):

Re: [Qemu-devel] [PATCH v2] net: increase buffer size to accommodate Jumbo frame pkts

2013-03-25 Thread Stefan Hajnoczi
On Mon, Mar 18, 2013 at 11:43:44AM -0700, sfel...@cumulusnetworks.com wrote: From: Scott Feldman sfel...@cumulusnetworks.com Socket buffer sizes were hard-coded to 4K for VDE and socket netdevs. Bump this up to 68K (ala tap netdev) to handle maximum GSO packet size (64k) plus plenty of

Re: [Qemu-devel] [PATCHv4 9/9] migration: use XBZRLE only after bulk stage

2013-03-25 Thread Orit Wasserman
On 03/22/2013 02:46 PM, Peter Lieven wrote: at the beginning of migration all pages are marked dirty and in the first round a bulk migration of all pages is performed. currently all these pages are copied to the page cache regardless of whether they are frequently updated or not. this

Re: [Qemu-devel] [PATCH 02/10] versatile_pci: Expose PCI I/O region on Versatile PB

2013-03-25 Thread Peter Maydell
On 25 March 2013 09:47, Peter Maydell peter.mayd...@linaro.org wrote: On 25 March 2013 01:01, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: This is the one and only usage of -realview. I wonder if this argument is flawed - in real hardware is there any functional difference between

Re: [Qemu-devel] [PATCHv4 0/9] buffer_is_zero / migration optimizations

2013-03-25 Thread Peter Lieven
On 22.03.2013 22:24, Paolo Bonzini wrote: Il 22/03/2013 20:20, Peter Lieven ha scritto: I think patch 4 is a bit overengineered. I would prefer the simple patch you had using three/four non-vectorized accesses. The setup cost of the vectorized buffer_is_zero is quite high, and 64 bits are

[Qemu-devel] virsh resume/qemu loadvm (from disk) latency

2013-03-25 Thread Thomas Knauth
Dear all, why does the resume time depend on the maximum amount of memory the instance is configured with? For a dump size of 500 MB resuming the instance takes 2/3/5 seconds for a virtual machine configured with 1/2/4 GB of RAM. I measure the time it takes for the 'virsh restore file' command to

Re: [Qemu-devel] [PATCH 16/18] console: stop using DisplayState in gfx hardware emulation

2013-03-25 Thread Gerd Hoffmann
Hi, [5425.580115] displaysurface_create_from surface=0x7ff315d3df40, 800x600, bpp 16, bswap 0 [5425.580257] displaysurface_free surface=0x7ff3158c33b0 This is vga=0x314 Looks like we have some funky interaction between vga and vmware. I'll go dig. Meanwhile you can try vga=0x315

Re: [Qemu-devel] [PATCHv4 0/9] buffer_is_zero / migration optimizations

2013-03-25 Thread Paolo Bonzini
ubuntu 12.04 LTS 64-bit desktop with 1G memory shortly after boot: histogram: 31.7% 32.9% [...] 36.4% 100.0% --- opensuse 11.1 64-bit with 24GB ram (busy server) histogram: 97.5% 97.9% [...] 99.5% 100.0% --- windows server 2008 R2 with 8G ram running for 3 days: histogram: 20.9%

[Qemu-devel] [PATCH 2/2] block: Add options QDict to bdrv_file_open() prototypes (fix MinGW build)

2013-03-25 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de The new parameter is unused yet. This part was missing in commit 787e4a8500020695eb391e2f1cc4767ee071d441. Cc: Kevin Wolf kw...@redhat.com Cc: Eric Blake ebl...@redhat.com Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi

Re: [Qemu-devel] [PATCH 14/42] migration: prepare to access s-state outside critical sections

2013-03-25 Thread Paolo Bonzini
- Messaggio originale - Da: Gerd Hoffmann kra...@redhat.com A: Stefan Hajnoczi stefa...@gmail.com Cc: Paolo Bonzini pbonz...@redhat.com, qemu-devel qemu-devel@nongnu.org, Orit Wasserman owass...@redhat.com, Juan Quintela quint...@redhat.com Inviato: Lunedì, 25 marzo 2013 10:52:36

[Qemu-devel] [PULL 0/2] Block patches

2013-03-25 Thread Stefan Hajnoczi
This tiny pull request contains build fixes for a regression introduced in the last pull request. Kevin and I investigated to find out why these build failures were missed. Both my buildslave and Kevin's workstation did not have the rbd libraries installed so block/rbd.c was not built. The

[Qemu-devel] [PATCH 1/2] rbd: fix compile error

2013-03-25 Thread Stefan Hajnoczi
From: Liu Yuan tailai...@taobao.com Commit 787e4a85 [block: Add options QDict to bdrv_file_open() prototypes] didn't update rbd.c accordingly. Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Liu Yuan tailai...@taobao.com Reviewed-by: Stefan Weil

Re: [Qemu-devel] [PATCHv4 0/9] buffer_is_zero / migration optimizations

2013-03-25 Thread Peter Lieven
Am 25.03.2013 um 11:53 schrieb Paolo Bonzini pbonz...@redhat.com: ubuntu 12.04 LTS 64-bit desktop with 1G memory shortly after boot: histogram: 31.7% 32.9% [...] 36.4% 100.0% --- opensuse 11.1 64-bit with 24GB ram (busy server) histogram: 97.5% 97.9% [...] 99.5% 100.0% --- windows

Re: [Qemu-devel] [PATCHv2 0/6] ARM dump-guest-memory support

2013-03-25 Thread Andreas Färber
Hi, Am 24.03.2013 18:27, schrieb Rabin Vincent: A second patchset to add dump-guest-memory support for ARM. This version of the patchset addresses the following comments from the previous posting, and also adds some more patches to the core dump code (patch #4 and #6): - memset prstatus

Re: [Qemu-devel] [PULL 0/2] Block patches

2013-03-25 Thread Richard W.M. Jones
On Mon, Mar 25, 2013 at 12:00:47PM +0100, Stefan Hajnoczi wrote: This tiny pull request contains build fixes for a regression introduced in the last pull request. Kevin and I investigated to find out why these build failures were missed. Both my buildslave and Kevin's workstation did not

Re: [Qemu-devel] [PATCH] Introduce query-cpu-max QMP command and cpu_max HMP counterpart

2013-03-25 Thread Michal Novotny
On 03/21/2013 01:51 PM, Luiz Capitulino wrote: On Tue, 12 Mar 2013 17:03:31 +0100 Michal Novotny minov...@redhat.com wrote: This is the patch to introduce the query-cpu-max QMP command to get the maximum number of CPUs supported by the currently running emulator instance. This may differ

Re: [Qemu-devel] Abort in monitor_puts.

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 08:42:57 +0100 Gerd Hoffmann kra...@redhat.com wrote: On 03/22/13 22:39, Luiz Capitulino wrote: On Fri, 22 Mar 2013 16:50:39 -0400 Luiz Capitulino lcapitul...@redhat.com wrote: On Fri, 22 Mar 2013 10:17:58 +0100 KONRAD Frédéric fred.kon...@greensocs.com wrote:

[Qemu-devel] [PATCH v9 01/24] target-arm: add Faraday ARMv5TE processors support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com This patch includes the single core support to FA606TE, FA626TE, FA616TE and FA726TE with CP15 Faraday extensions (AUX and I/D-Scratchpad). Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- target-arm/cpu.c | 52

[Qemu-devel] [PATCH v9 03/24] hw/arm: add FTINTC020 interrupt controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTINTC020 interrupt controller supports both FIQ and IRQ signals to the microprocessor. It can handle up to 64 configurable IRQ sources and 64 FIQ sources. The output signals to the microprocessor can be configured as level-high/low active or

[Qemu-devel] [PATCH v9 00/24] hw/arm: add Faraday A369 SoC platform support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com These patches introduce Faraday A369 SoC platform support. Here are some public documents for your reference. http://www.faraday-tech.com/html/documentation/index.html The partial version of faraday cpu datasheet with only the CP15 and MPU description

[Qemu-devel] [PATCH v9 20/24] hw/arm: add FTTSC010 touchscreen controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTTSC010 provides two operation modes to sample the analog input voltage. 1. The manual operation mode needs to program and control the panel drivers by software step-by-step for the x-y position measurement. 2. The auto-scan mode

[Qemu-devel] [PATCH v9 07/24] hw/arm: add FTWDT010 watchdog timer support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTWDT010 is used to prevent system from infinite loop while software gets trapped in the deadlock. Under the normal operation, users should restart FTWDT010 at the regular intervals before counter counts down to 0. If the counter does reach 0,

[Qemu-devel] [PATCH v9 06/24] hw/arm: add FTPWMTMR010 timer support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTPWMTMR010 is an APB device which provides up to 8 independent timers. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs|2 +- hw/arm/ftplat_a369soc.c | 10 ++ hw/ftpwmtmr010.c| 261

[Qemu-devel] [PATCH v9 04/24] hw/arm: add FTAHBC020 AHB controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com It's used to manage AHB slave devices and also the AHB remap function for slave4 slave6. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs|2 +- hw/arm/ftplat_a369soc.c |9 ++ hw/ftahbc020.c | 216

[Qemu-devel] [PATCH v9 19/24] hw/arm: add FTLCDC200 LCD controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTLCDC200 Color LCD controller performs translation of pixel-coded data into the required formats and timings to drive a variety of single/dual mono and color LCDs. Depending on the LCD type and mode, the unpacked data can represent: 1. an actual

[Qemu-devel] [PATCH v9 18/24] hw/arm: add FTGMAC100 1Gbps ethernet support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTGMAC100 Ethernet controller has a DMA engine which handles all data transfers between the system memory and on-chip memories. Its DMA engine supports both 16-bits and 32-bits alignment, and thus make it possible to support zero-copy transfer at

[Qemu-devel] [PATCH v9 05/24] hw/arm: add FTDDRII030 DDRII controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTDDRII030 is a DDRII SDRAM controller which is responsible for SDRAM initialization. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs|2 +- hw/arm/ftplat_a369soc.c |8 ++ hw/ftddrii030.c | 192

[Qemu-devel] [PATCH v9 23/24] hw/arm: add FTTMR010 timer support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTTMR010 provides three independent sets of sub-timers. Two match registers are provided for each sub-timer, whenever the value of the match registers equals any one value of the sub-timers, the timer interrupt will be immediately triggered. And it

[Qemu-devel] [PATCH v9 24/24] hw/arm: add FTSPI020 SPI flash controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSPI020 is an integrated SPI Flash controller which supports up to 4 flash chips. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs |2 +- hw/arm/ftplat_a369.c | 16 +++ hw/ftspi020.c| 341

[Qemu-devel] [PATCH v9 21/24] hw/arm: add FTSDC010 MMC/SD controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTSDC010 is a simple MMC/SD host controller and many of its registers are similar to Arm PrimeCell PL181. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs|2 +- hw/arm/ftplat_a369soc.c |7 + hw/ftsdc010.c

[Qemu-devel] [PATCH v9 02/24] hw/arm: add Faraday a369 SoC platform support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The Faraday A369 EVB is a Faraday SoC platform evalution board used for Faraday IP functional verification based on the well-known ARM AMBA 2.0 architecture. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs|2 +

Re: [Qemu-devel] [PULL 0/2] Block patches

2013-03-25 Thread Eric Blake
On 03/25/2013 05:00 AM, Stefan Hajnoczi wrote: This tiny pull request contains build fixes for a regression introduced in the last pull request. Kevin and I investigated to find out why these build failures were missed. Both my buildslave and Kevin's workstation did not have the rbd

[Qemu-devel] [PATCH v9 22/24] hw/arm: add FTMAC110 10/100Mbps ethernet support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTMAC110 is an Ethernet controller that provides AHB master capability and is in full compliance with the IEEE 802.3 10/100 Mbps specifications. Its DMA controller handles all data transfers between system memory and on-chip memories. It supports

Re: [Qemu-devel] [PATCH 07/10] versatile_pci: Implement the correct PCI IRQ mapping

2013-03-25 Thread Peter Maydell
On 25 March 2013 12:12, Michael S. Tsirkin m...@redhat.com wrote: On Sun, Mar 24, 2013 at 11:32:37AM +, Peter Maydell wrote: +return (PCI_SLOT(d-devfn) + irq_num - 2) % PCI_NUM_PINS; It seems this can be a bit shorter: pci_swizzle_map_irq_fn(d, irq_num - 2) and below irq_num

[Qemu-devel] [PATCH v9 17/24] qemu/bitops.h: add the bit ordering reversal functions

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- include/qemu/bitops.h | 59 - 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h index

[Qemu-devel] [PATCH v9 10/24] hw/arm: add FTDMAC020 AHB DMA support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The Faraday FTDMAC020 provides eight configurable channels for the memory-to-memory, memory-to-peripheral, peripheral-to-peripheral, and peripheral-to-memory transfers. Each DMA channel supports chain transfer and can be programmed to one of the 16

[Qemu-devel] [PATCH v9 08/24] hw/arm: add FTRTC011 RTC timer support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com It provides separate second, minute, hour, and day counters. The second counter is toggled each second, the minute counter is toggled each minute, the hour counter is toggled each hour, and the day counter is toggled each day. The FTRTC011 provides a

Re: [Qemu-devel] [PATCH 07/10] versatile_pci: Implement the correct PCI IRQ mapping

2013-03-25 Thread Michael S. Tsirkin
On Sun, Mar 24, 2013 at 11:32:37AM +, Peter Maydell wrote: Implement the correct IRQ mapping for the Versatile PCI controller; it differs between realview and versatile boards, but the previous QEMU implementation was correct only for the first PCI card on a versatile board, since we

Re: [Qemu-devel] [PATCH 00/10] Fix versatile_pci (and break versatilepb linux guests!)

2013-03-25 Thread Peter Maydell
On 24 March 2013 21:37, Michael S. Tsirkin m...@redhat.com wrote: On Sun, Mar 24, 2013 at 09:16:28PM +, Arnd Bergmann wrote: I think it actually does on versatile and other platforms on which the kernel probes the PCI bus itself, rather than relying on firmware to have resources assigned

[Qemu-devel] [PATCH v9 11/24] hw/arm: add FTAPBBRG020 APB DMA support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTAPBBRG020 supports the DMA functions for the AHB-to-AHB, AHB-to-APB, APB-to-AHB, and APB-to-APB transactions. The DMA engine can support up to 4 DMA channels (A, B, C, and D) and 15 handshaking channels. A DMA channel granted by the arbiter block

[Qemu-devel] [PATCH v9 14/24] hw: Add AudioCodecClass for wm87xx audio class abstration.

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/Makefile.objs |1 + hw/arm/spitz.c |9 +++-- hw/arm/z2.c|9 +++-- hw/audio.c | 81 +++

[Qemu-devel] [PATCH v9 12/24] hw/arm: add FTNANDC021 nand flash controller support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTNANDC021 is an integrated NAND flash controller which re-pack the NAND flash command set with a shorter built-in opcode. It also provides a register base interface for user to easily access the underlying NAND flash chips, and also supports HW ECC.

[Qemu-devel] [PATCH v9 09/24] tests: add QTest for FTRTC011

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com The FTRTC011 QEMU model is implemented without calender functions. It acts in counter mode only, all the time timezone conversion relies on the c runtime library. (i.e. mktime(), localtime() ...etc) Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com

[Qemu-devel] [PATCH v9 15/24] hw: add WM8731 audio codec support

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Wolfson WM8731 is a simple audio codec for embedded systems. It has 2 input and 1 output ports: ** Input ** 1. Linue-In 2. Microphone ** Output ** 1. Headphone out BTW it's based on hw/wm8750.c with 16-bit I2S support by default.

[Qemu-devel] [PATCH v9 16/24] The FTSSP010 is a multi-function synchronous serial port interface controller which supports SSP, SPI, I2S, AC97 and SPDIF.

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su dant...@faraday-tech.com Only I2S and SPI protocol have been implemented in this patch. Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com --- hw/arm/Makefile.objs|3 +- hw/arm/ftplat_a369.c| 31 +++ hw/arm/ftplat_a369soc.c | 17 ++ hw/faraday.h|

[Qemu-devel] [PATCH 3/7] net: iovec checksum calculator

2013-03-25 Thread Stefan Hajnoczi
From: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Yan Vugenfirer y...@daynix.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- include/net/checksum.h | 12 net/checksum.c | 29 + 2

[Qemu-devel] [PATCH 2/7] Checksum-related utility functions

2013-03-25 Thread Stefan Hajnoczi
From: Dmitry Fleytman dmi...@daynix.com net_checksum_add_cont() checksum calculation for scattered data with odd chunk sizes net_raw_checksum() checksum calculation for a buffer Signed-off-by: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Yan Vugenfirer y...@daynix.com Signed-off-by: Stefan

[Qemu-devel] [PULL 0/7] Net patches

2013-03-25 Thread Stefan Hajnoczi
The big change here is the new vmxnet3 emulated NIC. The following changes since commit fe6344a05fba26e16863fefcb823242e579b0991: Remove device_tree.o from hw/moxie/Makefile.objs. (2013-03-24 11:30:04 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git net

[Qemu-devel] [PATCH 4/7] Common definitions for VMWARE devices

2013-03-25 Thread Stefan Hajnoczi
From: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Dmitry Fleytman dmi...@daynix.com Signed-off-by: Yan Vugenfirer y...@daynix.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- hw/vmware_utils.h | 143 ++ hw/vmxnet_debug.h | 115 ++

[Qemu-devel] [PATCH 1/7] net: use socket_set_nodelay() for -netdev socket

2013-03-25 Thread Stefan Hajnoczi
Reduce -netdev socket latency by disabling the Nagle algorithm on SOCK_STREAM sockets in net/socket.c. Since we are tunelling Ethernet over TCP we shouldn't artificially delay outgoing packets, let the guest decide packet scheduling. I already get sub-millisecond -netdev socket ping times on

  1   2   3   >