[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 /var/lib/libvirt/qemu/capabiliti

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 > > 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 > --- > > Changes in v3: > - rebased > > ui/g

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 wrote: > >> On Fri, 22 Mar 2013 10:17:58 +0100 >> KONRAD Frédéric wrote: >> >>> Hi, >>> >>> Seems there is an issue with the current git (found by toddf on IRC). >>> >>> To reproduce: >>> >>> ./qemu-

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 conve

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. >> >>

[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 comman

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

[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: git://git.kraxel.org/qe

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

2013-03-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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 | Bin 177152 -

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

2013-03-25 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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 100644 --- a/roms/Ma

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 vmwar

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 g

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 > Reviewed-by: Eric Blake > --- > arch_init.c | 20

[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 /var/lib/libvirt/qemu/c

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 dig

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 fu

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 > Reviewed-by: Eric Blake > --- > util/cutils.c |5 + > 1 file changed, 5 insertion

[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

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 > Cc: Eric Blake > Signed-off-by: Stefan Weil > --- > block/raw-win32.c |6 -- > 1 file chan

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 > > Commit 787e4a85 [block: Add options QDict to bdrv_file_open() prototypes] > didn't > update rbd.c accordingly. > > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Signed-off-by: Liu Yuan > --- > block/rbd.c |3 ++- >

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 : > 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 r

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

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 alo

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" > > 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 this inf

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)

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?

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 : > >> 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. >>> >>> du

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 che

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 > 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

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 wrote: > Laurent Desnogues writes: > >> Hello, >> >> On Tue, Mar 5, 2013 at 6:51 PM, Amit Shah wrote: >>> From: Anthony Liguori >>> >>> Signed-off-by: Anthony Liguori >>> Signed-off-by: Amit Shah >>> --- >>> qemu-char.c | 68 >>> +

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" > > 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 of th

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); > >>>

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 observ

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 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 migrate_fd_cleanup. > > Rev

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: > SPIC

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 wrote: > On Sun, Mar 24, 2013 at 9:32 PM, Peter Maydell > 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 >> region, but this is incorrect; expose that region

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 > d

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

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 loo

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): W

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

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 > Reviewed-by: Eric Blake > --- > arch_init.c |8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff -

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

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 > > 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 room for the ethernet an

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 do

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 wrote: > On 25 March 2013 01:01, Peter Crosthwaite > 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 realview and versatile PCI requiring the leve

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 just

[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 ' command to retu

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 (800x6

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: > histogra

[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 The new parameter is unused yet. This part was missing in commit 787e4a8500020695eb391e2f1cc4767ee071d441. Cc: Kevin Wolf Cc: Eric Blake Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- block/raw-win32.c | 6 -- 1 file changed, 4 insertions(+), 2 deletion

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" > A: "Stefan Hajnoczi" > Cc: "Paolo Bonzini" , "qemu-devel" > , "Orit Wasserman" > , "Juan Quintela" > Inviato: Lunedì, 25 marzo 2013 10:52:36 > Oggetto: Re: [Qemu-devel] [PATCH 14/42] migration: prepare to access s->state > outside criti

[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 builds

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

2013-03-25 Thread Stefan Hajnoczi
From: Liu Yuan Commit 787e4a85 [block: Add options QDict to bdrv_file_open() prototypes] didn't update rbd.c accordingly. Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan Reviewed-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- block/rbd.c | 3 ++- 1 file changed, 2 insertions

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 : >> 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% >> >> --- >> >> windo

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 pr

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 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 machine from

Re: [Qemu-devel] Abort in monitor_puts.

2013-03-25 Thread Luiz Capitulino
On Mon, 25 Mar 2013 08:42:57 +0100 Gerd Hoffmann wrote: > On 03/22/13 22:39, Luiz Capitulino wrote: > > On Fri, 22 Mar 2013 16:50:39 -0400 > > Luiz Capitulino wrote: > > > >> On Fri, 22 Mar 2013 10:17:58 +0100 > >> KONRAD Frédéric wrote: > >> > >>> Hi, > >>> > >>> Seems there is an issue with

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- target-arm/cpu.c | 52 +++ target-arm/cpu.h |6 +++- target-arm

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 edge-rising/falling triggered.

[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 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 are available at my Goog

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 provides a periodic sampling

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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, FTWDT010 will try to reset th

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

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

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

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

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 true display gray or col

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 both Linux and WINCE. It al

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

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

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 would also issue an interr

[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 The FTSPI020 is an integrated SPI Flash controller which supports up to 4 flash chips. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs |2 +- hw/arm/ftplat_a369.c | 16 +++ hw/ftspi020.c| 341 ++ hw/ftspi020.h

[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 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 --- hw/arm/Makefile.objs|2 +- hw/arm/ftplat_a369soc.c |7 + hw/ftsdc010.c | 359 +++

[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 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 --- hw/arm/Makefile.objs|2 + hw/arm/ftplat_a369.c| 96 +++ h

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 libr

[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 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 half-word data transfer for

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 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 - 1 ? Y

[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 Signed-off-by: Kuo-Jung Su --- 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 affcc96..64cbb04 100644 --- a/include/qemu/bitops.h

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 handshaking channels in the h

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 programmable auto-alarm fun

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 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 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 in advance

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 is the only channel start

[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 Signed-off-by: Kuo-Jung Su --- hw/Makefile.objs |1 + hw/arm/spitz.c |9 +++-- hw/arm/z2.c|9 +++-- hw/audio.c | 81 +++ hw/audio.h | 56 ++

[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 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. However the optional ha

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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 --- tests/Makefile|3 + tests/ftrtc0

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

2013-03-25 Thread Kuo-Jung Su
From: Kuo-Jung Su 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. Signed-off-by: Kuo-Jung Su ---

[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 Only I2S and SPI protocol have been implemented in this patch. Signed-off-by: Kuo-Jung Su --- hw/arm/Makefile.objs|3 +- hw/arm/ftplat_a369.c| 31 +++ hw/arm/ftplat_a369soc.c | 17 ++ hw/faraday.h|3 + hw/ftssp010.c | 504 +++

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

2013-03-25 Thread Stefan Hajnoczi
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Yan Vugenfirer Signed-off-by: Stefan Hajnoczi --- include/net/checksum.h | 12 net/checksum.c | 29 + 2 files changed, 41 insertions(+) diff --git a/include/net/checksum.h b/i

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

2013-03-25 Thread Stefan Hajnoczi
From: Dmitry Fleytman 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 Signed-off-by: Yan Vugenfirer Signed-off-by: Stefan Hajnoczi --- include/net/checksum.h | 14 +++

[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 for

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

2013-03-25 Thread Stefan Hajnoczi
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Yan Vugenfirer Signed-off-by: Stefan Hajnoczi --- hw/vmware_utils.h | 143 ++ hw/vmxnet_debug.h | 115 ++ include/net/eth.h | 347 ++ net

[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 loca

[Qemu-devel] vmxnet3 iPXE compatibility

2013-03-25 Thread Stefan Hajnoczi
Hi Dmitry, QEMU vmxnet3 produces the following warning with iPXE (77f64b11f764e721f4f8704b7b90317e52d85fc3): $ cd ~/ipxe/src $ make bin/vmxnet3.rom $ qemu-system-x86_64 -netdev user,id=netdev0 -device vmxnet3,netdev=netdev0,romfile=bin/vmxnet3.rom [vmxnet3][WR][vmxnet3_peer_has_vnet_hdr]: Peer has

[Qemu-devel] [PATCH 5/7] Packet abstraction for VMWARE network devices

2013-03-25 Thread Stefan Hajnoczi
From: Dmitry Fleytman Signed-off-by: Dmitry Fleytman Signed-off-by: Yan Vugenfirer Signed-off-by: Stefan Hajnoczi --- hw/Makefile.objs | 1 + hw/vmxnet_rx_pkt.c | 187 ++ hw/vmxnet_rx_pkt.h | 174 hw/vmxnet_tx_pkt.c | 567 ++

  1   2   3   >