Re: [Qemu-devel] [PATCH 03/61] virtio-pci-bus : introduce virtio-pci-bus.

2013-01-09 Thread KONRAD Frédéric
On 08/01/2013 19:08, Peter Maydell wrote: On 7 January 2013 18:40, fred.kon...@greensocs.com wrote: From: KONRAD Frederic fred.kon...@greensocs.com Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci transport device. Signed-off-by: KONRAD Frederic

[Qemu-devel] [Qemu PATCH v2] add a boot option to do strict boot

2013-01-09 Thread Amos Kong
Current seabios will try to boot from selected devices first, if they are all failed, seabios will also try to boot from un-selected devices. We need to make it configurable. I already posted a seabios patch to add a new device type to halt booting. Qemu can add HALT at the end of bootindex

Re: [Qemu-devel] [PATCH 04/61] virtio-pci : refactor virtio-pci device.

2013-01-09 Thread KONRAD Frédéric
On 08/01/2013 18:54, Peter Maydell wrote: On 7 January 2013 18:40, fred.kon...@greensocs.com wrote: From: KONRAD Frederic fred.kon...@greensocs.com Create the virtio-pci device. This transport device will create a virtio-pci-bus, so one VirtIODevice can be connected. Signed-off-by: KONRAD

Re: [Qemu-devel] Request - How to compile change User Mode Networking address space?

2013-01-09 Thread Stefan Hajnoczi
On Mon, Jan 07, 2013 at 11:17:39AM -0800, Tony Su wrote: I haven't been able to find anyone who can confirm that the following command should modify the User Mode Networking default address space, but in any case does not work for my distro. I have yet to determine if this problem is specific

Re: [Qemu-devel] [PATCH] gdbstub: Implement Xfer:spaces requests. This is a part of Codebench IDE integration.

2013-01-09 Thread Stefan Hajnoczi
On Tue, Jan 08, 2013 at 01:31:36AM +0200, Alex Rozenman wrote: Signed-off-by: Alex Rozenman alex_rozen...@mentor.com --- gdbstub.c | 113 + 1 file changed, 113 insertions(+) Also worth CCing Jan Kiszka on gdbstub changes. diff

Re: [Qemu-devel] [PATCH] optionrom: build with discrete CPP and AS steps

2013-01-09 Thread Brad Smith
On Sun, Jan 06, 2013 at 10:19:56AM +, Blue Swirl wrote: Build option ROM .S files with separate preprocessor and assembler steps because the C compiler could be unsuitable. Signed-off-by: Blue Swirl blauwir...@gmail.com Can this please be commited? --- configure |7 ++-

Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2013-01-09 Thread Wanlong Gao
On 01/08/2013 06:14 PM, Jason Wang wrote: On 01/08/2013 06:00 PM, Wanlong Gao wrote: On 01/08/2013 05:51 PM, Jason Wang wrote: On 01/08/2013 05:49 PM, Wanlong Gao wrote: On 01/08/2013 05:29 PM, Jason Wang wrote: On 01/08/2013 05:07 PM, Wanlong Gao wrote: On 12/28/2012 06:32 PM, Jason Wang

Re: [Qemu-devel] [PATCH 03/61] virtio-pci-bus : introduce virtio-pci-bus.

2013-01-09 Thread KONRAD Frédéric
On 09/01/2013 09:37, KONRAD Frédéric wrote: On 08/01/2013 19:08, Peter Maydell wrote: On 7 January 2013 18:40, fred.kon...@greensocs.com wrote: From: KONRAD Frederic fred.kon...@greensocs.com Introduce virtio-pci-bus, which extends virtio-bus. It is used with virtio-pci transport device.

Re: [Qemu-devel] [SeaBIOS] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster)

2013-01-09 Thread Paolo Bonzini
Il 08/01/2013 00:51, Brad Smith ha scritto: Kevin, are you okay with tagging SeaBIOS master as 1.7.2 one of these days? Other opinions? A new release can be produced if desired. Given that there isn't much new since 1.7.1 I too would prefer to just push forward to

Re: [Qemu-devel] buildbot failure in qemu on block_mingw32

2013-01-09 Thread Stefan Hajnoczi
On Tue, Jan 08, 2013 at 01:06:19AM +0100, q...@buildbot.b1-systems.de wrote: The Buildbot has detected a new failure on builder block_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/439 Buildbot URL:

[Qemu-devel] [PATCH 1/2] gcc: rename CONFIG_PRAGMA_DISABLE_UNUSED_BUT_SET to CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE

2013-01-09 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure|6 +++--- coroutine-ucontext.c |4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 4f050ea..9357035 100755 --- a/configure +++ b/configure @@ -3078,7 +3078,7 @@ int

[Qemu-devel] [PATCH 2/2] pixman: fix warning

2013-01-09 Thread Gerd Hoffmann
Cc: afaer...@suse.de Cc: ag...@suse.de Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/qemu-pixman.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 3c05c83..016fd87 100644 ---

Re: [Qemu-devel] [PATCH 00/15] qdev: make reset semantics more clear and consistent, reset qbuses under virtio devices

2013-01-09 Thread Paolo Bonzini
Il 07/01/2013 20:10, Anthony Liguori ha scritto: Paolo Bonzini pbonz...@redhat.com writes: After discussion with mst on the topic of resetting virtio devices, here is a series that hopefully clarifies the semantics of bus and device resets. After this series, there are two kinds of resets:

Re: [Qemu-devel] [PATCH] Check return values from g_poll and select

2013-01-09 Thread Paolo Bonzini
Il 08/01/2013 16:30, Fabien Chouteau ha scritto: The current implementation of os_host_main_loop_wait() on Windows, returns 1 only when a g_poll() event occurs because the return value of select() is overridden. This is wrong as we may skip a socket event, as shown in this example: 1.

Re: [Qemu-devel] [PATCH qom-cpu 2/7] target-i386: Don't set any KVM flag by default if KVM is disabled

2013-01-09 Thread Igor Mammedov
On Mon, 7 Jan 2013 16:20:43 -0200 Eduardo Habkost ehabk...@redhat.com wrote: This is a cleanup that tries to solve two small issues: - We don't need a separate kvm_pv_eoi_features variable just to keep a constant calculated at compile-time, and this style would require adding a

Re: [Qemu-devel] [PATCH 1/2] oslib-win32: add lock for gmtime_r()

2013-01-09 Thread Paolo Bonzini
Il 09/01/2013 07:18, Wenchao Xia ha scritto: Also changed the caller of gmtime() to gmtime_r(). Should be a separate patch. Also, what is the reason to add this lock? They are already protected by the BQL. Paolo Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- oslib-win32.c |

Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2013-01-09 Thread Jason Wang
On 01/09/2013 04:23 PM, Wanlong Gao wrote: On 01/08/2013 06:14 PM, Jason Wang wrote: On 01/08/2013 06:00 PM, Wanlong Gao wrote: On 01/08/2013 05:51 PM, Jason Wang wrote: On 01/08/2013 05:49 PM, Wanlong Gao wrote: On 01/08/2013 05:29 PM, Jason Wang wrote: On 01/08/2013 05:07 PM, Wanlong Gao

Re: [Qemu-devel] [Qemu PATCH v2] add a boot option to do strict boot

2013-01-09 Thread Gleb Natapov
On Wed, Jan 09, 2013 at 04:39:13PM +0800, Amos Kong wrote: Current seabios will try to boot from selected devices first, if they are all failed, seabios will also try to boot from un-selected devices. We need to make it configurable. I already posted a seabios patch to add a new device type

Re: [Qemu-devel] [PATCH 01/12] tap: multiqueue support

2013-01-09 Thread Stefan Hajnoczi
On Fri, Dec 28, 2012 at 06:31:53PM +0800, Jason Wang wrote: diff --git a/qapi-schema.json b/qapi-schema.json index 5dfa052..583eb7c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2465,7 +2465,7 @@ { 'type': 'NetdevTapOptions', 'data': { '*ifname': 'str', -'*fd':

Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2013-01-09 Thread Wanlong Gao
On 01/09/2013 05:30 PM, Jason Wang wrote: On 01/09/2013 04:23 PM, Wanlong Gao wrote: On 01/08/2013 06:14 PM, Jason Wang wrote: On 01/08/2013 06:00 PM, Wanlong Gao wrote: On 01/08/2013 05:51 PM, Jason Wang wrote: On 01/08/2013 05:49 PM, Wanlong Gao wrote: On 01/08/2013 05:29 PM, Jason Wang

Re: [Qemu-devel] [PATCH] pc: rename machine types

2013-01-09 Thread Daniel P. Berrange
On Tue, Jan 08, 2013 at 10:16:25AM -0600, Anthony Liguori wrote: Gerd Hoffmann kra...@redhat.com writes: On 01/08/13 14:57, Anthony Liguori wrote: Gerd Hoffmann kra...@redhat.com writes: Starting with release 1.4 we have a fully functional q35 machine type, i.e. qemu -M q35

Re: [Qemu-devel] [PATCH 00/15] qdev: make reset semantics more clear and consistent, reset qbuses under virtio devices

2013-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2013 at 10:33:37AM +0100, Paolo Bonzini wrote: Il 07/01/2013 20:10, Anthony Liguori ha scritto: Paolo Bonzini pbonz...@redhat.com writes: After discussion with mst on the topic of resetting virtio devices, here is a series that hopefully clarifies the semantics of bus and

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Paolo Bonzini
Il 08/01/2013 13:12, Kevin Wolf ha scritto: Okay, I see the code indeed support WCE but it requires Guest kernel to support it. For the kernel doesn't support it, there is no way to disable write cache, no? With Linux guests, it's possible for SCSI. I'm not sure about virtio-blk, but you

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Paolo Bonzini
Il 08/01/2013 14:18, Liu Yuan ha scritto: Maybe not for a second thought. See following combination: cache flagsWCE toggled and resulting behavior writethrough writethrough writeback writetrhough (writeback + flush as expected) cache flags means

Re: [Qemu-devel] [PATCH] pc: rename machine types

2013-01-09 Thread Gerd Hoffmann
On 01/09/13 11:09, Daniel P. Berrange wrote: I don't care that much what the actual names are. Using piix + q35 is inconsistent, so it isn't that a good choice indeed. So what now? (1) We could go for the host bridge and use 'i440fx' + 'q35'. (2) We could go for the south bridge and

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Liu Yuan
On 01/09/2013 06:25 PM, Paolo Bonzini wrote: But why is it useful to force-disable writeback caching? Do you have any performance numbers? This is not related to performance. What I want is to allow users to choose Sheepdog cache mode (writethrough/writeback/directio) from cache=xxx.

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Paolo Bonzini
Il 09/01/2013 11:36, Liu Yuan ha scritto: But why is it useful to force-disable writeback caching? Do you have any performance numbers? This is not related to performance. What I want is to allow users to choose Sheepdog cache mode (writethrough/writeback/directio) from cache=xxx.

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Liu Yuan
On 01/09/2013 06:40 PM, Paolo Bonzini wrote: 1) how slower is QEMU's emulated-writethrough mode for writes, due to the extra requests? I'll collect some numbers on it. 2) how slower is QEMU's writeback mode for reads, due to the different structure of the cache? Sorry, I don't get your

[Qemu-devel] [PATCH] e1000: make ICS write-only

2013-01-09 Thread Michael S. Tsirkin
Since commit b1332393cdd7d023de8f1f8aa136ee7866a18968, qemu started updating ICS register when interrupt is sent, with the intent to match spec better (guests do not actually read this register). However, the function set_interrupt_cause where ICS is updated is often called internally by device

Re: [Qemu-devel] [PATCH 00/15] qdev: make reset semantics more clear and consistent, reset qbuses under virtio devices

2013-01-09 Thread Paolo Bonzini
Il 09/01/2013 11:22, Michael S. Tsirkin ha scritto: It's possible. I'll move the SCSI bus away from qdev reset. Anthony/Michael, can you help doing the same with PCIDevice? And perhaps Peter and Andreas with sysbus? I'm not sure what would you like to change with PCIDevice. Replace the

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Liu Yuan
On 01/09/2013 06:46 PM, Liu Yuan wrote: I'll collect some numbers on it. Well, when I use hdparm -W 0 /dev/vdx to choose the writethrough cache in the Guest (virtio disk), it says: test@vm1:~$ sudo hdparm -W 0 /dev/vdb /dev/vdb: setting drive write-caching to 0 (off) HDIO_DRIVE_CMD(identify)

Re: [Qemu-devel] [PATCH] raw-posix: Support discard on more filesystems

2013-01-09 Thread Paolo Bonzini
Il 05/01/2013 13:05, Kusanagi Kouichi ha scritto: Linux 2.6.38 introduced the filesystem independent interface to deallocate part of a file. As of Linux 3.7, btrfs, ext4, ocfs2, tmpfs and xfs support it. Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- block/raw-posix.c | 22

Re: [Qemu-devel] [PATCH 00/15] qdev: make reset semantics more clear and consistent, reset qbuses under virtio devices

2013-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2013 at 11:53:00AM +0100, Paolo Bonzini wrote: Il 09/01/2013 11:22, Michael S. Tsirkin ha scritto: It's possible. I'll move the SCSI bus away from qdev reset. Anthony/Michael, can you help doing the same with PCIDevice? And perhaps Peter and Andreas with sysbus?

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Kevin Wolf
Am 09.01.2013 11:36, schrieb Liu Yuan: On 01/09/2013 06:25 PM, Paolo Bonzini wrote: But why is it useful to force-disable writeback caching? Do you have any performance numbers? This is not related to performance. What I want is to allow users to choose Sheepdog cache mode

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Paolo Bonzini
Il 09/01/2013 11:58, Liu Yuan ha scritto: On 01/09/2013 06:46 PM, Liu Yuan wrote: I'll collect some numbers on it. Well, when I use hdparm -W 0 /dev/vdx to choose the writethrough cache in the Guest (virtio disk), it says: test@vm1:~$ sudo hdparm -W 0 /dev/vdb /dev/vdb: setting drive

Re: [Qemu-devel] [PATCH 00/15] qdev: make reset semantics more clear and consistent, reset qbuses under virtio devices

2013-01-09 Thread Paolo Bonzini
Il 09/01/2013 12:09, Michael S. Tsirkin ha scritto: On Wed, Jan 09, 2013 at 11:53:00AM +0100, Paolo Bonzini wrote: Il 09/01/2013 11:22, Michael S. Tsirkin ha scritto: It's possible. I'll move the SCSI bus away from qdev reset. Anthony/Michael, can you help doing the same with PCIDevice? And

Re: [Qemu-devel] [PATCH qom-cpu 2/7] target-i386: Don't set any KVM flag by default if KVM is disabled

2013-01-09 Thread Eduardo Habkost
On Wed, Jan 09, 2013 at 09:41:37AM -0200, Eduardo Habkost wrote: [...] Andreas, please ignore this patch (it is not necessary anymore as this series doesn't include machine-type compatibility code for kvm_mmu). Patches 2-7 don't depend on this patch and should apply cleanly without it. I

Re: [Qemu-devel] [PATCH 00/15] qdev: make reset semantics more clear and consistent, reset qbuses under virtio devices

2013-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2013 at 12:12:55PM +0100, Paolo Bonzini wrote: Il 09/01/2013 12:09, Michael S. Tsirkin ha scritto: On Wed, Jan 09, 2013 at 11:53:00AM +0100, Paolo Bonzini wrote: Il 09/01/2013 11:22, Michael S. Tsirkin ha scritto: It's possible. I'll move the SCSI bus away from qdev reset.

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Liu Yuan
On 01/09/2013 06:46 PM, Liu Yuan wrote: 1) how slower is QEMU's emulated-writethrough mode for writes, due to the extra requests? I'll collect some numbers on it. Okay I got some nubmers. I run three sheep daemon on the same host to emulate a 3 nodes cluster, Sheepdog image has 3 copies

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Liu Yuan
On 01/09/2013 08:07 PM, Liu Yuan wrote: $ qemu-system-x86_64 --enable-kvm -drive file=~/images/test1,if=virtio,cache=writeback -smp 2 -cpu host -m 1024 -drive file=sheepdog:test,if=virtio,cache=writeback To emulate old impl, I modified the sheepdog block driver as following: diff --git

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Liu Yuan
On 01/09/2013 08:07 PM, Liu Yuan wrote: and my proposal (adding another field to BlockDriverState to allow self-interpretation cache flag) can work well with current block layer: Sheepdog driver behavior: cache flagsWCE toggled and resulting behavior writethrough

Re: [Qemu-devel] [PATCH qom-cpu 2/7] target-i386: Don't set any KVM flag by default if KVM is disabled

2013-01-09 Thread Eduardo Habkost
On Wed, Jan 09, 2013 at 10:46:12AM +0100, Igor Mammedov wrote: On Mon, 7 Jan 2013 16:20:43 -0200 Eduardo Habkost ehabk...@redhat.com wrote: This is a cleanup that tries to solve two small issues: - We don't need a separate kvm_pv_eoi_features variable just to keep a constant

Re: [Qemu-devel] [PATCH] fix bits 39:32 of the final physical address when using 4M page

2013-01-09 Thread Luiz Capitulino
On Sat, 22 Dec 2012 15:13:54 +0800 Wen Congyang we...@cn.fujitsu.com wrote: ((pde 0x1fe000) 19) is the bits 39:32 of the final physical address, and we shouldn't use unit32_t to calculate it. Convert the type to hwaddr to fix this problem. Signed-off-by: Wen Congyang we...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Kevin Wolf
Am 09.01.2013 13:07, schrieb Liu Yuan: Besides performance, I think backward compatibility is more important: 1 if we run a old kernel host (quite possible for a long running server) which doesn't support WCE, then we will never have a chance to choose writethrough cache for guest OS against

Re: [Qemu-devel] [PATCH V2 07/10] snapshot: qmp use new internal API for external snapshot transaction

2013-01-09 Thread Stefan Hajnoczi
On Mon, Jan 07, 2013 at 03:28:06PM +0800, Wenchao Xia wrote: This patch switch to internal common API to take group external snapshots from qmp_transaction interface. qmp layer simply does a translation from user input. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com ---

Re: [Qemu-devel] [PATCH v2] xen_disk: add persistent grant support to xen_disk backend

2013-01-09 Thread Stefano Stabellini
On Tue, 8 Jan 2013, Roger Pau Monne wrote: This protocol extension reuses the same set of grant pages for all transactions between the front/back drivers, avoiding expensive tlb flushes, grant table lock contention and switches between userspace and kernel space. The full description of the

Re: [Qemu-devel] [PATCH V3 2/4] HMP: add infrastructure for sub command

2013-01-09 Thread Luiz Capitulino
On Thu, 27 Dec 2012 17:40:25 +0800 Wenchao Xia xiaw...@linux.vnet.ibm.com wrote: This patch make parsing of hmp command aware of that it may have sub command. Also discard simple encapsulation function monitor_find_command() and qmp_find_cmd(). Signed-off-by: Wenchao Xia

[Qemu-devel] KVM versions, machine types and failed migrations

2013-01-09 Thread Vangelis Koukis
Hello, I'd like to ask a few questions about the way migrations work in KVM among different emulated machine types and different versions of the qemu-kvm package. I am sending to both the kvm@ and qemu-devel@ lists, please redirect me if I was wrong in doing so. In a nutshell: while trying to

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Liu Yuan
On 01/09/2013 08:42 PM, Kevin Wolf wrote: Am 09.01.2013 13:07, schrieb Liu Yuan: Besides performance, I think backward compatibility is more important: 1 if we run a old kernel host (quite possible for a long running server) which doesn't support WCE, then we will never have a chance to

Re: [Qemu-devel] KVM versions, machine types and failed migrations

2013-01-09 Thread Daniel P. Berrange
On Wed, Jan 09, 2013 at 02:23:50PM +0200, Vangelis Koukis wrote: Hello, I'd like to ask a few questions about the way migrations work in KVM among different emulated machine types and different versions of the qemu-kvm package. I am sending to both the kvm@ and qemu-devel@ lists, please

Re: [Qemu-devel] [PATCH v2] xen_disk: add persistent grant support to xen_disk backend

2013-01-09 Thread Roger Pau Monné
On 09/01/13 13:48, Stefano Stabellini wrote: On Tue, 8 Jan 2013, Roger Pau Monne wrote: This protocol extension reuses the same set of grant pages for all transactions between the front/back drivers, avoiding expensive tlb flushes, grant table lock contention and switches between userspace

Re: [Qemu-devel] [PATCH 04/11] qdev: add reference count to a device for the BusChild

2013-01-09 Thread Paolo Bonzini
Il 07/01/2013 21:26, Anthony Liguori ha scritto: +object_ref(OBJECT(kid-child)); QTAILQ_INSERT_HEAD(bus-children, kid, sibling); +/* This transfers ownership of kid-child to the property. */ snprintf(name, sizeof(name), child[%d], kid-index);

Re: [Qemu-devel] [okeanos-dev] Re: KVM versions, machine types and failed migrations

2013-01-09 Thread Vangelis Koukis
On Wed, Jan 09, 2013 at 01:10:45pm +, Daniel P. Berrange wrote: When doing migration, the fundamental requirement is that the guest OS visible machine ABI must not change. Thus there are three key things to take care of when launching QEMU on the migration target host. - The device

Re: [Qemu-devel] [PATCH 1/3] qga: add support to get host time

2013-01-09 Thread Luiz Capitulino
On Sun, 6 Jan 2013 18:06:58 +0800 Lei Li li...@linux.vnet.ibm.com wrote: Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-posix.c | 18 ++ qga/qapi-schema.json | 17 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 2/3] qga: add guest-get-time command

2013-01-09 Thread Luiz Capitulino
On Sun, 6 Jan 2013 18:06:59 +0800 Lei Li li...@linux.vnet.ibm.com wrote: Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-posix.c | 12 qga/qapi-schema.json | 17 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 3/3] qga: add guest-set-time command

2013-01-09 Thread Luiz Capitulino
On Sun, 6 Jan 2013 18:07:00 +0800 Lei Li li...@linux.vnet.ibm.com wrote: Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-posix.c | 57 ++ qga/qapi-schema.json | 32 2 files changed, 89

Re: [Qemu-devel] [PATCH 07/11] qdev: add reference for the bus while it is referred to by the DeviceState

2013-01-09 Thread Paolo Bonzini
Il 07/01/2013 21:29, Anthony Liguori ha scritto: Paolo Bonzini pbonz...@redhat.com writes: Now that the unparent callbacks are complete, we can correctly account more missing references. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/qdev.c | 3 +++ 1 file changed, 3

Re: [Qemu-devel] [PATCH 0/3] xhci fixes

2013-01-09 Thread Hans de Goede
Hi, Other then the typo in the commit messages for the 3th patch, this sets looks good. ACK series. Regards, Hans On 01/08/2013 02:16 PM, Gerd Hoffmann wrote: Hi, Little patch series which makes sure xhci cancels inflight transfers on device detach. cheers, Gerd Gerd Hoffmann (3):

Re: [Qemu-devel] [PATCH v2] xen_disk: add persistent grant support to xen_disk backend

2013-01-09 Thread Stefano Stabellini
On Wed, 9 Jan 2013, Roger Pau Monne wrote: On 09/01/13 13:48, Stefano Stabellini wrote: On Tue, 8 Jan 2013, Roger Pau Monne wrote: This protocol extension reuses the same set of grant pages for all transactions between the front/back drivers, avoiding expensive tlb flushes, grant table

Re: [Qemu-devel] [PATCH] e1000: make ICS write-only

2013-01-09 Thread Stefan Hajnoczi
On Wed, Jan 09, 2013 at 12:51:00PM +0200, Michael S. Tsirkin wrote: Since commit b1332393cdd7d023de8f1f8aa136ee7866a18968, qemu started updating ICS register when interrupt is sent, with the intent to match spec better (guests do not actually read this register). However, the function

Re: [Qemu-devel] [PATCH 00/12] Multiqueue virtio-net

2013-01-09 Thread Stefan Hajnoczi
On Fri, Dec 28, 2012 at 06:31:52PM +0800, Jason Wang wrote: Perf Numbers: Two Intel Xeon 5620 with direct connected intel 82599EB Host/Guest kernel: David net tree vhost enabled - lots of improvents of both latency and cpu utilization in request-reponse test - get regression of guest

Re: [Qemu-devel] [PATCH 04/61] virtio-pci : refactor virtio-pci device.

2013-01-09 Thread Peter Maydell
On 9 January 2013 08:45, KONRAD Frédéric fred.kon...@greensocs.com wrote: On 08/01/2013 18:54, Peter Maydell wrote: This doesn't have any code in it yet (it gets added in later patches) but the final result looks very repetitive. I think you'd be better off just having some arrays: uint16_t

Re: [Qemu-devel] [PATCH] e1000: make ICS write-only

2013-01-09 Thread Anthony Liguori
Michael S. Tsirkin m...@redhat.com writes: Since commit b1332393cdd7d023de8f1f8aa136ee7866a18968, qemu started updating ICS register when interrupt is sent, with the intent to match spec better (guests do not actually read this register). However, the function set_interrupt_cause where ICS

Re: [Qemu-devel] [PATCH] pc: rename machine types

2013-01-09 Thread Anthony Liguori
Gerd Hoffmann kra...@redhat.com writes: On 01/09/13 11:09, Daniel P. Berrange wrote: I don't care that much what the actual names are. Using piix + q35 is inconsistent, so it isn't that a good choice indeed. So what now? (1) We could go for the host bridge and use 'i440fx' + 'q35'.

Re: [Qemu-devel] [PATCH 03/61] virtio-pci-bus : introduce virtio-pci-bus.

2013-01-09 Thread Peter Maydell
On 9 January 2013 09:14, KONRAD Frédéric fred.kon...@greensocs.com wrote: On 09/01/2013 09:37, KONRAD Frédéric wrote: On 08/01/2013 19:08, Peter Maydell wrote: This isn't quite right, I think (somebody correct me if I'm wrong!) The virtio-pci-bus subclass doesn't have any state of its own, so

Re: [Qemu-devel] [PATCH 03/61] virtio-pci-bus : introduce virtio-pci-bus.

2013-01-09 Thread KONRAD Frédéric
On 09/01/2013 15:53, Peter Maydell wrote: On 9 January 2013 09:14, KONRAD Frédéric fred.kon...@greensocs.com wrote: On 09/01/2013 09:37, KONRAD Frédéric wrote: On 08/01/2013 19:08, Peter Maydell wrote: This isn't quite right, I think (somebody correct me if I'm wrong!) The virtio-pci-bus

Re: [Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2013-01-09 Thread Paolo Bonzini
Il 09/01/2013 14:04, Liu Yuan ha scritto: 2 The upper layer software which relies on the 'cache=xxx' to choose cache mode will fail its assumption against new QEMU. Which assumptions do you mean? As far as I can say the behaviour hasn't changed, except possibly for the performance.

Re: [Qemu-devel] [Qemu PATCH v2] add a boot option to do strict boot

2013-01-09 Thread Eric Blake
On 01/09/2013 01:39 AM, Amos Kong wrote: Current seabios will try to boot from selected devices first, if they are all failed, seabios will also try to boot from un-selected devices. We need to make it configurable. I already posted a seabios patch to add a new device type to halt booting.

[Qemu-devel] [PATCH 00/13] convert savevm to use qapi and introduce qmp command

2013-01-09 Thread Pavel Hrdina
This patch series convert the savevm command into qapi and introduce QMP command vm-snapshot-save. It also rewrite error report for functions used by this command. Last patch introduce new functionality of savevm and vm-snapshot-save that you cannot override existing snapshot without using

[Qemu-devel] [PATCH 05/13] savevm: add error parameter to qemu_savevm_state_complete()

2013-01-09 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- include/sysemu/sysemu.h | 2 +- migration.c | 2 +- savevm.c| 12 +--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index afc1fe6..d02d13f

Re: [Qemu-devel] [PATCH qom-cpu 4/7] target-i386/cpu: Introduce FeatureWord typedefs

2013-01-09 Thread Gleb Natapov
On Mon, Jan 07, 2013 at 04:20:45PM -0200, Eduardo Habkost wrote: This introduces a FeatureWord enum, FeatureWordInfo struct (with generation information about a feature word), and a FeatureWordArray typedef, and changes add_flagname_to_bitmaps() code and cpu_x86_parse_featurestr() to use the

[Qemu-devel] [PATCH 08/13] qemu-img: introduce qemu_img_handle_error

2013-01-09 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- qemu-img.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 5d667ae..c283bf6 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -292,6 +292,14 @@ static int add_old_style_options(const char

[Qemu-devel] [PATCH 09/13] block: update return value from bdrv_snapshot_create

2013-01-09 Thread Pavel Hrdina
If we provide error message, we should also provide a return code. In some cases we could not care about any error message and the return code is enough for as. Signed-off-by: Pavel Hrdina phrd...@redhat.com --- block.c| 4 ++-- block/qcow2-snapshot.c | 4 ++-- block/rbd.c

Re: [Qemu-devel] [PATCH qom-cpu 0/7] disable kvm_mmu + -cpu enforce fixes (v3)

2013-01-09 Thread Gleb Natapov
On Mon, Jan 07, 2013 at 04:20:41PM -0200, Eduardo Habkost wrote: Changes on v3: - Patches 3-9 from v2 are now already on qom-cpu tree - Remove CONFIG_KVM #ifdefs by declaring fake KVM_* #defines on sysemu/kvm.h - Refactor code that uses the feature word arrays (to make it easier to add

Re: [Qemu-devel] [libvirt] [Qemu PATCH v2] add a boot option to do strict boot

2013-01-09 Thread Daniel P. Berrange
On Wed, Jan 09, 2013 at 08:14:07AM -0700, Eric Blake wrote: On 01/09/2013 01:39 AM, Amos Kong wrote: Current seabios will try to boot from selected devices first, if they are all failed, seabios will also try to boot from un-selected devices. We need to make it configurable. I already

[Qemu-devel] QCOW2 deduplication design

2013-01-09 Thread Benoît Canet
Hello, Here is a mail to open a discussion on QCOW2 deduplication design and performance. The actual deduplication strategy is RAM based. One of the goal of the project is to plan and implement an alternative way to do the lookups from disk for bigger images. I will in a first section

Re: [Qemu-devel] [PATCH 01/12] tap: multiqueue support

2013-01-09 Thread Jason Wang
On 01/09/2013 05:56 PM, Stefan Hajnoczi wrote: On Fri, Dec 28, 2012 at 06:31:53PM +0800, Jason Wang wrote: diff --git a/qapi-schema.json b/qapi-schema.json index 5dfa052..583eb7c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2465,7 +2465,7 @@ { 'type': 'NetdevTapOptions',

Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2013-01-09 Thread Jason Wang
On 01/09/2013 06:01 PM, Wanlong Gao wrote: On 01/09/2013 05:30 PM, Jason Wang wrote: On 01/09/2013 04:23 PM, Wanlong Gao wrote: On 01/08/2013 06:14 PM, Jason Wang wrote: On 01/08/2013 06:00 PM, Wanlong Gao wrote: On 01/08/2013 05:51 PM, Jason Wang wrote: On 01/08/2013 05:49 PM, Wanlong Gao

[Qemu-devel] [PATCH v2 6/8] target-mips: use DSP unions for unary DSP operators

2013-01-09 Thread Aurelien Jarno
This allow to reduce the number of macros. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/dsp_helper.c | 124 -- 1 file changed, 42 insertions(+), 82 deletions(-) diff --git a/target-mips/dsp_helper.c b/target-mips/dsp_helper.c

[Qemu-devel] [PATCH v2 5/8] target-mips: use DSP unions for binary DSP operators

2013-01-09 Thread Aurelien Jarno
This allow to reduce the number of macros. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/dsp_helper.c | 384 ++ 1 file changed, 116 insertions(+), 268 deletions(-) diff --git a/target-mips/dsp_helper.c b/target-mips/dsp_helper.c

Re: [Qemu-devel] [PATCH] e1000: make ICS write-only

2013-01-09 Thread Jason Wang
On 01/09/2013 06:51 PM, Michael S. Tsirkin wrote: Since commit b1332393cdd7d023de8f1f8aa136ee7866a18968, qemu started updating ICS register when interrupt is sent, with the intent to match spec better (guests do not actually read this register). However, the function set_interrupt_cause where

Re: [Qemu-devel] [PATCH 00/12] Multiqueue virtio-net

2013-01-09 Thread Jason Wang
On 01/09/2013 11:32 PM, Michael S. Tsirkin wrote: On Wed, Jan 09, 2013 at 03:29:24PM +0100, Stefan Hajnoczi wrote: On Fri, Dec 28, 2012 at 06:31:52PM +0800, Jason Wang wrote: Perf Numbers: Two Intel Xeon 5620 with direct connected intel 82599EB Host/Guest kernel: David net tree vhost

Re: [Qemu-devel] [PATCH 00/13] convert savevm to use qapi and introduce qmp command

2013-01-09 Thread Pavel Hrdina
Please remove from CC the bad address with c0m. On Wed, 2013-01-09 at 16:17 +0100, Pavel Hrdina wrote: This patch series convert the savevm command into qapi and introduce QMP command vm-snapshot-save. It also rewrite error report for functions used by this command. Last patch introduce new

Re: [Qemu-devel] [PATCH] e1000: make ICS write-only

2013-01-09 Thread Jason Wang
On 01/09/2013 11:34 PM, Michael S. Tsirkin wrote: On Wed, Jan 09, 2013 at 11:28:29PM +0800, Jason Wang wrote: On 01/09/2013 06:51 PM, Michael S. Tsirkin wrote: Since commit b1332393cdd7d023de8f1f8aa136ee7866a18968, qemu started updating ICS register when interrupt is sent, with the intent to

[Qemu-devel] [RfC PATCH 0/3] q35: acpi hotplug

2013-01-09 Thread Gerd Hoffmann
Hi, Experimental and untested patch series to implement acpi-based pci hotplug on q35. I'm only looking for comments on the approach taken, especially on patch #3. The actual hotplug protocol is identical to piix, the difference is how the io ports are mapped. piix has magic io ports at a

[Qemu-devel] [PATCH 2/3] fix off-byone in hw/acpi_pci_hotplug.h

2013-01-09 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/acpi_pci_hotplug.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/acpi_pci_hotplug.h b/hw/acpi_pci_hotplug.h index b97403d..220fca8 100644 --- a/hw/acpi_pci_hotplug.h +++ b/hw/acpi_pci_hotplug.h @@ -1,5 +1,5 @@

[Qemu-devel] [PATCH 3/3] q35: add windup ich9-pci-hotplug device

2013-01-09 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/acpi_ich9.c | 89 hw/acpi_ich9.h |1 + hw/lpc_ich9.c |5 ++- 3 files changed, 94 insertions(+), 1 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index

[Qemu-devel] [PATCH 1/3] split acpi pci hotplug code into separate file

2013-01-09 Thread Gerd Hoffmann
Also some minor code restructions along the way: * create a new struct for acpi pci hotplug state * rename functions so they no longer carry piix in the name Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/Makefile.objs |2 +- hw/acpi_pci_hotplug.c | 214

[Qemu-devel] [PATCH] pc: rename machine types

2013-01-09 Thread Gerd Hoffmann
Starting with release 1.4 we have a fully functional q35 machine type, i.e. qemu -M q35 JustWorks[tm]. Update machine type names to reflect that: * pc-1.4 becomes pc-piix-1.4 * q35-next becomes pc-q35-1.4 The pc-1.3 (+older) names are maintained for compatibility reasons. For the same

Re: [Qemu-devel] [PATCH] e1000: make ICS write-only

2013-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2013 at 11:36:50PM +0800, Jason Wang wrote: On 01/09/2013 11:34 PM, Michael S. Tsirkin wrote: On Wed, Jan 09, 2013 at 11:28:29PM +0800, Jason Wang wrote: On 01/09/2013 06:51 PM, Michael S. Tsirkin wrote: Since commit b1332393cdd7d023de8f1f8aa136ee7866a18968, qemu started

Re: [Qemu-devel] [PATCH 1/3] qga: add support to get host time

2013-01-09 Thread mdroth
On Sun, Jan 06, 2013 at 06:06:58PM +0800, Lei Li wrote: Signed-off-by: Lei Li li...@linux.vnet.ibm.com --- qga/commands-posix.c | 18 ++ qga/qapi-schema.json | 17 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/qga/commands-posix.c

Re: [Qemu-devel] [Qemu PATCH v2] add a boot option to do strict boot

2013-01-09 Thread Amos Kong
On Wed, Jan 09, 2013 at 08:14:07AM -0700, Eric Blake wrote: On 01/09/2013 01:39 AM, Amos Kong wrote: Current seabios will try to boot from selected devices first, if they are all failed, seabios will also try to boot from un-selected devices. We need to make it configurable. I already

Re: [Qemu-devel] [PATCH] e1000: make ICS write-only

2013-01-09 Thread Michael S. Tsirkin
On Wed, Jan 09, 2013 at 11:28:29PM +0800, Jason Wang wrote: On 01/09/2013 06:51 PM, Michael S. Tsirkin wrote: Since commit b1332393cdd7d023de8f1f8aa136ee7866a18968, qemu started updating ICS register when interrupt is sent, with the intent to match spec better (guests do not actually read

Re: [Qemu-devel] [PATCH V2 03/11] block: add snapshot and image info query function

2013-01-09 Thread Eric Blake
On 01/08/2013 10:12 PM, Wenchao Xia wrote: This patch added function bdrv_query_image_info() and bdrv_query_snapshot_infolist(), which will return info in qmp object format. The implemetion code are mostly copied from collect_image_info() s/implemetion/implementation/ and

[Qemu-devel] [PATCH V2 0/7] Virtio-refactoring part1.

2013-01-09 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This is the part 1/3 of the virtio-refactoring. It introduces virtio-bus, virtio-pci-bus, virtio-s390-bus, and creates virtio-pci, virtio-device. You can clone that from here : git://git.greensocs.com/qemu_virtio.git virtio_refactoring_part1

[Qemu-devel] [PATCH V2 1/7] qdev: add a maximum device allowed field for the bus.

2013-01-09 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Add a max_dev field to BusClass to specify the maximum amount of devices allowed on the bus (has no effect if max_dev=0) Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org ---

[Qemu-devel] [PATCH V2 2/7] virtio-bus: introduce virtio-bus

2013-01-09 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Introduce virtio-bus. Refactored transport device will create a bus which extends virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/Makefile.objs | 1 +

[Qemu-devel] [PATCH V2 3/7] virtio-device: refactor virtio-device.

2013-01-09 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create the virtio-device which is abstract. All the virtio-device can extend this class. It also add some functions to virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio-bus.c | 35 +

Re: [Qemu-devel] [RFC PATCH v4 06/30] qapi: make visit_type_size fallback to type_int

2013-01-09 Thread mdroth
On Wed, Jan 09, 2013 at 01:18:04AM +0100, Andreas Färber wrote: Am 18.12.2012 13:41, schrieb Vasilis Liaskovitis: Currently visit_type_size checks if the visitor's type_size function pointer is NULL. If not, it calls it, otherwise it calls v-type_uint64(). But neither of these

[Qemu-devel] [PATCH v2 3/8] target-mips: generate a reserved instruction exception on CPU without DSP

2013-01-09 Thread Aurelien Jarno
On CPU without DSP ASE support, a reserved instruction exception (instead of a DSP ASE sate disabled) should be generated. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/translate.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

  1   2   3   >