Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Andreas Färber
Hi, Am 01.03.2012 05:24, schrieb Jun Koi: anybody tested Qemu with the Windows 8 Consumer Preview? i tried the 32-bit ISO file with 1.0.1, with and without -enable-kvm, and Qemu reboots immediately after the first screen. that is no more than 10 seconds into the boot. Alex has posted

Re: [Qemu-devel] [PATCH] Userspace ARM BE8 support

2012-03-01 Thread Andreas Färber
Am 29.02.2012 16:40, schrieb Paul Brook: Add support for ARM BE8 userspace binaries. i.e. big-endian data and little-endian code. In principle LE8 mode is also possible, but AFAIK has never actually been implemented/used. System emulation doesn't have any useable big-endian board models,

Re: [Qemu-devel] QOM: why klass used instead of class ?

2012-03-01 Thread Andreas Färber
Am 29.02.2012 10:05, schrieb 陳韋任: On Wed, Feb 29, 2012 at 10:59:54AM +0400, Michael Tokarev wrote: On 29.02.2012 09:52, Evgeny Voevodin wrote: include/qemu/object.h: [] * void my_device_class_init(ObjectClass *klass, void *class_data) * { * DeviceClass *dc = DEVICE_CLASS(klass); *

Re: [Qemu-devel] QOM: why klass used instead of class ?

2012-03-01 Thread malc
On Thu, 1 Mar 2012, Andreas F?rber wrote: Am 29.02.2012 10:05, schrieb ???: On Wed, Feb 29, 2012 at 10:59:54AM +0400, Michael Tokarev wrote: On 29.02.2012 09:52, Evgeny Voevodin wrote: include/qemu/object.h: [] * void my_device_class_init(ObjectClass *klass, void *class_data) * {

Re: [Qemu-devel] [PATCH v2] TCG: Convert global variables to be TLS.

2012-03-01 Thread Andreas Färber
Am 28.02.2012 04:13, schrieb Evgeny Voevodin: On 27.02.2012 16:35, Peter Maydell wrote: A true multithreaded TCG is a large project, and unless we're going to commit to doing that I don't see much value in making some variables per-thread when we might instead need to do larger refactorings

Re: [Qemu-devel] [PATCH v2] TCG: Convert global variables to be TLS.

2012-03-01 Thread Peter Maydell
On 1 March 2012 08:22, Andreas Färber afaer...@suse.de wrote: Am 28.02.2012 04:13, schrieb Evgeny Voevodin: On 27.02.2012 16:35, Peter Maydell wrote: A true multithreaded TCG is a large project, and unless we're going to commit to doing that I don't see much value in making some variables

Re: [Qemu-devel] QOM: why klass used instead of class ?

2012-03-01 Thread Andreas Färber
Am 01.03.2012 09:17, schrieb malc: On Thu, 1 Mar 2012, Andreas F?rber wrote: Am 29.02.2012 10:05, schrieb ???: On Wed, Feb 29, 2012 at 10:59:54AM +0400, Michael Tokarev wrote: On 29.02.2012 09:52, Evgeny Voevodin wrote: include/qemu/object.h: [] * void my_device_class_init(ObjectClass

Re: [Qemu-devel] QOM: why klass used instead of class ?

2012-03-01 Thread malc
On Thu, 1 Mar 2012, Andreas F?rber wrote: Am 01.03.2012 09:17, schrieb malc: On Thu, 1 Mar 2012, Andreas F?rber wrote: Am 29.02.2012 10:05, schrieb ???: On Wed, Feb 29, 2012 at 10:59:54AM +0400, Michael Tokarev wrote: On 29.02.2012 09:52, Evgeny Voevodin wrote:

Re: [Qemu-devel] [RFC][PATCH 01/14 v7] Add API to create memory mapping list

2012-03-01 Thread HATAYAMA Daisuke
From: Wen Congyang we...@cn.fujitsu.com Subject: [RFC][PATCH 01/14 v7] Add API to create memory mapping list Date: Thu, 01 Mar 2012 10:39:35 +0800 +static void memory_mapping_list_add_mapping_sorted(MemoryMappingList *list, + MemoryMapping

Re: [Qemu-devel] [RFC][PATCH 01/14 v7] Add API to create memory mapping list

2012-03-01 Thread Wen Congyang
At 03/01/2012 04:33 PM, HATAYAMA Daisuke Wrote: From: Wen Congyang we...@cn.fujitsu.com Subject: [RFC][PATCH 01/14 v7] Add API to create memory mapping list Date: Thu, 01 Mar 2012 10:39:35 +0800 +static void memory_mapping_list_add_mapping_sorted(MemoryMappingList *list, +

Re: [Qemu-devel] [PATCH] qemu-iotests: Filter out DOS line endings

2012-03-01 Thread Kevin Wolf
Am 29.02.2012 18:32, schrieb Eric Blake: On 02/29/2012 06:59 AM, Kevin Wolf wrote: This one makes it possible to run qemu-iotests on a Windows build using Wine and get somewhat meaningful results. Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/qemu-iotests/common.filter |8

Re: [Qemu-devel] [SeaBIOS] [Seabios] [PATCH 0/6] 64bit PCI BARs allocations (take 2)

2012-03-01 Thread Gerd Hoffmann
Hi, a) Provide 64bit bar support for PCI BARs and bridges with 64bit memory window. Bridge support seems to be completely untested. /me has a test setup using mst's bridge patches which looks like this: [root@fedora ~]# lspci -tv -[:00]-+-00.0 Intel Corporation 440FX - 82441FX PMC

Re: [Qemu-devel] [PATCH v2] TCG: Convert global variables to be TLS.

2012-03-01 Thread 陳韋任
If you're serious about multithreading TCG then I think the first steps are: * fix existing race conditions * think very hard * come up with an overall design for what you're proposing As COREMU [1] point out, current QEMU atomic instruction emulation approach is problematic. For

Re: [Qemu-devel] [SeaBIOS] [PATCH 4/6] Mapping of BARs and Bridge regions

2012-03-01 Thread Gerd Hoffmann
On 03/01/12 07:57, Alexey Korolev wrote: In pci_bios_map_regions() we try to reserve memory for all entries of root bus regions. If pci_bios_init_root_regions() fails - e.g no enough space, we create two new pci_regions: r64pref, r64mem and migrate all entries which are 64bit capable to

Re: [Qemu-devel] [PATCH] We should check virtio_load return code

2012-03-01 Thread Amit Shah
On (Tue) 28 Feb 2012 [15:31:07], Orit Wasserman wrote: Otherwise we crash on error. A description on how to reproduce the crash would be nice. Signed-off-by: Orit Wasserman owass...@redhat.com Signed-off-by: Ulrich Obergfell uober...@redhat.com Acked-by: Amit Shah amit.s...@redhat.com

[Qemu-devel] [PATCH] usb: Fix signature of stub usb_host_device_open

2012-03-01 Thread Jan Kiszka
This was a breakage of 3741715cf2. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- usb-stub.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usb-stub.c b/usb-stub.c index 9c3fcea..b4e10c1 100644 --- a/usb-stub.c +++ b/usb-stub.c @@ -41,7 +41,7 @@ void

Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Alexander Graf
On 01.03.2012, at 09:00, Andreas Färber wrote: Hi, Am 01.03.2012 05:24, schrieb Jun Koi: anybody tested Qemu with the Windows 8 Consumer Preview? i tried the 32-bit ISO file with 1.0.1, with and without -enable-kvm, and Qemu reboots immediately after the first screen. that is no more

Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Jan Kiszka
On 2012-03-01 10:46, Alexander Graf wrote: On 01.03.2012, at 09:00, Andreas Färber wrote: Hi, Am 01.03.2012 05:24, schrieb Jun Koi: anybody tested Qemu with the Windows 8 Consumer Preview? i tried the 32-bit ISO file with 1.0.1, with and without -enable-kvm, and Qemu reboots

Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Gleb Natapov
On Thu, Mar 01, 2012 at 10:46:37AM +0100, Alexander Graf wrote: On 01.03.2012, at 09:00, Andreas Färber wrote: Hi, Am 01.03.2012 05:24, schrieb Jun Koi: anybody tested Qemu with the Windows 8 Consumer Preview? i tried the 32-bit ISO file with 1.0.1, with and without -enable-kvm,

Re: [Qemu-devel] [PATCH] We should check virtio_load return code

2012-03-01 Thread Markus Armbruster
Amit Shah amit.s...@redhat.com writes: On (Tue) 28 Feb 2012 [15:31:07], Orit Wasserman wrote: Otherwise we crash on error. A description on how to reproduce the crash would be nice. Seconded. No bug fix is complete without instructions to reproduce. [...]

Re: [Qemu-devel] Fail to share Samba directory with guest

2012-03-01 Thread Jan Kiszka
On 2012-03-01 05:21, Jun Koi wrote: On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi junkoi2...@gmail.com wrote: On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming shum...@linux.vnet.ibm.com wrote: On 2012-2-27 17:21, Jun Koi wrote: hi, on qemu 1.0.1, i am trying to share a host directory with the

Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Alexander Graf
On 01.03.2012, at 10:54, Gleb Natapov wrote: On Thu, Mar 01, 2012 at 10:46:37AM +0100, Alexander Graf wrote: On 01.03.2012, at 09:00, Andreas Färber wrote: Hi, Am 01.03.2012 05:24, schrieb Jun Koi: anybody tested Qemu with the Windows 8 Consumer Preview? i tried the 32-bit ISO file

Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Gleb Natapov
On Thu, Mar 01, 2012 at 11:08:17AM +0100, Alexander Graf wrote: On 01.03.2012, at 10:54, Gleb Natapov wrote: On Thu, Mar 01, 2012 at 10:46:37AM +0100, Alexander Graf wrote: On 01.03.2012, at 09:00, Andreas Färber wrote: Hi, Am 01.03.2012 05:24, schrieb Jun Koi: anybody

Re: [Qemu-devel] Fail to share Samba directory with guest

2012-03-01 Thread Jun Koi
On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka jan.kis...@web.de wrote: On 2012-03-01 05:21, Jun Koi wrote: On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi junkoi2...@gmail.com wrote: On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming shum...@linux.vnet.ibm.com wrote: On 2012-2-27 17:21, Jun Koi wrote: hi,

Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Jun Koi
On Thu, Mar 1, 2012 at 6:11 PM, Gleb Natapov g...@redhat.com wrote: On Thu, Mar 01, 2012 at 11:08:17AM +0100, Alexander Graf wrote: On 01.03.2012, at 10:54, Gleb Natapov wrote: On Thu, Mar 01, 2012 at 10:46:37AM +0100, Alexander Graf wrote: On 01.03.2012, at 09:00, Andreas Färber wrote:

Re: [Qemu-devel] [PATCH 3/6] rename blockdev-group-snapshot-sync

2012-03-01 Thread Paolo Bonzini
Il 29/02/2012 19:41, Eric Blake ha scritto: Drop the op:snapshot. It's a leftover from before your conversion to a union type. Question - when reading/writing these examples, are 'type' and type interchangeable (like in XML)? IIRC, in JSON only type is allowed, but QEMU allows 'type' too

Re: [Qemu-devel] [PATCH 4/6] add reuse field

2012-03-01 Thread Kevin Wolf
Am 29.02.2012 19:50, schrieb Eric Blake: On 02/29/2012 06:37 AM, Paolo Bonzini wrote: In some cases it can be useful to use an existing file as the new image in a snapshot. Add this capability to blockdev-transaction. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- blockdev.c |

Re: [Qemu-devel] Fail to share Samba directory with guest

2012-03-01 Thread Jan Kiszka
Jun Koi junkoi2...@gmail.com schrieb: On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka jan.kis...@web.de wrote: On 2012-03-01 05:21, Jun Koi wrote: On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi junkoi2...@gmail.com wrote: On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming shum...@linux.vnet.ibm.com wrote: On

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-03-01 Thread Wei Liu
On Wed, 2012-02-29 at 17:47 +, Jan Kiszka wrote: On 2012-02-29 18:21, Wei Liu wrote: Hi all This patch adds MSI / MSIX injection for Xen HVM guest. This is not new, six months ago we had a discussion in http://marc.info/?l=qemu-develm=130639451725966w=2 There are some coding

Re: [Qemu-devel] Windows 8 fails to boot

2012-03-01 Thread Gleb Natapov
On Thu, Mar 01, 2012 at 06:15:54PM +0800, Jun Koi wrote: On Thu, Mar 1, 2012 at 6:11 PM, Gleb Natapov g...@redhat.com wrote: On Thu, Mar 01, 2012 at 11:08:17AM +0100, Alexander Graf wrote: On 01.03.2012, at 10:54, Gleb Natapov wrote: On Thu, Mar 01, 2012 at 10:46:37AM +0100, Alexander

Re: [Qemu-devel] Fail to share Samba directory with guest

2012-03-01 Thread Jun Koi
On Thu, Mar 1, 2012 at 6:21 PM, Jan Kiszka jan.kis...@web.de wrote: Jun Koi junkoi2...@gmail.com schrieb: On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka jan.kis...@web.de wrote: On 2012-03-01 05:21, Jun Koi wrote: On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi junkoi2...@gmail.com wrote: On Tue, Feb

Re: [Qemu-devel] Fail to share Samba directory with guest

2012-03-01 Thread Jan Kiszka
Jun Koi junkoi2...@gmail.com schrieb: On Thu, Mar 1, 2012 at 6:21 PM, Jan Kiszka jan.kis...@web.de wrote: Jun Koi junkoi2...@gmail.com schrieb: On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka jan.kis...@web.de wrote: On 2012-03-01 05:21, Jun Koi wrote: On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi

Re: [Qemu-devel] [PATCH] fix screendump

2012-03-01 Thread Alon Levy
On Thu, Mar 01, 2012 at 08:34:40AM +0100, Gerd Hoffmann wrote: Commit 45efb16124efef51de5157afc31984b5a47700f9 optimized a bit too much. We can skip the vga_invalidate_display() in case no console switch happened because we don't need a full redraw then. We can *not* skip vga_hw_update()

Re: [Qemu-devel] [PATCH] usb: Fix signature of stub usb_host_device_open

2012-03-01 Thread Gerd Hoffmann
On 03/01/12 10:43, Jan Kiszka wrote: -USBDevice *usb_host_device_open(const char *devname) +USBDevice *usb_host_device_open(USBBus *bus, const char *devname) Acked-by: Gerd Hoffmann kra...@redhat.com cheers, Gerd

Re: [Qemu-devel] [PATCH v2] TCG: Convert global variables to be TLS.

2012-03-01 Thread Evgeny Voevodin
On 01.03.2012 12:27, Peter Maydell wrote: On 1 March 2012 08:22, Andreas Färberafaer...@suse.de wrote: Am 28.02.2012 04:13, schrieb Evgeny Voevodin: On 27.02.2012 16:35, Peter Maydell wrote: A true multithreaded TCG is a large project, and unless we're going to commit to doing that I don't

Re: [Qemu-devel] [PATCH] We should check virtio_load return code

2012-03-01 Thread Orit Wasserman
On 03/01/2012 11:29 AM, Amit Shah wrote: On (Tue) 28 Feb 2012 [15:31:07], Orit Wasserman wrote: Otherwise we crash on error. A description on how to reproduce the crash would be nice. We changed the default of the command -device virtio-blk-pci,drive=... from scsi=on to scsi=off for security

Re: [Qemu-devel] [PATCH] fix screendump

2012-03-01 Thread Avi Kivity
On 03/01/2012 09:34 AM, Gerd Hoffmann wrote: Commit 45efb16124efef51de5157afc31984b5a47700f9 optimized a bit too much. We can skip the vga_invalidate_display() in case no console switch happened because we don't need a full redraw then. We can *not* skip vga_hw_update() though, because the

Re: [Qemu-devel] [PATCH] We should check virtio_load return code

2012-03-01 Thread Paolo Bonzini
Il 01/03/2012 12:00, Orit Wasserman ha scritto: A description on how to reproduce the crash would be nice. We changed the default of the command -device virtio-blk-pci,drive=... from scsi=on to scsi=off for security reasons (disable SG_IO). If you try to migrate from an older version (which

[Qemu-devel] [PATCH v2 1/6] fix format name for backing file

2012-03-01 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- blockdev.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index d78aa51..96a893b 100644 --- a/blockdev.c +++ b/blockdev.c @@ -800,7 +800,8 @@ void

[Qemu-devel] [PATCH v2 0/6] Mirrored writes using blockdev-transaction

2012-03-01 Thread Paolo Bonzini
This implements all ingredients to establish mirrored writes. The drive-reopen command that is used to terminate mirrored writes is not included in this series. Tested with the following scenarios: a) mirror only 1) create base.qcow2 and start QEMU with it 2) Execute the following QMP command

[Qemu-devel] [PATCH v2 5/6] Add blkmirror block driver

2012-03-01 Thread Paolo Bonzini
From: Marcelo Tosatti mtosa...@redhat.com Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Federico Simoncelli fsimo...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Makefile.objs |2 +- block/blkmirror.c |

[Qemu-devel] [PATCH v2 3/6] rename blockdev-group-snapshot-sync

2012-03-01 Thread Paolo Bonzini
We will add other kinds of operation. Prepare for this by adjusting the schema. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- blockdev.c | 79 - qapi-schema.json | 33 +++--- qmp-commands.hx | 50

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-03-01 Thread Jan Kiszka
On 2012-03-01 11:20, Wei Liu wrote: However, you know that you miss those (uncommon) messages that are injected via DMA? They end up directly in apic_deliver_msi (where KVM will once pick them up as well). Thanks for pointing this out. However I cannot find apic_deliver_msi in qemu-kvm or

[Qemu-devel] [PATCH v2 4/6] add reuse field

2012-03-01 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- blockdev.c | 18 +++--- qapi-schema.json |3 ++- qmp-commands.hx | 10 ++ 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/blockdev.c b/blockdev.c index 1aa544a..8fcdf0e 100644 --- a/blockdev.c

[Qemu-devel] [PATCH v2] We should check the virtio_load return code

2012-03-01 Thread Orit Wasserman
Otherwise we crash on error. Instruction to reporduce the crash with migration: 1) run a guest with -device virtio-blk-pci,drive=drive_name,scsi=on 2) run destination with -device virtio-blk-pci,drive=drive_name,scsi=off ... -incoming ... 3) migrate from 1 to 2. Signed-off-by: Ulrich Obergfell

Re: [Qemu-devel] [PATCH v2] We should check the virtio_load return code

2012-03-01 Thread Amit Shah
On (Thu) 01 Mar 2012 [13:28:08], Orit Wasserman wrote: Otherwise we crash on error. Instruction to reporduce the crash with migration: 1) run a guest with -device virtio-blk-pci,drive=drive_name,scsi=on 2) run destination with -device virtio-blk-pci,drive=drive_name,scsi=off ... -incoming

Re: [Qemu-devel] [PATCH v2] VMXNET3 paravirtual NIC device implementation

2012-03-01 Thread Michael Tokarev
On 29.02.2012 16:49, Dmitry Fleytman wrote: Implementation of VMWare VMXNET3 paravirtual NIC device. Supports of all the device features including offload capabilties, VLANs and etc. [..] Not a review or anything (I don't know qemu networking internals much), just a question: does it support

[Qemu-devel] [PATCH v2 6/6] add mirroring to blockdev-transaction

2012-03-01 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- blockdev.c | 42 -- qapi-schema.json | 19 ++- qmp-commands.hx | 12 +++- 3 files changed, 61 insertions(+), 12 deletions(-) diff --git a/blockdev.c b/blockdev.c

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-03-01 Thread Wei Liu
On Thu, 2012-03-01 at 11:22 +, Jan Kiszka wrote: On 2012-03-01 11:20, Wei Liu wrote: However, you know that you miss those (uncommon) messages that are injected via DMA? They end up directly in apic_deliver_msi (where KVM will once pick them up as well). Thanks for pointing this

[Qemu-devel] [PATCH v2 2/6] qapi: complete implementation of unions

2012-03-01 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qapi-schema-test.json | 10 ++ scripts/qapi-types.py |5 + scripts/qapi-visit.py | 31 ++- test-qmp-input-visitor.c | 18 ++ test-qmp-output-visitor.c | 34

Re: [Qemu-devel] [PATCH v2] We should check the virtio_load return code

2012-03-01 Thread Michael S. Tsirkin
On Thu, Mar 01, 2012 at 01:28:08PM +0200, Orit Wasserman wrote: Otherwise we crash on error. Instruction to reporduce the crash with migration: 1) run a guest with -device virtio-blk-pci,drive=drive_name,scsi=on 2) run destination with -device virtio-blk-pci,drive=drive_name,scsi=off ...

[Qemu-devel] [PULL] kvm updates

2012-03-01 Thread Avi Kivity
This batch of updates is mostly Jan's rework of qemu-kvm's TPR optimization for 32-bit Windows, making Windows XP much faster with kvm enabled on older Intel and any AMD hardware. Any similarities to the original hack are purely coincidental. Please pull from:

[Qemu-devel] [PULL v2] Memory core space reduction

2012-03-01 Thread Avi Kivity
This is the current memory queue (posted as two separate series before my vacation). When applied, the overhead of 16 bytes/page is reduced to basically nil. Please pull from: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/core v2: fix memory corruption in first patch

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-03-01 Thread Paolo Bonzini
Il 01/03/2012 12:51, Wei Liu ha scritto: On Thu, 2012-03-01 at 11:22 +, Jan Kiszka wrote: On 2012-03-01 11:20, Wei Liu wrote: However, you know that you miss those (uncommon) messages that are injected via DMA? They end up directly in apic_deliver_msi (where KVM will once pick them up as

Re: [Qemu-devel] [PATCH] qed: do not evict in-use L2 table cache entries

2012-03-01 Thread Benoît Canet
Tested-by: Benoît Canet benoit.ca...@gmail.com On Mon, Feb 27, 2012 at 2:16 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: The L2 table cache reduces QED metadata reads that would be required when translating LBAs to offsets into the image file. Since requests execute in parallel it

[Qemu-devel] [RFC PATCH v5 06/14] trace: [tracetool] Process the disable event property

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/scripts/tracetool.py

[Qemu-devel] [RFC PATCH v5 12/14] monitor: remove unused do_info_trace

2012-03-01 Thread Harsh Prateek Bora
Going forward with simpletrace v2 variable size trace records, we cannot have a generic function to print trace event info and therefore this interface becomes invalid. As per Stefan Hajnoczi: This command is only available from the human monitor. It's not very useful because it historically

[Qemu-devel] [RFC PATCH v5 14/14] scripts/simpltrace.py changes: Support simplettrace v2

2012-03-01 Thread Harsh Prateek Bora
Added support for Simpletrace v2 log format Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/simpletrace.py | 137 +--- 1 files changed, 94 insertions(+), 43 deletions(-) diff --git a/scripts/simpletrace.py

[Qemu-devel] [RFC PATCH v5 00/14] Tracing Improvements, Simpletrace v2

2012-03-01 Thread Harsh Prateek Bora
This patchset introduces 2 major updates: 1) Tracetool Improvements (Conversion from shell script to python) 2) Simpletrace v2 log format (Support for variable args, strings) Existing simple trace can log upto 6 args per trace event and does not support strings in trace record format.

[Qemu-devel] [RFC PATCH v5 01/14] Converting tracetool.sh to tracetool.py

2012-03-01 Thread Harsh Prateek Bora
Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- Makefile.objs|6 +- Makefile.target | 10 +- configure|7 +- scripts/tracetool| 643 -- scripts/tracetool.py | 534

Re: [Qemu-devel] [PATCH 3/6] rename blockdev-group-snapshot-sync

2012-03-01 Thread Luiz Capitulino
On Wed, 29 Feb 2012 16:23:20 +0100 Paolo Bonzini pbonz...@redhat.com wrote: Il 29/02/2012 16:08, Luiz Capitulino ha scritto: but it can just be omitted, I wasn't sure of how QAPI handled optionals. Do you now? Perhaps not. :) All optionals will be accompanied of a 'bool

Re: [Qemu-devel] [PATCH v2] VMXNET3 paravirtual NIC device implementation

2012-03-01 Thread Dmitry Fleytman
On Thu, Mar 1, 2012 at 1:48 PM, Michael Tokarev m...@tls.msk.ru wrote: On 29.02.2012 16:49, Dmitry Fleytman wrote: Implementation of VMWare VMXNET3 paravirtual NIC device. Supports of all the device features including offload capabilties, VLANs and etc. [..] Not a review or anything (I

Re: [Qemu-devel] [RFC PATCH v4 00/14] Tracing Improvements, Simpletrace v2

2012-03-01 Thread Harsh Bora
On 03/01/2012 11:33 AM, Harsh Bora wrote: On 02/29/2012 01:53 AM, Lluís Vilanova wrote: Harsh Prateek Bora writes: This patchset introduces 2 major updates: 1) Tracetool Improvements (Conversion from shell script to python) 2) Simpletrace v2 log format (Support for variable args, strings)

Re: [Qemu-devel] [PATCH 3/6] rename blockdev-group-snapshot-sync

2012-03-01 Thread Paolo Bonzini
Il 01/03/2012 14:30, Luiz Capitulino ha scritto: My understanding was that in this case I can trust the value to be all-zeros (zero, false, 0.0, NULL), at least in the context of QAPI. The QmpInputVisitor uses g_malloc0. Yes, as a side effect :) I mean, I don't think the reason for using

[Qemu-devel] [PULL] Urgent memory fix for kvm with unaligned memory slots

2012-03-01 Thread Avi Kivity
The memory core may generate RAM memory regions that are not page aligned, but the kvm code is not prepared to handle them well and will abort under certain conditions. This patch fixes the problem. Please pull from: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent

[Qemu-devel] [RFC PATCH v5 08/14] trace: [tracetool] Make format-specific code optional with access to events

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 32 ++-- 1 files changed, 10 insertions(+), 22 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v2 2/6] qapi: complete implementation of unions

2012-03-01 Thread Kevin Wolf
Am 01.03.2012 12:21, schrieb Paolo Bonzini: Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qapi-schema-test.json | 10 ++ scripts/qapi-types.py |5 + scripts/qapi-visit.py | 31 ++- test-qmp-input-visitor.c | 18

[Qemu-devel] [RFC PATCH v5 02/14] trace: [tracetool] Do not rebuild event list in backend code

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/tracetool.py

[Qemu-devel] [PATCH] Add -netdev to man page

2012-03-01 Thread Miroslav Rezanina
There's missing -netdev description in the man page for qemu. As this is recommended way to create network backend, lack of documentation can discourage its usage. -net option is preserved but marked as obsolete way. Signed-off-by: Miroslav Rezanina mreza...@redhat.com Patch: - diff --git

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-03-01 Thread Stefano Stabellini
On Thu, 1 Mar 2012, Paolo Bonzini wrote: Il 01/03/2012 12:51, Wei Liu ha scritto: On Thu, 2012-03-01 at 11:22 +, Jan Kiszka wrote: On 2012-03-01 11:20, Wei Liu wrote: However, you know that you miss those (uncommon) messages that are injected via DMA? They end up directly in

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-03-01 Thread Paolo Bonzini
Il 01/03/2012 15:06, Stefano Stabellini ha scritto: This is not a NACK, but I can't help asking. Perhaps the fake Xen interrupt controller is a bit too simplistic? You can add a memory region corresponding to the APICs and trap writes in that region. Writes coming from QEMU are MSIs and

[Qemu-devel] [RFC PATCH v5 11/14] trace: [tracetool] Add error-reporting functions

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 27 +++ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/scripts/tracetool.py

Re: [Qemu-devel] [PATCH v8 1/4] cadence_uart: initial version of device model

2012-03-01 Thread Peter Maydell
On 28 February 2012 07:40, Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com wrote: Implemented cadence UART serial controller Signed-off-by: Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com Signed-off-by: John Linn john.l...@xilinx.com Acked-by: Edgar E. Iglesias

[Qemu-devel] [RFC PATCH v5 04/14] trace: [tracetool] Do not precompute the event number

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 21 + 1 files changed, 9 insertions(+), 12 deletions(-) diff --git a/scripts/tracetool.py

[Qemu-devel] [RFC PATCH v5 13/14] Simpletrace v2: Handle var num of args, strings.

2012-03-01 Thread Harsh Prateek Bora
Advantages over existing simpletrace backend: - More than 6 elements (vitually unlimited) arguments can be traced. - This allows to trace strings (variable size element) as well. Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 82 +-

[Qemu-devel] [RFC PATCH v5 07/14] trace: [tracetool] Rewrite event argument parsing

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 136 +++--- 1 files changed, 62 insertions(+), 74 deletions(-) diff --git

[Qemu-devel] [PATCH 00/11] apply volume on client side

2012-03-01 Thread Marc-André Lureau
Hi, This patch series was sent back in September, and reviewed by Gerd Hoffmann, who pointed out a few nitpicks in the build warnings. cheers Marc-André Lureau (11): audio: add VOICE_VOLUME ctl audio: don't apply volume effect if backend has VOICE_VOLUME_CAP audio: use a nominal volume

[Qemu-devel] [PATCH 02/11] audio: don't apply volume effect if backend has VOICE_VOLUME_CAP

2012-03-01 Thread Marc-André Lureau
--- audio/audio.c |9 +++-- audio/audio_int.h |5 + audio/audio_template.h |2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index d76c342..bd9237e 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -957,7 +957,9

[Qemu-devel] [PATCH 05/11] hw/ac97: the volume mask was not always 0x1f

2012-03-01 Thread Marc-André Lureau
It's a case by case, which will be added appropriately. --- hw/ac97.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index f2804e6..f7866ed 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -118,7 +118,6 @@ enum { #define EACS_VRA 1 #define EACS_VRM 8

[Qemu-devel] [PATCH 04/11] hw/ac97: remove USE_MIXER code

2012-03-01 Thread Marc-André Lureau
It doesn't compile. The interesting bits for volume control are going to be rewritten. --- hw/ac97.c | 121 - 1 files changed, 0 insertions(+), 121 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index c0fd019..f2804e6 100644 ---

[Qemu-devel] [PATCH 10/11] Allow controlling volume with PulseAudio backend

2012-03-01 Thread Marc-André Lureau
--- audio/paaudio.c | 96 --- 1 files changed, 91 insertions(+), 5 deletions(-) diff --git a/audio/paaudio.c b/audio/paaudio.c index beed434..7ddc16d 100644 --- a/audio/paaudio.c +++ b/audio/paaudio.c @@ -664,15 +664,100 @@ static void

[Qemu-devel] [PATCH 09/11] configure: pa_simple is not needed anymore

2012-03-01 Thread Marc-André Lureau
--- configure |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index d9dde96..938c2d2 100755 --- a/configure +++ b/configure @@ -1845,9 +1845,9 @@ for drv in $audio_drv_list; do ;; pa) -audio_drv_probe $drv pulse/simple.h

[Qemu-devel] live migration between amd fam15h-fam10h

2012-03-01 Thread Vasilis Liaskovitis
Hi, I am getting a frozen guest when migrating from an Opteron 6274 host (amd fam15h) to an Opteron 6174 host (amd fam10h). The live migration completes succesfully, but the guest is frozen: vcn screen is still there, but no input is possible and no kernel output is seen. Trying c on the

[Qemu-devel] [RFC PATCH v5 05/14] trace: [tracetool] Add support for event properties

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/tracetool.py

[Qemu-devel] [PATCH 06/11] hw/ac97: new support for volume control

2012-03-01 Thread Marc-André Lureau
--- hw/ac97.c | 79 + 1 files changed, 79 insertions(+), 0 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index f7866ed..227233c 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -436,6 +436,63 @@ static void reset_voices (AC97LinkState *s,

[Qemu-devel] [RFC PATCH v5 09/14] trace: [tracetool] Automatically establish available backends and formats

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- Makefile.objs|6 +- Makefile.target |3 +- scripts/tracetool.py | 321 --

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-03-01 Thread Stefano Stabellini
On Thu, 1 Mar 2012, Paolo Bonzini wrote: Il 01/03/2012 15:06, Stefano Stabellini ha scritto: This is not a NACK, but I can't help asking. Perhaps the fake Xen interrupt controller is a bit too simplistic? You can add a memory region corresponding to the APICs and trap writes in that

[Qemu-devel] [RFC PATCH v5 03/14] trace: [tracetool] Simplify event line parsing

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/tracetool.py | 50 +- 1 files changed, 17 insertions(+), 33 deletions(-) diff --git

[Qemu-devel] [PATCH 01/11] audio: add VOICE_VOLUME ctl

2012-03-01 Thread Marc-André Lureau
--- audio/audio.c | 12 audio/audio_int.h |1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index 398763f..d76c342 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -2053,17 +2053,29 @@ void AUD_del_capture (CaptureVoiceOut

[Qemu-devel] [PATCH 03/11] audio: use a nominal volume of 1^32-1

2012-03-01 Thread Marc-André Lureau
So we can easily fit it into smaller int. We can just 16 to fit it into a 16bits volume range for example. --- audio/audio.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index bd9237e..9ea5b39 100644 --- a/audio/audio.c +++

[Qemu-devel] [PATCH 11/11] Make mixemu mandatory

2012-03-01 Thread Marc-André Lureau
Without MIXEMU, volume control on the guest doesn't work (except when volume is applied by guest emulation, in Win7 for example) --- audio/mixeng.c |6 -- configure |8 hw/hda-audio.c |4 3 files changed, 0 insertions(+), 18 deletions(-) diff --git

[Qemu-devel] [PATCH 07/11] audio/spice: add support for volume control

2012-03-01 Thread Marc-André Lureau
--- audio/spiceaudio.c | 41 + 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/audio/spiceaudio.c b/audio/spiceaudio.c index f972110..92964ae 100644 --- a/audio/spiceaudio.c +++ b/audio/spiceaudio.c @@ -202,7 +202,26 @@ static int

Re: [Qemu-devel] [PATCH v8 2/4] cadence_ttc: initial version of device model

2012-03-01 Thread Peter Maydell
On 28 February 2012 07:40, Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com wrote: Implemented cadence Triple Timer Counter (TCC) Signed-off-by: Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com Signed-off-by: John Linn john.l...@xilinx.com Acked-by: Edgar E. Iglesias

[Qemu-devel] [PATCH 08/11] Do not use pa_simple PulseAudio API

2012-03-01 Thread Marc-André Lureau
Unfortunately, pa_simple is a limited API which doesn't let us retrieve the associated pa_stream. It is needed to control the volume of the stream. --- audio/paaudio.c | 356 +-- 1 files changed, 318 insertions(+), 38 deletions(-) diff --git

Re: [Qemu-devel] Add support for new image type

2012-03-01 Thread Kevin Wolf
Am 29.02.2012 22:52, schrieb Kai Meyer: Is it possible to extend qemu to support a new image type? I have an image type that is ready for consumption and I'm looking for the integration point between qemu and the new image format. Which image format do you want to get integrated? Have a

Re: [Qemu-devel] [PATCH v8 3/4] cadence_gem: initial version of device model

2012-03-01 Thread Peter Maydell
On 28 February 2012 07:40, Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com wrote: +static const VMStateDescription vmstate_cadence_gem = { +    .name = cadence_gem, +    .unmigratable = 1, +}; Needs implementing properly. Otherwise looks OK. -- PMM

[Qemu-devel] [RFC PATCH v5 10/14] trace: Provide a per-event status define for conditional compilation

2012-03-01 Thread Harsh Prateek Bora
From: Lluís Vilanova vilan...@ac.upc.edu NOTE: This is a port of a patch in Stefanha's tracing tree to the new pythonic tracetool version. Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in trace.h. This lets the user conditionally compile code with a relatively high

Re: [Qemu-devel] [PATCH v8 4/4] xilinx_zynq: machine model initial version

2012-03-01 Thread Peter Maydell
On 28 February 2012 07:40, Peter A. G. Crosthwaite peter.crosthwa...@petalogix.com wrote: +static const VMStateDescription vmstate_zynq_slcr = { +    .name = zynq_slcr, +    .unmigratable = 1, +}; No reason to make this unmigratable rather than just putting in the vmstate fields. Otherwise

[Qemu-devel] [Bug 657006] Re: arm v7M - svc insn doesn't trigger PendSV handler

2012-03-01 Thread Oleksiy Bondarenko
I had the same problem then was trying to run project based on uC OS2. So there is no problem in freeRtos or in uCOS and it is better to do change in helper.c in function: static void do_v7m_exception_exit(CPUARMState *env) replace line env-regs[15] = v7m_pop(env); with env-regs[15] =

[Qemu-devel] [PATCH] add reopen to blockdev-transaction

2012-03-01 Thread Federico Simoncelli
Signed-off-by: Federico Simoncelli fsimo...@redhat.com --- blockdev.c |8 qapi-schema.json | 12 qmp-commands.hx |6 +- 3 files changed, 25 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index 56da5c9..36fe07c 100644 --- a/blockdev.c

  1   2   >