[Qemu-devel] [PATCH 6/6] Don't abort on memory allocation error

2014-01-29 Thread Orit Wasserman
It is better to fail migration in case of failure to allocate new cache item Signed-off-by: Orit Wasserman --- arch_init.c| 4 +++- include/migration/page_cache.h | 4 +++- page_cache.c | 16 +++- 3 files changed, 17 insertions(+), 7 deletions(

[Qemu-devel] [PATCH 4/6] XBZRLE cache size should not be larger than guest memory size

2014-01-29 Thread Orit Wasserman
Signed-off-by: Orit Wasserman --- migration.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/migration.c b/migration.c index 46a7305..25add6f 100644 --- a/migration.c +++ b/migration.c @@ -479,6 +479,13 @@ void qmp_migrate_set_cache_size(int64_t value, Error **errp) return;

[Qemu-devel] printf in qemu

2014-01-29 Thread Ayaz Akram
I observed that if i place printf in qemu at certain places like in hw./serial.c file, I can see the printing when my guest OS is running on qemu, while there are some other places like in pckbd.c (emulation of keyboard), where if printf is used, I am not able to see any printing while guest OS is

[Qemu-devel] [PATCH 2/6] Add check for cache size smaller than page size

2014-01-29 Thread Orit Wasserman
Signed-off-by: Orit Wasserman Reviewed-by: Juan Quintela --- arch_init.c | 4 migration.c | 10 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/arch_init.c b/arch_init.c index 66f5e82..8edeabe 100644 --- a/arch_init.c +++ b/arch_init.c @@ -178,6 +178,10 @@ static

[Qemu-devel] [PATCH 5/6] Don't abort on out of memory when creating page cache

2014-01-29 Thread Orit Wasserman
Signed-off-by: Orit Wasserman --- arch_init.c | 16 ++-- page_cache.c | 18 ++ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/arch_init.c b/arch_init.c index 5eff80b..806d096 100644 --- a/arch_init.c +++ b/arch_init.c @@ -664,8 +664,20 @@ static int r

[Qemu-devel] [PATCH 1/6] Set xbzrle buffers to NULL after freeing them to avoid double free errors

2014-01-29 Thread Orit Wasserman
Signed-off-by: Orit Wasserman Reviewed-by: Juan Quintela --- arch_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch_init.c b/arch_init.c index 77912e7..66f5e82 100644 --- a/arch_init.c +++ b/arch_init.c @@ -617,6 +617,9 @@ static void migration_end(void) g_free(XBZRLE.c

[Qemu-devel] [PATCH 3/6] migration:fix free XBZRLE decoded_buf wrong

2014-01-29 Thread Orit Wasserman
From: "Gonglei (Arei)" When qemu do live migration with xbzrle, qemu malloc decoded_buf at destination end but free it at source end. It will crash qemu by double free error in some scenarios. Splitting the XBZRLE structure for clear logic distinguishing src/dst side. Signed-off-by: ChenLiang R

[Qemu-devel] [PATCH 0/6] XBZRLE Fixes

2014-01-29 Thread Orit Wasserman
Fix memory leak and missing NULLs. Better cache size validation checks. Fail migration instead of aborting QEMU in case there is not enough memory for the page cache. Gonglei (Arei) (1): migration:fix free XBZRLE decoded_buf wrong Orit Wasserman (5): Set xbzrle buffers to NULL after freeing t

Re: [Qemu-devel] [PATCH target-arm v4 1/1] target-arm: Implements the ARM PMCCNTR register

2014-01-29 Thread Peter Crosthwaite
On Wed, Jan 29, 2014 at 10:28 PM, Peter Maydell wrote: > On 28 January 2014 06:25, Alistair Francis > wrote: >> This patch implements the ARM PMCCNTR register including >> the disable and reset components of the PMCR register. >> >> Signed-off-by: Alistair Francis >> --- >> This patch assumes t

Re: [Qemu-devel] pxe boot problems

2014-01-29 Thread Dietmar Maurer
> Does it work with TCG? It simply hangs a bit later if I use TCG, without any output on the console. But It works perfectly when I switch back to the pxe-XX.rom files. > Also, can you try with a NIC model different from the default e1000? same behavior with e1000, rtl8139, pcnet

[Qemu-devel] [PATCH v6 5/5] Add ust generated files to .gitignore

2014-01-29 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai Reviewed-by: Alex Bennée --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 1c9d63d..bed8dcf 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ trace/generated-tracers-dtrace.h trace/generated-tracers.dtrace t

[Qemu-devel] [PATCH v6 4/5] Update documentation for LTTng ust tracing

2014-01-29 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- docs/tracing.txt | 36 1 file changed, 36 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..bf2e15c 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,42 @@ The "ust" backend uses t

[Qemu-devel] [PATCH v6 3/5] Adapt Makefiles to the new LTTng ust interface

2014-01-29 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile| 5 + trace/Makefile.objs | 25 + 2 files changed, 30 insertions(+) diff --git a/Makefile b/Makefile index bdff4e4..ca51193 100644 --- a/Makefile +++ b/Makefile @@ -57,6

[Qemu-devel] [PATCH v6 1/5] Fix configure script for LTTng 2.x

2014-01-29 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/configure b/configure index b472694..2a14014 100755 --- a/configure +++ b/configure @@ -3365,15 +3365,25 @@ fi # For 'ust' backend, test if ust headers are present

[Qemu-devel] [PATCH v6 2/5] Modified the tracetool framework for LTTng 2.x

2014-01-29 Thread Mohamad Gebai
* A new format is required to generate definitions for ust tracepoints. Files ust_events_h.py and ust_events_c.py define common macros, while new function ust_events_h in events.py does the actual definition of each tracepoint. * ust.py generates the new interface for calling userspace tracep

[Qemu-devel] [PATCH v6 0/5] Fix UST backend for LTTng 2.x

2014-01-29 Thread Mohamad Gebai
Version 6 * Move ust specific code from tracetool/backend/events.py to tracetool/backend/ust.py Mohamad Gebai (5): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.x Adapt Makefiles to the new LTTng ust interface Update documentation for LTTng ust tracing

Re: [Qemu-devel] input, virtio-vga & multihead -- current state

2014-01-29 Thread Dave Airlie
On Thu, Jan 30, 2014 at 2:28 AM, Gerd Hoffmann wrote: >> * Didn't came very far in testing. Guest kernel just says: >>[ 50.712897] [drm] got -2147483647 outputs >>I've used >>http://cgit.freedesktop.org/~airlied/linux/log/?h=virtio-vga > > Switched to virtio-vga-3d branch -- that i

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread BALATON Zoltan
On Wed, 29 Jan 2014, Alexander Graf wrote: On 01/29/2014 03:53 PM, Gabriel L. Somlo wrote: I managed to boot OVMF following their wiki; It seems to work with kvm enabled, but not with -M q35. My current command line is: Did you use the snapshots on the wiki or compiled the latest version from

Re: [Qemu-devel] pxe boot problems

2014-01-29 Thread Laszlo Ersek
On 01/29/14 19:13, Paolo Bonzini wrote: > Il 29/01/2014 19:09, Laszlo Ersek ha scritto: >> Yes, but as far I can see, the commit (which is not in RHEL-6) changes >> *how* the operand of ljmp is decoded. >> >> From "opcode_table" in RHEL-6's "arch/x86/kvm/emulate.c": >> >> >> /* 0xE8 - 0xEF

[Qemu-devel] [PATCH] trace backend: introduce multi tracing backend

2014-01-29 Thread Kazuya Saito
This patch implements "multi tracing backend" which enables several tracing backend simultaneously. QEMU has multiple trace backends, but one of them needs to be chosen at compile time. When investigating issues of QEMU, it'd be much more convenient if we can use multiple trace backends without r

Re: [Qemu-devel] OSX guest vs. kvm ioapic polarity

2014-01-29 Thread Alexander Graf
> Am 29.01.2014 um 22:36 schrieb "Gabriel L. Somlo" : > > On Wed, Jan 29, 2014 at 03:17:43PM +0100, Alexander Graf wrote: >>> Do you belive there's a chance we can work around this by just tweaking >>> ACPI on the QEMU side, and thus eliminate the need for a KVM patch ? >> >> Yes, that's what I

Re: [Qemu-devel] OSX guest vs. kvm ioapic polarity

2014-01-29 Thread Michael S. Tsirkin
On Wed, Jan 29, 2014 at 04:36:50PM -0500, Gabriel L. Somlo wrote: > On Wed, Jan 29, 2014 at 03:17:43PM +0100, Alexander Graf wrote: > > >Do you belive there's a chance we can work around this by just tweaking > > >ACPI on the QEMU side, and thus eliminate the need for a KVM patch ? > > > > Yes, th

Re: [Qemu-devel] OSX guest vs. kvm ioapic polarity

2014-01-29 Thread Gabriel L. Somlo
On Wed, Jan 29, 2014 at 03:17:43PM +0100, Alexander Graf wrote: > >Do you belive there's a chance we can work around this by just tweaking > >ACPI on the QEMU side, and thus eliminate the need for a KVM patch ? > > Yes, that's what I was hoping. What does the IRQ link property look > like on a rea

[Qemu-devel] [PATCH] tcg/s390: Remove sigill_handler

2014-01-29 Thread Richard Henderson
Commit c9baa30f42a87f61627391698f63fa4d1566d9d8 failed to delete all of the relevant code, leading to Werrors about unused symbols. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/

Re: [Qemu-devel] [PATCH v2 0/5] disas: add libvixl to support A64 disassembly

2014-01-29 Thread Peter Maydell
On 29 January 2014 20:01, Laurent Desnogues wrote: > On Tue, Jan 28, 2014 at 12:45 PM, Peter Maydell > wrote: >> Ping for review/testing/comments on this version, please? > > I still dislike the idea of importing so much code in particular for > something that is incomplete: as far as I can see,

Re: [Qemu-devel] [PATCH v1 2/2] Revert "error: Don't use error_report() for assertion msgs."

2014-01-29 Thread Peter Maydell
On 15 January 2014 11:06, Peter Crosthwaite wrote: > This reverts commit d32934c84c72f57e78d430c22974677b7bcabe5d. > > The original implementation before this patch makes abortive error > messages much more friendly. The underlying bug that required this > change is now fixed. Revert. Unfortunate

Re: [Qemu-devel] [PATCH v2 0/5] disas: add libvixl to support A64 disassembly

2014-01-29 Thread Laurent Desnogues
On Tue, Jan 28, 2014 at 12:45 PM, Peter Maydell wrote: > Ping for review/testing/comments on this version, please? I still dislike the idea of importing so much code in particular for something that is incomplete: as far as I can see, AdvSIMD instructions are not supported. The very least that

Re: [Qemu-devel] How to mount, install and/or otherwise use an ARM Zer o Client image wi th Qemu in Windows

2014-01-29 Thread xan...@juno.com
Hi Peter and thanks for the quick response, it's very much appreciated! Sorry I forgot to include more details. To make sure I was giving you the best data possible I just asked our Engineers exactly what they have and are trying to emulate. A hardware vendor has given us several different var

Re: [Qemu-devel] [PATCH v2 0/5] disas: add libvixl to support A64 disassembly

2014-01-29 Thread Richard Henderson
On 01/28/2014 03:45 AM, Peter Maydell wrote: > Ping for review/testing/comments on this version, please? I skipped the contents of libvixl itself, but the configure and interface changes look ok to me. Reviewed-by: Richard Henderson r~ > > thanks > -- PMM > > On 16 January 2014 11:13, Pete

[Qemu-devel] [Bug 1274170] [NEW] qemu window hides in the background on osx

2014-01-29 Thread Colin Burgess
Public bug reported: When launching qemu on OSX (10.8.5), the window comes up in the background. A bit of googling shows that the addition of [NSApp activateIgnoringOtherApps:YES]; before the [NSApp run]; in main fixes this. ** Affects: qemu Importance: Undecided Status: New ** T

Re: [Qemu-devel] pxe boot problems

2014-01-29 Thread Paolo Bonzini
Il 29/01/2014 19:09, Laszlo Ersek ha scritto: Yes, but as far I can see, the commit (which is not in RHEL-6) changes *how* the operand of ljmp is decoded. From "opcode_table" in RHEL-6's "arch/x86/kvm/emulate.c": /* 0xE8 - 0xEF */ SrcImm | Stack, SrcImm | ImplicitOps, S

Re: [Qemu-devel] pxe boot problems

2014-01-29 Thread Laszlo Ersek
On 01/29/14 18:47, Paolo Bonzini wrote: > Il 29/01/2014 18:34, Laszlo Ersek ha scritto: >> KVM chokes on the LJMPW instruction. (It needs to emulate it on this >> host CPU, but the emulation code fails to decode the instruction.) >> >> I *guess* upstream Linux commit >> >> commit 414e6277fd148

Re: [Qemu-devel] [PULL v2 00/35] acpi, pci, pc, virtio fixes and enhancements

2014-01-29 Thread Michael S. Tsirkin
On Wed, Jan 29, 2014 at 04:38:04PM +, Peter Maydell wrote: > On 28 January 2014 11:21, Michael S. Tsirkin wrote: > > Hi Peter, > > could you merge the below please? > > Thanks in advance! > > I'm still waiting for input from Anthony on how best to manage > pull request merging (workflow, comm

Re: [Qemu-devel] [PATCH] scsi-bus: Fix transfer length for VERIFY with BYTCHK=11b

2014-01-29 Thread Paolo Bonzini
Il 29/01/2014 18:47, Markus Armbruster ha scritto: The transfer length depends on field BYTCHK, which is encoded in byte 1, bits 1..2. However, the guard for for case BYTCHK=11b doesn't work, and we get case 01b instead. Fix it. Note that since emulated scsi-hd fails the command outright, it t

[Qemu-devel] [PATCH] scsi-bus: Fix transfer length for VERIFY with BYTCHK=11b

2014-01-29 Thread Markus Armbruster
The transfer length depends on field BYTCHK, which is encoded in byte 1, bits 1..2. However, the guard for for case BYTCHK=11b doesn't work, and we get case 01b instead. Fix it. Note that since emulated scsi-hd fails the command outright, it takes SCSI passthrough of a device that actually imple

Re: [Qemu-devel] pxe boot problems

2014-01-29 Thread Paolo Bonzini
Il 29/01/2014 18:34, Laszlo Ersek ha scritto: On 01/29/14 14:01, Laszlo Ersek wrote: On 01/29/14 12:49, Dietmar Maurer wrote: A bisect points to the following patch: # git bisect bad c45e5b5b30ac1f5505725a7b36e68cedfce4f01f is the first bad commit commit c45e5b5b30ac1f5505725a7b36e68cedfce4f

Re: [Qemu-devel] pxe boot problems

2014-01-29 Thread Laszlo Ersek
On 01/29/14 14:01, Laszlo Ersek wrote: > On 01/29/14 12:49, Dietmar Maurer wrote: >> A bisect points to the following patch: >> >> # git bisect bad >> c45e5b5b30ac1f5505725a7b36e68cedfce4f01f is the first bad commit >> commit c45e5b5b30ac1f5505725a7b36e68cedfce4f01f >> Author: Gerd Hoffmann >> Da

Re: [Qemu-devel] Odroidu2: qemu-system-arm for Exynos4212

2014-01-29 Thread Andreas Färber
Hello, Am 29.01.2014 14:21, schrieb Parthiban Nallathambi (RBEI/ECF3): > I have an "Odroid u2" board which comes with samsung manufactured SoC > Exynos4212. I have tried building the custom kernel, u-boot and rootfs > with the help of hardkernel. > > But i want to test this image with qemu-syste

Re: [Qemu-devel] [PATCH] block/vhdx: Error checking fixes

2014-01-29 Thread Jeff Cody
On Wed, Jan 29, 2014 at 06:05:08PM +0100, Markus Armbruster wrote: > Errors are inadvertently ignored in a few places. Has always been > broken. Spotted by Coverity. > > Signed-off-by: Markus Armbruster > --- > block/vhdx-log.c | 4 ++-- > block/vhdx.c | 8 > 2 files changed, 6 in

[Qemu-devel] [PATCH] block/vhdx: Error checking fixes

2014-01-29 Thread Markus Armbruster
Errors are inadvertently ignored in a few places. Has always been broken. Spotted by Coverity. Signed-off-by: Markus Armbruster --- block/vhdx-log.c | 4 ++-- block/vhdx.c | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/block/vhdx-log.c b/block/vhdx-log.c index

Re: [Qemu-devel] committing qcow2 to raw backing file

2014-01-29 Thread Kevin Wolf
Am 29.01.2014 um 15:52 hat Jeff Cody geschrieben: > On Wed, Jan 29, 2014 at 03:35:16PM +0100, Kevin Wolf wrote: > > Am 29.01.2014 um 14:50 hat Murali Balcha geschrieben: > > The problem is that qemu-img would have to increase the image size of > > the backing file first before it can commit all the

Re: [Qemu-devel] [PATCHv7 1/5] block: add native support for NFS

2014-01-29 Thread Peter Lieven
On 29.01.2014 17:19, Benoît Canet wrote: Le Wednesday 29 Jan 2014 à 09:50:21 (+0100), Peter Lieven a écrit : This patch adds native support for accessing images on NFS shares without the requirement to actually mount the entire NFS share on the host. NFS Images can simply be specified by an url

Re: [Qemu-devel] [PULL v2 00/35] acpi, pci, pc, virtio fixes and enhancements

2014-01-29 Thread Peter Maydell
On 28 January 2014 11:21, Michael S. Tsirkin wrote: > Hi Peter, > could you merge the below please? > Thanks in advance! I'm still waiting for input from Anthony on how best to manage pull request merging (workflow, command lines, etc). I've been playing around with the 'patches' tool this aftern

Re: [Qemu-devel] input, virtio-vga & multihead -- current state

2014-01-29 Thread Gerd Hoffmann
> * Didn't came very far in testing. Guest kernel just says: >[ 50.712897] [drm] got -2147483647 outputs >I've used >http://cgit.freedesktop.org/~airlied/linux/log/?h=virtio-vga Switched to virtio-vga-3d branch -- that is working better. Handover from vesafb to virtio-vga drm d

Re: [Qemu-devel] [PATCHv7 1/5] block: add native support for NFS

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 09:50:21 (+0100), Peter Lieven a écrit : > This patch adds native support for accessing images on NFS > shares without the requirement to actually mount the entire > NFS share on the host. > > NFS Images can simply be specified by an url of the form: > nfs:[?param=va

[Qemu-devel] [PATCH] xhci: fix overflow in usb_xhci_post_load

2014-01-29 Thread Gerd Hoffmann
Found by Coverity. Reported-by: Markus Armbruster Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index bafe085..44964f4 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -3636,7

Re: [Qemu-devel] [PATCH v3] implementing victim TLB for QEMU system emulated TLB

2014-01-29 Thread Xin Tong
can someone please review this patch ? Thank you, Xin On Tue, Jan 28, 2014 at 11:31 AM, Xin Tong wrote: > This patch adds a victim TLB to the QEMU system mode TLB. > > QEMU system mode page table walks are expensive. Taken by running QEMU > qemu-system-x86_64 system mode on Intel PIN , a TLB mis

Re: [Qemu-devel] [PATCH 1/4] qemu-io: New option "-a" to aio_read and aio_write

2014-01-29 Thread Paolo Bonzini
Il 29/01/2014 09:40, Fam Zheng ha scritto: This option will enable accounting of aio requests. Signed-off-by: Fam Zheng --- qemu-io-cmds.c | 35 +++ 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/qemu-io-cmds.c b/qemu-io-cmds.c index f1de24c..d6e

Re: [Qemu-devel] [PATCH] QMP: allow JSON dict arguments in qmp-shell

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 12:17:31 (+0100), Stefan Hajnoczi a écrit : > qmp-shell hides the QMP wire protocol JSON encoding from the user. Most > of the time this is helpful and makes the command-line human-friendly. > > Some QMP commands take a dict as an argument. In order to express this > w

Re: [Qemu-devel] [PATCH] QMP: allow JSON dict arguments in qmp-shell

2014-01-29 Thread Eric Blake
On 01/29/2014 04:17 AM, Stefan Hajnoczi wrote: > qmp-shell hides the QMP wire protocol JSON encoding from the user. Most > of the time this is helpful and makes the command-line human-friendly. > > Some QMP commands take a dict as an argument. In order to express this > we need to revert back to

Re: [Qemu-devel] [PATCH] qemu-iotests: only run 071 on qcow2

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:33:54 (+0100), Stefan Hajnoczi a écrit : > The 071 test is designed for IMGFMT=qcow2 because it uses the l2_load > blkdebug event. Its output filtering also assumes that IMGFMT is not > raw since 071.out contains "format=raw" but IMGFMT=raw would filter the > output t

Re: [Qemu-devel] committing qcow2 to raw backing file

2014-01-29 Thread Murali Balcha
Thanks a lot. Much appreciate your help. Regards, Murali Balcha On Jan 29, 2014, at 9:52 AM, "Jeff Cody" wrote: > On Wed, Jan 29, 2014 at 03:35:16PM +0100, Kevin Wolf wrote: >> Am 29.01.2014 um 14:50 hat Murali Balcha geschrieben: >>> Thanks for the quick reply. The scenario I have is little d

Re: [Qemu-devel] [PATCH] block/iscsi: always fill bs->bl.opt_transfer_length

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 13:03:35 (+0100), Peter Lieven a écrit : > the opt_transfer_length has nothing to do with logical > block provisioning stuff so always copy it from > the block limits VPD page. > > Reported-By: Benoit Canet > Signed-off-by: Peter Lieven > --- > block/iscsi.c |5 ++

Re: [Qemu-devel] [PATCH v4 0/4] Create ARM KVM VGIC with device control API

2014-01-29 Thread Christoffer Dall
On Wed, Jan 29, 2014 at 01:21:40PM +, Peter Maydell wrote: > On 28 January 2014 20:28, Christoffer Dall > wrote: > > This patch series adds generic support for issuing device control > > related ioctls and supports creating the ARM KVM-accelerated VGIC using > > the device control API while m

Re: [Qemu-devel] [PATCH 4/4] qemu-iotests: Add 080 for IO throttling

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:40:43 (+0800), Fam Zheng a écrit : > This case utilizes qemu-io command "aio_{read,write} -a -q" to verify > the effectiveness of IO throttling options. > > The "-a" option will cause qemu-io requests to be accounted. > > It's implemented by driving the vm timer from

[Qemu-devel] [PATCH] qemu-iotests: only run 071 on qcow2

2014-01-29 Thread Stefan Hajnoczi
The 071 test is designed for IMGFMT=qcow2 because it uses the l2_load blkdebug event. Its output filtering also assumes that IMGFMT is not raw since 071.out contains "format=raw" but IMGFMT=raw would filter the output to "format=IMGFMT". Perhaps the test case can be rewritten to be more generic,

[Qemu-devel] [PATCH v3] virtio: Introduce virtio-testdev

2014-01-29 Thread Andrew Jones
This is a virtio version of hw/misc/debugexit and should evolve into a virtio version of pc-testdev. pc-testdev uses the PC's ISA bus, whereas this testdev can be plugged into a virtio-mmio transport, which is needed for kvm-unit-tests/arm. virtio-testdev uses the virtio device config space as a co

Re: [Qemu-devel] [PATCH 3/4] qemu-iotests: Allow caller to disable underscore convertion for qmp

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:40:42 (+0800), Fam Zheng a écrit : > QMP command "block_set_io_throttle" expects underscores in parameters > instead of dashes: {iops,bps}_{rd,wr,max}. > > Add optional argument conv_keys (defaults to True, backward compatible), > it will be used in IO throttling test

Re: [Qemu-devel] [PATCH 1/4] qemu-io: New option "-a" to aio_read and aio_write

2014-01-29 Thread Benoît Canet
Le Wednesday 29 Jan 2014 à 16:40:40 (+0800), Fam Zheng a écrit : > This option will enable accounting of aio requests. > > Signed-off-by: Fam Zheng > --- > qemu-io-cmds.c | 35 +++ > 1 file changed, 31 insertions(+), 4 deletions(-) > > diff --git a/qemu-io-cmds.c

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread Alexander Graf
On 01/29/2014 03:53 PM, Gabriel L. Somlo wrote: On Wed, Jan 29, 2014 at 12:29:17PM +0100, BALATON Zoltan wrote: I've also found this: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OvmfPkg which might be what we need for using Apple's boot.efi but I don't know how ready is it an

[Qemu-devel] [PULL 35/38] kvm: Common device control API functions

2014-01-29 Thread Peter Maydell
From: Christoffer Dall Introduces two simple functions: int kvm_device_ioctl(int fd, int type, ...); int kvm_create_device(KVMState *s, uint64_t type, bool test); These functions wrap the basic ioctl-based interactions with KVM in a way similar to other KVM ioctl wrappers. Reviewed-by:

Re: [Qemu-devel] [PATCH 06/16] ipmi: Add a PC ISA type structure

2014-01-29 Thread Andreas Färber
Am 12.11.2013 17:33, schrieb Corey Minyard: > This provides the base infrastructure to tie IPMI low-level > interfaces into a PC ISA bus. > > Signed-off-by: Corey Minyard [...] > diff --git a/hw/ipmi/isa_ipmi.c b/hw/ipmi/isa_ipmi.c > new file mode 100644 > index 000..0242a41 > --- /dev/null >

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread Gabriel L. Somlo
On Wed, Jan 29, 2014 at 12:29:17PM +0100, BALATON Zoltan wrote: > I've also found this: > http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=OvmfPkg > which might be what we need for using Apple's boot.efi but I don't > know how ready is it and if it works with OS X. I managed to boot

Re: [Qemu-devel] committing qcow2 to raw backing file

2014-01-29 Thread Murali Balcha
Thanks for the quick reply. The scenario I have is little different. The backing file is only 40 MB where as the virtual size of qcow2 is 1GB. project1@cloudvault3:/tmp/20bcb425-d3c5-4c0f-819c-7c9b1a16fde3$ qemu-img info 2e94bd45-7e4e-4e04-a8b4-74d579cad892_vda.qcow2 image: 2e94bd45-7e4e-4e04-a8b4

[Qemu-devel] [PULL 04/38] target-arm: A64: Add SIMD EXT

2014-01-29 Thread Peter Maydell
Add support for the SIMD EXT instruction (the only one in its group, C3.6.1). Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 79 +- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/target-arm/

Re: [Qemu-devel] committing qcow2 to raw backing file

2014-01-29 Thread Jeff Cody
On Wed, Jan 29, 2014 at 03:35:16PM +0100, Kevin Wolf wrote: > Am 29.01.2014 um 14:50 hat Murali Balcha geschrieben: > > Thanks for the quick reply. The scenario I have is little different. The > > backing file is only 40 MB where as the virtual size of qcow2 is 1GB. > > > > project1@cloudvault3:/t

Re: [Qemu-devel] [PATCH v8 12/13] dump: make kdump-compressed format available for 'dump-guest-memory'

2014-01-29 Thread Laszlo Ersek
On 01/28/14 07:22, qiaonuohan wrote: > Make monitor command 'dump-guest-memory' be able to dump in kdump-compressed > format. The command's usage: > > dump [-p] protocol [begin] [length] [format] > > 'format' is used to specified the format of vmcore and can be: > 1. 'elf': ELF format, without

[Qemu-devel] [PULL 32/38] target-arm: A64: Add SIMD shift by immediate

2014-01-29 Thread Peter Maydell
From: Alex Bennée This implements a subset of the AdvSIMD shift operations (namely all the none saturating or narrowing ones). The actual shift generation code itself is common for both the scalar and vector cases but wrapped with either vector element iteration or the fp reg access. The roundin

Re: [Qemu-devel] [PATCH v8 00/13] Make 'dump-guest-memory' dump in kdump-compressed format

2014-01-29 Thread Laszlo Ersek
On 01/28/14 07:21, qiaonuohan wrote: > Hi, all > > The last version is here: > http://lists.nongnu.org/archive/html/qemu-devel/2014-01/msg00209.html > > Command 'dump-guest-memory' was introduced to dump guest's memory. But the > vmcore's format is only elf32 or elf64. The message is here: > http

[Qemu-devel] [PULL 31/38] target-arm: A64: Add simple SIMD 3-same floating point ops

2014-01-29 Thread Peter Maydell
Implement a simple subset of the SIMD 3-same floating point operations. This includes a common helper function used for both scalar and vector ops; FABD is the only currently implemented shared op. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 190

[Qemu-devel] [PULL 37/38] arm_gic: Introduce define for GIC_NR_SGIS

2014-01-29 Thread Peter Maydell
From: Christoffer Dall Instead of hardcoding 16 various places in the code, use a define to make it more clear what is going on. Signed-off-by: Christoffer Dall Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/intc/arm_gic.c| 17 +++-- include/hw/int

Re: [Qemu-devel] [PATCH 4/4] qemu-iotests: Add 080 for IO throttling

2014-01-29 Thread Stefan Hajnoczi
On Wed, Jan 29, 2014 at 04:40:43PM +0800, Fam Zheng wrote: > +def do_test_throttle(self, seconds=10, **limits): > +def check_limit(limit, num): > +# IO throttling algorithm is discrete, allow 10% error so the > test > +# is more deterministic > +retu

Re: [Qemu-devel] [PATCH v8 11/13] dump: add API to write dump pages

2014-01-29 Thread Laszlo Ersek
On 01/28/14 07:22, qiaonuohan wrote: > functions are used to write page to vmcore. vmcore is written page by page. > page desc is used to store the information of a page, including a page's size, > offset, compression format, etc. > > Signed-off-by: Qiao Nuohan > Reviewed-by: Laszlo Ersek > ---

[Qemu-devel] [PULL 16/38] target-arm: Add AArch32 FP VRINTA, VRINTN, VRINTP and VRINTM

2014-01-29 Thread Peter Maydell
From: Will Newton Add support for AArch32 ARMv8 FP VRINTA, VRINTN, VRINTP and VRINTM instructions. Signed-off-by: Will Newton Signed-off-by: Peter Maydell --- target-arm/translate.c | 54 ++ 1 file changed, 54 insertions(+) diff --git a/target-

Re: [Qemu-devel] [PATCH 3/4] qemu-iotests: Allow caller to disable underscore convertion for qmp

2014-01-29 Thread Eric Blake
On 01/29/2014 01:40 AM, Fam Zheng wrote: s/convertion/conversion/ in the subject > QMP command "block_set_io_throttle" expects underscores in parameters > instead of dashes: {iops,bps}_{rd,wr,max}. > > Add optional argument conv_keys (defaults to True, backward compatible), > it will be used in

[Qemu-devel] [RFC PATCH v0 2/2] gluster: Remove unused defines and header include

2014-01-29 Thread Bharata B Rao
Remove the definitions of GLUSTER_FD_WRITE and GLUSTER_FD_READ which are no longer used. Also sockets.h isn't needed any more. Signed-off-by: Bharata B Rao --- block/gluster.c | 4 1 file changed, 4 deletions(-) diff --git a/block/gluster.c b/block/gluster.c index ba56005..1838373 100644 -

Re: [Qemu-devel] [PATCH 4/4] qemu-iotests: Add 080 for IO throttling

2014-01-29 Thread Stefan Hajnoczi
On Wed, Jan 29, 2014 at 04:40:43PM +0800, Fam Zheng wrote: > This case utilizes qemu-io command "aio_{read,write} -a -q" to verify > the effectiveness of IO throttling options. > > The "-a" option will cause qemu-io requests to be accounted. > > It's implemented by driving the vm timer from qtest

Re: [Qemu-devel] committing qcow2 to raw backing file

2014-01-29 Thread Kevin Wolf
Am 29.01.2014 um 14:50 hat Murali Balcha geschrieben: > Thanks for the quick reply. The scenario I have is little different. The > backing file is only 40 MB where as the virtual size of qcow2 is 1GB. > > project1@cloudvault3:/tmp/20bcb425-d3c5-4c0f-819c-7c9b1a16fde3$ qemu-img > info 2e94bd45-7e4e

Re: [Qemu-devel] [PATCH v8 09/13] dump: add API to write dump_bitmap

2014-01-29 Thread Laszlo Ersek
On 01/28/14 07:22, qiaonuohan wrote: > functions are used to write 1st and 2nd dump_bitmap of kdump-compressed > format, > which is used to indicate whether the corresponded page is existed in vmcore. > 1st and 2nd dump_bitmap are same, because dump level is specified to 1 here. > > Signed-off-by

[Qemu-devel] [RFC PATCH v0 0/2] gluster: licence change and cleanups

2014-01-29 Thread Bharata B Rao
Licence change of gluster driver from GPLv2 to GPLv2+ and some cleanups. Bharata B Rao (2): gluster: Change licence to GPLv2+ gluster: Remove unused defines and header include block/gluster.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) -- 1.7.11.7

[Qemu-devel] [RFC PATCH v0 1/2] gluster: Change licence to GPLv2+

2014-01-29 Thread Bharata B Rao
Pipe handling mechanism in gluster driver was based on similar implementation in RBD driver and hence had GPLv2 and associated copyright information. After changing gluster driver to coroutine based implementation, the pipe handling code no longer exists and hence change gluster driver's licence to

Re: [Qemu-devel] [PATCHv7 0/5] block: add native support for NFS

2014-01-29 Thread Peter Lieven
On 29.01.2014 15:22, Peter Lieven wrote: On 29.01.2014 14:59, Stefan Hajnoczi wrote: On Wed, Jan 29, 2014 at 09:50:20AM +0100, Peter Lieven wrote: This adds v6 of the NFS protocol driver + qemu-iotest adjustments. v6->v7: - removed unsused and partially non-existing libnfs header file includ

Re: [Qemu-devel] [PATCH 3/4] qemu-iotests: Allow caller to disable underscore convertion for qmp

2014-01-29 Thread Stefan Hajnoczi
On Wed, Jan 29, 2014 at 04:40:42PM +0800, Fam Zheng wrote: > QMP command "block_set_io_throttle" expects underscores in parameters > instead of dashes: {iops,bps}_{rd,wr,max}. > > Add optional argument conv_keys (defaults to True, backward compatible), > it will be used in IO throttling test case.

Re: [Qemu-devel] [PATCH v8 08/13] dump: add API to write dump header

2014-01-29 Thread Laszlo Ersek
On 01/28/14 07:22, qiaonuohan wrote: > the functions are used to write header of kdump-compressed format to vmcore. > Header of kdump-compressed format includes: > 1. common header: DiskDumpHeader32 / DiskDumpHeader64 > 2. sub header: KdumpSubHeader32 / KdumpSubHeader64 > 3. extra information: only

Re: [Qemu-devel] [PATCH 2/4] qemu-iotests: Add VM method qtest_cmd() to iotests.py

2014-01-29 Thread Stefan Hajnoczi
On Wed, Jan 29, 2014 at 04:40:41PM +0800, Fam Zheng wrote: > This will allow test case to run command in qtest protocol. It's > write-only for now. > > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/iotests.py | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/

Re: [Qemu-devel] [PATCHv7 0/5] block: add native support for NFS

2014-01-29 Thread Peter Lieven
On 29.01.2014 14:59, Stefan Hajnoczi wrote: On Wed, Jan 29, 2014 at 09:50:20AM +0100, Peter Lieven wrote: This adds v6 of the NFS protocol driver + qemu-iotest adjustments. v6->v7: - removed unsused and partially non-existing libnfs header file includes [Stefan] - adjusted usage of qemu_op

Re: [Qemu-devel] osx bootloader

2014-01-29 Thread Alexander Graf
On 01/29/2014 04:07 AM, Gabriel L. Somlo wrote: On Tue, Jan 28, 2014 at 11:51:25PM +0100, BALATON Zoltan wrote: Here are some pages that might help enlightening the boot process: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/KernelProgramming/booting/booting.html http:

Re: [Qemu-devel] OSX guest support review

2014-01-29 Thread Alexander Graf
On 01/28/2014 05:45 PM, Gabriel L. Somlo wrote: On Tue, Jan 28, 2014 at 12:51:40AM +0100, Alexander Graf wrote: On 27.01.2014, at 23:51, Gabriel L. Somlo wrote: - on Mavericks, the e1000 pci card doesn't work. In "System Information", under "Hardware", I get nothing under "Ethernet

Re: [Qemu-devel] [PATCHv7 0/5] block: add native support for NFS

2014-01-29 Thread Peter Lieven
On 29.01.2014 14:59, Stefan Hajnoczi wrote: On Wed, Jan 29, 2014 at 09:50:20AM +0100, Peter Lieven wrote: This adds v6 of the NFS protocol driver + qemu-iotest adjustments. v6->v7: - removed unsused and partially non-existing libnfs header file includes [Stefan] - adjusted usage of qemu_op

[Qemu-devel] [PULL 20/38] target-arm: Add support for AArch32 SIMD VRINTX

2014-01-29 Thread Peter Maydell
From: Will Newton Add support for the AArch32 Advanced SIMD VRINTX instruction. Signed-off-by: Will Newton Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target-arm/translate.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/target-arm/translate.c

Re: [Qemu-devel] [PATCH] monitor: Cleanup mon->outbuf on write error

2014-01-29 Thread Luiz Capitulino
On Wed, 29 Jan 2014 12:46:04 +0200 Stratos Psomadakis wrote: > On 01/27/2014 12:30 PM, Stratos Psomadakis wrote: > > In case monitor_flush() fails to write the contents of mon->outbuf to > > the output device, mon->outbuf is not cleaned up properly. Check the > > return code of the qemu_chr_fe_wr

Re: [Qemu-devel] [PATCH 1/4] qemu-io: New option "-a" to aio_read and aio_write

2014-01-29 Thread Stefan Hajnoczi
On Wed, Jan 29, 2014 at 04:40:40PM +0800, Fam Zheng wrote: > @@ -1442,6 +1453,7 @@ static void aio_read_help(void) > " -P, -- use a pattern to verify read data\n" > " -v, -- dump buffer to standard output\n" > " -q, -- quiet mode, do not show I/O statistics\n" > +" -a, -- account IO\n" > "\n");

Re: [Qemu-devel] [PATCH v8 07/13] dump: add members to DumpState and init some of them

2014-01-29 Thread Laszlo Ersek
On 01/28/14 07:22, qiaonuohan wrote: > add some members to DumpState that will be used in writing vmcore in > kdump-compressed format. some of them, like page_size, will be initialized > in the patch. > > Signed-off-by: Qiao Nuohan > --- > dump.c| 28 +++

[Qemu-devel] [PULL 26/38] target-arm: A64: Add SIMD three-different ABDL instructions

2014-01-29 Thread Peter Maydell
Implement the absolute-difference instructions in the SIMD three-different group: SABAL, SABAL2, UABAL, UABAL2, SABDL, SABDL2, UABDL, UABDL2. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 35 +-- 1 file changed, 33 i

Re: [Qemu-devel] [PATCH v6 0/8] Vhost and vhost-net support for userspace based backends

2014-01-29 Thread Michael S. Tsirkin
On Wed, Jan 29, 2014 at 01:04:28PM +0100, Antonios Motakis wrote: > Hello, > > On Mon, Jan 27, 2014 at 5:49 PM, Michael S. Tsirkin wrote: > > > > On Mon, Jan 27, 2014 at 05:37:02PM +0100, Antonios Motakis wrote: > > > Hello again, > > > > > > > > > On Wed, Jan 15, 2014 at 3:49 PM, Michael S. Tsir

[Qemu-devel] [PULL 13/38] ZYNQ: Implement board MIDR control for Zynq

2014-01-29 Thread Peter Maydell
From: Alistair Francis This patch uses the fact that the midr variable is now a property This patch sets the midr variable to the boards custom midr Signed-off-by: Alistair Francis Message-id: a3754b10d150af72e4688a993e484fa2b9b8fa21.1390176489.git.alistair.fran...@xilinx.com Signed-off-by: Pe

Re: [Qemu-devel] [PATCH] qemu-iotests: Drop assert_no_active_commit in case 040

2014-01-29 Thread Stefan Hajnoczi
On Wed, Jan 29, 2014 at 06:47:23PM +0800, Fam Zheng wrote: > It is exactly assert_no_active_block_jobs in iotests.py > > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/040 | 28 > 1 file changed, 12 insertions(+), 16 deletions(-) Thanks, applied to my block tre

[Qemu-devel] [PULL 03/38] target-arm: A64: Add decode skeleton for SIMD data processing insns

2014-01-29 Thread Peter Maydell
From: Alex Bennée Add decode skeleton and function placeholders for all the SIMD data processing instructions. Due to the complexity of this part of the table the normal extract and switch approach gets very messy very quickly, so we use a simple data-driven pattern-and-mask approach. Signed-off

Re: [Qemu-devel] [PATCHv7 0/5] block: add native support for NFS

2014-01-29 Thread Stefan Hajnoczi
On Wed, Jan 29, 2014 at 09:50:20AM +0100, Peter Lieven wrote: > This adds v6 of the NFS protocol driver + qemu-iotest adjustments. > > v6->v7: > - removed unsused and partially non-existing libnfs header file includes > [Stefan] > - adjusted usage of qemu_opts_create_nofail [Stefan] > - remove

[Qemu-devel] [PULL 02/38] target-arm: A64: Add SIMD ld/st single

2014-01-29 Thread Peter Maydell
Implement the SIMD ld/st single structure instructions. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 144 - 1 file changed, 142 insertions(+), 2 deletions(-) diff --git a/target-arm/translate-a64.c b/ta

  1   2   >