[Qemu-devel] [PATCH v5 10/11] spapr-vfio: add spapr-pci-vfio-host-bridge to support vfio

2014-03-12 Thread Alexey Kardashevskiy
The patch adds a spapr-pci-vfio-host-bridge device type which is a PCI Host Bridge with VFIO support. The new device inherits from the spapr-pci-host-bridge device and adds the following properties: iommu - IOMMU group ID which represents a Partitionable Endpoint,

Re: [Qemu-devel] [RFC v3 2/3] i386: use CpuTopoInfo instead apic_id as argument for pc_new_cpu()

2014-03-12 Thread Chen Fan
On Tue, 2014-03-11 at 15:00 -0300, Eduardo Habkost wrote: On Tue, Mar 11, 2014 at 06:58:53PM +0800, chen.fan.fnst wrote: From: chen.fan.fnst chen.fan.f...@cn.fujitsu.com Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com --- hw/i386/pc.c | 12 target-i386/cpu.c |

Re: [Qemu-devel] [PATCH v22 07/25] change block layer to support both QemuOpts and QEMUOptionParamter

2014-03-12 Thread Chunyan Liu
2014-03-12 0:54 GMT+08:00 Eric Blake ebl...@redhat.com: On 03/10/2014 01:31 AM, Chunyan Liu wrote: Change block layer to support both QemuOpts and QEMUOptionParameter. After this patch, it will change backend drivers one by one. At the end, QEMUOptionParameter will be removed and only

[Qemu-devel] [PATCH v2 0/9] QMP: Introduce incremental drive-backup with in-memory dirty bitmap

2014-03-12 Thread Fam Zheng
Introduction This implements incremental backup. A convenient option bitmap-use-mode for drive-backup is introduced since v1. Commands A new sync mode for drive-backup is introduced: drive-backup device=.. mode=.. sync=dirty-bitmap bitmap=bitmap0

[Qemu-devel] [PATCH v2 3/9] block: Handle error of bdrv_getlength in bdrv_create_dirty_bitmap

2014-03-12 Thread Fam Zheng
bdrv_getlength could fail, check the return value before using it. Signed-off-by: Fam Zheng f...@redhat.com --- block.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index ce48fff..9de1385 100644 --- a/block.c +++ b/block.c @@ -5083,7 +5083,12 @@

[Qemu-devel] [PATCH v2 2/9] qmp: Add dirty-bitmap-add and dirty-bitmap-remove

2014-03-12 Thread Fam Zheng
The new command pair is added to manage user created dirty bitmap. The dirty bitmap's name is mandatory and must be unique for the same device, but different devices can have bitmaps with the same names. Signed-off-by: Fam Zheng f...@redhat.com --- blockdev.c | 60

[Qemu-devel] [PATCH v2 9/9] qapi: Add transaction support to dirty-bitmap-{add, disable}

2014-03-12 Thread Fam Zheng
This adds dirty-bitmap-add and dirty-bitmap-disable to transactions. With this, user can stop a dirty bitmap, start backup of it, and start another dirty bitmap atomically, so that the dirty bitmap is tracked incrementally and we don't miss any write. Signed-off-by: Fam Zheng f...@redhat.com ---

[Qemu-devel] [PATCH v2 5/9] hbitmap: Add hbitmap_copy

2014-03-12 Thread Fam Zheng
This makes a deep copy of an HBitmap. Signed-off-by: Fam Zheng f...@redhat.com --- include/qemu/hbitmap.h | 8 util/hbitmap.c | 13 + 2 files changed, 21 insertions(+) diff --git a/include/qemu/hbitmap.h b/include/qemu/hbitmap.h index 550d7ce..b645cfc 100644 ---

[Qemu-devel] [PATCH v2 1/9] qapi: Add optional field name to block dirty bitmap

2014-03-12 Thread Fam Zheng
This field will be set for user created dirty bitmap. Also pass in an error pointer to bdrv_create_dirty_bitmap, so when a name is already taken on this BDS, it can report an error message. This is not global check, two BDSes can have dirty bitmap with a common name. Implemented

[Qemu-devel] [PATCH v2 7/9] qmp: Add dirty-bitmap-enable and dirty-bitmap-disable

2014-03-12 Thread Fam Zheng
This allows to put the dirty bitmap into a disabled state where no more writes will be tracked. It will be used before backup or writing to persistent file. Signed-off-by: Fam Zheng f...@redhat.com --- block.c | 15 +++ blockdev.c| 44

[Qemu-devel] [PATCH v2 4/9] block: Introduce bdrv_dirty_bitmap_granularity()

2014-03-12 Thread Fam Zheng
This returns the granularity (in sectors) of dirty bitmap. Signed-off-by: Fam Zheng f...@redhat.com --- block.c | 6 ++ include/block/block.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/block.c b/block.c index 9de1385..26a43eb 100644 --- a/block.c +++ b/block.c @@

Re: [Qemu-devel] [PATCH v22 04/25] improve assertion in qemu_opt_get functions

2014-03-12 Thread Chunyan Liu
2014-03-11 5:44 GMT+08:00 Eric Blake ebl...@redhat.com: On 03/10/2014 01:31 AM, Chunyan Liu wrote: In qemu_opt_set functions, if desc doen't exist but opts_accepts_any is true, it s/doen't/doesn't/ I mentioned the same problem against v20. It is very depressing when review comments are

[Qemu-devel] [PATCH v2 8/9] qmp: Add support of dirty-bitmap sync mode for drive-backup

2014-03-12 Thread Fam Zheng
For dirty-bitmap sync mode, the block job will iterate through the given dirty bitmap to decide if a sector needs backup (backup all the dirty clusters and skip clean ones), just as allocation conditions of top sync mode. There are two bitmap use modes for sync=dirty-bitmap: - reset: backup job

[Qemu-devel] [PATCH v2 6/9] block: Add bdrv_copy_dirty_bitmap and bdrv_reset_dirty_bitmap

2014-03-12 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- block.c | 30 -- include/block/block.h | 4 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index 26a43eb..199a465 100644 --- a/block.c +++ b/block.c @@ -52,6 +52,8 @@

Re: [Qemu-devel] [PATCH v22 03/25] improve some functions in qemu-option.c

2014-03-12 Thread Chunyan Liu
2014-03-11 5:21 GMT+08:00 Eric Blake ebl...@redhat.com: On 03/10/2014 02:29 PM, Eric Blake wrote: +opt = qemu_opt_find(opts, name); +if (opt) { +g_free((char *)opt-str); ...which means the cast is pointless here. Hmm. This means that you are giving opt_set() the

Re: [Qemu-devel] [PATCH] gtk: Add mouse wheel support

2014-03-12 Thread Gerd Hoffmann
On Di, 2014-03-11 at 17:26 +0100, Jan Kiszka wrote: Hook into scroll-event to properly forward mouse wheel movements to the guest, just like we already do in SDL. Added to input queue. thanks, Gerd

Re: [Qemu-devel] [PATCH 1/6] slirp: Remove default_mon usage

2014-03-12 Thread Jan Kiszka
On 2014-03-12 00:15, Cole Robinson wrote: These errors don't seem user initiated, so forcibly printing to the monitor doesn't seem right. Just print to stderr. Drop lprint since it's now unused. Cc: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Cole Robinson crobi...@redhat.com ---

Re: [Qemu-devel] slirp smb with modern win guests when samba is also running on host

2014-03-12 Thread Jan Kiszka
On 2013-11-28 20:32, Michael Tokarev wrote: After numerous reports that -smb (or -netdev user,smb=foo) not working with modern windows (win7 and vista are reported as non-working), I started digging myself. And found that indeed it doesn't work, and why. The thing is that modern win tries

Re: [Qemu-devel] [PATCHv3 00/16] slirp: Adding IPv6 support to Qemu -net user mode

2014-03-12 Thread Jan Kiszka
On 2014-02-11 14:08, Samuel Thibault wrote: Hello, This is a respin of IPv6 in Qemu -net user mode. These patches add ICMPv6, NDP, and make UDP and TCP compatible with IPv6. We have made some refactoring to make current code compatible with IPv6. Some patches, like 2 and 13, can be

[Qemu-devel] [PULL] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-12 Thread Mark Cave-Ayland
Hi Peter, This request contains just a single patch to add CPU_FEATURE_CASA for target-sparc. Please pull for 2.0. Many thanks, Mark. The following changes since commit 239618707637ec87eba8c452d2b2f75dc5ca20c7: Merge remote-tracking branch 'remotes/kvm/uq/master' into staging

[Qemu-devel] [pull] slirp queue

2014-03-12 Thread Jan Kiszka
The following changes since commit 239618707637ec87eba8c452d2b2f75dc5ca20c7: Merge remote-tracking branch 'remotes/kvm/uq/master' into staging (2014-03-11 19:39:17 +) are available in the git repository at: git://git.kiszka.org/qemu.git queues/slirp for you to fetch changes up to

[Qemu-devel] [PATCH][RESEND] gtk: Allow to activate grab-on-hover from the command line

2014-03-12 Thread Jan Kiszka
As long as we have no persistent GTK configuration, this allows to enable the useful grab-on-hover feature already when starting the VM. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- include/ui/console.h | 2 +- qemu-options.hx | 5 + ui/gtk.c | 5 - vl.c

Re: [Qemu-devel] [PATCH 1/2][RESENT] Add GDB qAttached support

2014-03-12 Thread Jan Kiszka
On 2013-07-17 10:10, Jan Kiszka wrote: With this patch QEMU handles qAttached request from gdb. When QEMU replies 1, GDB sends a detach command at the end of a debugging session otherwise GDB sends kill. The default value for qAttached is 1 on system emulation and 0 on user emulation.

[Qemu-devel] [Bug 1290558] Re: color issue (ppc as guest)

2014-03-12 Thread Mark Cave-Ayland
Hi Joe, Thanks for the bug report. A few things to try: - Can you confirm that you see the same color issue when booting a Darwin ISO such as darwinppc-602.iso? - Do you still see the same the issue with QEMU git master as 1.6 is fairly old now? Using the Darwin image above, I do not see the

[Qemu-devel] [RFC v4 1/3] cpu: introduce CpuTopoInfo structure for argument simplification

2014-03-12 Thread Chen Fan
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com --- target-i386/topology.h | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/target-i386/topology.h b/target-i386/topology.h index 07a6c5f..9b811c1 100644 --- a/target-i386/topology.h +++

[Qemu-devel] [RFC v4 0/3] prebuild cpu QOM tree /machine/node/socket/core -link-cpu

2014-03-12 Thread Chen Fan
at present, after hotplug a discontinuous cpu id on source, then done migration, on target, it will fail to add the unoccupied cpu id which was skipped at source, this cause is on target Qemu prebuild CPU with continuous cpu_index. so after migration, the cpu infrastructure bewteen source and

[Qemu-devel] [RFC v4 2/3] i386: use CpuTopoInfo instead apic_id as argument for pc_new_cpu()

2014-03-12 Thread Chen Fan
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com --- hw/i386/pc.c | 25 ++--- target-i386/cpu.c | 28 +++- target-i386/cpu.h | 5 + target-i386/topology.h | 18 ++ 4 files changed, 60 insertions(+), 16

[Qemu-devel] [RFC v4 3/3] i386: introduce cpu QOM hierarchy tree

2014-03-12 Thread Chen Fan
add cpu-topology.h cpu-topology.c files for prebuilding cpu qom tree /machine/node[X]/socket[Y]/core[Z]-link cpu Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com --- hw/i386/pc.c | 3 + target-i386/Makefile.objs | 2 +- target-i386/cpu-topology.c | 199

Re: [Qemu-devel] [PATCH 2/6] vnc: Remove default_mon usage

2014-03-12 Thread Gerd Hoffmann
On Di, 2014-03-11 at 19:15 -0400, Cole Robinson wrote: These errors don't seem user initiated, so forcibly printing to the monitor doesn't seem right. Just print to stderr. Cc: Anthony Liguori aligu...@amazon.com Cc: Gerd Hoffmann kra...@redhat.com Signed-off-by: Cole Robinson

Re: [Qemu-devel] [PATCH 1/6] slirp: Remove default_mon usage

2014-03-12 Thread Markus Armbruster
Cole Robinson crobi...@redhat.com writes: These errors don't seem user initiated, so forcibly printing to the monitor doesn't seem right. Just print to stderr. Drop lprint since it's now unused. Cc: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Cole Robinson crobi...@redhat.com ---

Re: [Qemu-devel] [v2 PATCH 00/13] SMBIOS: build full tables in QEMU

2014-03-12 Thread Gerd Hoffmann
On Di, 2014-03-11 at 12:58 -0400, Gabriel L. Somlo wrote: On Tue, Mar 11, 2014 at 11:46:17AM -0400, Kevin O'Connor wrote: I would suggest being bug for bug compatible in the first set of patches, and then add patches on top to add the additional functionality. Just my 2 cents. Makes sense

Re: [Qemu-devel] [PATCH v22 01/25] add def_value_str to QemuOptDesc

2014-03-12 Thread Stefan Hajnoczi
On Wed, Mar 12, 2014 at 10:45:57AM +0800, Chunyan Liu wrote: 2014-03-11 21:29 GMT+08:00 Stefan Hajnoczi stefa...@gmail.com: On Mon, Mar 10, 2014 at 03:31:37PM +0800, Chunyan Liu wrote: Add def_value_str (default value) to QemuOptDesc, to replace function of the default value in

Re: [Qemu-devel] [PATCH V4] tests/libqtest: Fix possible deadlock in qtest initialization

2014-03-12 Thread Stefan Hajnoczi
On Tue, Mar 11, 2014 at 09:20:55PM +0200, Marcel Apfelbaum wrote: On Tue, 2014-03-11 at 19:51 +0100, Stefan Hajnoczi wrote: On Tue, Mar 11, 2014 at 03:00:34PM +0200, Marcel Apfelbaum wrote: 'socket_accept' waits for Qemu to init its unix socket. If Qemu encounters an error during command

Re: [Qemu-devel] [PATCH 5/6] error: Remove redundant error_printf_unless_qmp

2014-03-12 Thread Markus Armbruster
Cole Robinson crobi...@redhat.com writes: error_printf is just a wrapper around monitor_printf, which already drops the requested output if cur_mon is qmp. Since commit 74ee59a: monitor: drop unused monitor debug code In the old QMP days, this code was used to find out QMP

Re: [Qemu-devel] [PATCH qom-next v2] qom-test: Test QOM properties

2014-03-12 Thread Markus Armbruster
Andreas Färber afaer...@suse.de writes: Recursively walk all properties under /machine and try to retrieve their value. This is a regression test for link properties and the DeviceState::hotpluggable property. Cf. be2f78b6b062eec5170e2612299fb8953046993f and

Re: [Qemu-devel] [PATCH] block: Unlink temporary file

2014-03-12 Thread Stefan Hajnoczi
On Sat, Feb 15, 2014 at 06:03:21PM +0100, Max Reitz wrote: If the image file cannot be opened and was created as a temporary file, it should be deleted; thus, in this case, we should jump to the unlink_and_fail label and not just to fail. Reported-by: Benoît Canet ben...@irqsave.net

Re: [Qemu-devel] [PATCH v2 0/3] nbd: fix issues when connection breaks

2014-03-12 Thread Stefan Hajnoczi
On Wed, Feb 26, 2014 at 03:30:17PM +0100, Stefan Hajnoczi wrote: v2: * Use qemu-iotests 083 test number to avoid conflicts [kwolf] * Test class negotiation without export name [lupine] * Test short replies from the server [lupine] The first patch ensures the nbd_receive_reply() fd

Re: [Qemu-devel] [PATCH] qemu-io: Fix warnings from static code analysis

2014-03-12 Thread Stefan Hajnoczi
On Wed, Mar 05, 2014 at 10:23:00PM +0100, Stefan Weil wrote: Smatch complains about several global symbols which should be local. Add the missing 'static' attributes and move the 'extern' declaration of variable qemuio_misalign to qemu-io.h. This variable also changes the type from 'int' to

Re: [Qemu-devel] SMBIOS (Set of 10 patches)

2014-03-12 Thread Gerd Hoffmann
Hi, I think we should not generate a type0 table unless -smbios type0=... is explicitly specified on the qemu command line. It is about the firmware, and we should leave it to the firmware to fill it by default. If you are running OVMF (EFI) instead of SeaBIOS you should see it in

Re: [Qemu-devel] [v2 PATCH 11/13] SMBIOS: Build full type 19 tables

2014-03-12 Thread Gerd Hoffmann
On Di, 2014-03-11 at 11:16 -0400, Gabriel L. Somlo wrote: From: Gabriel L. Somlo so...@cmu.edu Build full smbios type 19 (memory array mapped address) tables, and make them available via fw_cfg +smbios_build_type_19_table(0, 0, smbios_below_4g_ram 10); +if

[Qemu-devel] pci passthrough in Aarch64

2014-03-12 Thread Chalamarla, Tirumalesh
Hi, Some one Please let me know, What is the way to assign a pass through PCI device with qemu on Aarch64 without VFIO. i tried ? -device pci-assign,host=01.00.0? got the following error qemu-system-aarch64: -device pci-assign,host=01.00.0: 'kvm-pci-assign' is not a valid device

[Qemu-devel] [PULL 0/1] Docs: Introduce multiport serial support in qemupciserial.inf.

2014-03-12 Thread Gerd Hoffmann
Hi, Single patch I've just found still lingering in my misc branch ... please pull, Gerd The following changes since commit 239618707637ec87eba8c452d2b2f75dc5ca20c7: Merge remote-tracking branch 'remotes/kvm/uq/master' into staging (2014-03-11 19:39:17 +) are available in the git

[Qemu-devel] [PULL 1/1] Docs: Introduce multiport serial support in qemupciserial.inf.

2014-03-12 Thread Gerd Hoffmann
From: Miki Mishael mmish...@redhat.com Support for pci-serial-2x and pci-serial-4x was added to the inf file. Standard Windows driver mf.sys used to split single function device into per-port nodes. Signed-off-by: Miki Mishael mmish...@redhat.com Signed-off-by: Dmitry

Re: [Qemu-devel] [PATCH] block: Update image size in bdrv_invalidate_cache()

2014-03-12 Thread Kevin Wolf
Am 11.03.2014 um 17:41 hat Benoît Canet geschrieben: I have the impression that you are silently fixing other nits; Am I? Not intentionally at least. I think I can justify every single line of the patch with respect to the bug described in the commit message. We need to recursive into the

Re: [Qemu-devel] [PATCH 1/2] tests/libqtest: Fix possible deadlock in qtest initialization

2014-03-12 Thread Markus Armbruster
Marcel Apfelbaum marce...@redhat.com writes: 'socket_accept' waits for Qemu to init its unix socket. If Qemu encounters an error during command line parsing, it can exit before initializing the communication channel. It gets worse as the make check-qtest-* gets stuck without notifying which

Re: [Qemu-devel] [PATCH] block: Update image size in bdrv_invalidate_cache()

2014-03-12 Thread Benoît Canet
The Wednesday 12 Mar 2014 à 10:40:00 (+0100), Kevin Wolf wrote : Am 11.03.2014 um 17:41 hat Benoît Canet geschrieben: I have the impression that you are silently fixing other nits; Am I? Not intentionally at least. I think I can justify every single line of the patch with respect to the

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] hw/timer/grlib_gptimer: Avoid integer overflows

2014-03-12 Thread Sebastian Huber
Hello, On 2014-03-02 16:56, Sebastian Huber wrote: On 03/02/2014 02:17 PM, Michael Tokarev wrote: 26.02.2014 11:53, Sebastian Huber wrote: Ping. There was another comment on this, about the first hunk, see https://lists.gnu.org/archive/html/qemu-trivial/2014-02/msg00067.html Note that the

Re: [Qemu-devel] [PATCH 1/2] tests/libqtest: Fix possible deadlock in qtest initialization

2014-03-12 Thread Marcel Apfelbaum
On Wed, 2014-03-12 at 10:42 +0100, Markus Armbruster wrote: Marcel Apfelbaum marce...@redhat.com writes: 'socket_accept' waits for Qemu to init its unix socket. If Qemu encounters an error during command line parsing, it can exit before initializing the communication channel. It gets

Re: [Qemu-devel] pci passthrough in Aarch64

2014-03-12 Thread Peter Maydell
On 12 March 2014 09:30, Chalamarla, Tirumalesh tirumalesh.chalama...@caviumnetworks.com wrote: Some one Please let me know, What is the way to assign a pass through PCI device with qemu on Aarch64 without VFIO. This isn't currently possible because the only AArch64 board model we support is

Re: [Qemu-devel] [PATCH v2 0/5] block: Strip protocol prefixes from filenames

2014-03-12 Thread Stefan Hajnoczi
On Sat, Mar 08, 2014 at 12:39:40AM +0100, Max Reitz wrote: As some kind of follow-up to the block: Strip 'file:' prefix from filenames series, this series does the same thing for other protocol drivers. All protocol drivers which implement bdrv_probe() may rely on them being selected based

Re: [Qemu-devel] [PATCH v6] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-12 Thread Fabien Chouteau
Thanks Sebastian, I will try my first pull request ;)

Re: [Qemu-devel] [PATCH v6] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-12 Thread Fabien Chouteau
Thanks Sebastian, I will try my first pull request :)

Re: [Qemu-devel] [PATCH v6] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-12 Thread Sebastian Huber
Hello Fabien, On 2014-03-12 11:17, Fabien Chouteau wrote: Thanks Sebastian, I will try my first pull request :) I think Mark already did this http://lists.gnu.org/archive/html/qemu-devel/2014-03/msg02325.html ? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178

Re: [Qemu-devel] [PATCH v6] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-12 Thread Fabien Chouteau
On 03/12/2014 11:22 AM, Sebastian Huber wrote: Hello Fabien, On 2014-03-12 11:17, Fabien Chouteau wrote: Thanks Sebastian, I will try my first pull request :) I think Mark already did this http://lists.gnu.org/archive/html/qemu-devel/2014-03/msg02325.html ? Very well then :) Thanks

[Qemu-devel] [PULL 00/24] Block patches for QEMU 2.0

2014-03-12 Thread Stefan Hajnoczi
The following changes since commit b304bf0021a2dfb24fa91f704a1d976b74f56f20: s390/kvm: Add Maintainers for s390/kvm (2014-03-10 16:43:11 +) are available in the git repository at: git://github.com/stefanha/qemu.git tags/block-pull-request for you to fetch changes up to

[Qemu-devel] [PULL 04/24] block: bs-drv may be NULL in bdrv_debug_resume()

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com Currently, bdrv_debug_resume() requires every bs-drv in the BDS stack to be NULL until a bs-drv with an implementation of bdrv_debug_resume() is found. For a normal function, this would be fine, but this is a function for debugging purposes and should therefore

[Qemu-devel] [PULL 01/24] qcow2-refcount: Sanitize refcount table entry

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com When reading the refcount table entry in get_refcount(), only bits which are actually significant for the refcount block offset should be taken into account. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Laszlo Ersek ler...@redhat.com Signed-off-by:

[Qemu-devel] [PULL 06/24] block: Rewrite the snapshot authorization mechanism for block filters.

2014-03-12 Thread Stefan Hajnoczi
From: Benoît Canet benoit.ca...@irqsave.net This patch keep the recursive way of doing things but simplify it by giving two responsabilities to all block filters implementors. They will need to do two things: -Set the is_filter field of their block driver to true. -Implement the

[Qemu-devel] [PULL 08/24] rfifolock: add recursive FIFO lock

2014-03-12 Thread Stefan Hajnoczi
QemuMutex does not guarantee fairness and cannot be acquired recursively: Fairness means each locker gets a turn and the scheduler cannot cause starvation. Recursive locking is useful for composition, it allows a sequence of locking operations to be invoked atomically by acquiring the lock

[Qemu-devel] [PULL 09/24] aio: add aio_context_acquire() and aio_context_release()

2014-03-12 Thread Stefan Hajnoczi
It can be useful to run an AioContext from a thread which normally does not own the AioContext. For example, request draining can be implemented by acquiring the AioContext and looping aio_poll() until all requests have been completed. The following pattern should work: /* Event loop thread

[Qemu-devel] [PULL 07/24] object: add object_get_canonical_path_component()

2014-03-12 Thread Stefan Hajnoczi
It is often useful to find an object's child property name. Also use this new function to simplify the implementation of object_get_canonical_path(). Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- include/qom/object.h | 8

[Qemu-devel] [PULL 10/24] iothread: add I/O thread object

2014-03-12 Thread Stefan Hajnoczi
This is a stand-in for Michael Roth's QContext. I expect this to be replaced once QContext is completed. The IOThread object is an AioContext event loop thread. This patch adds the concept of multiple event loop threads, allowing users to define them. When SMP guests run on SMP hosts it makes

[Qemu-devel] [PULL 12/24] iothread: add iothread qdev property type

2014-03-12 Thread Stefan Hajnoczi
Add a iothread qdev property type so devices can be hooked up to an IOThread from the comand-line: qemu -object iothread,id=iothread0 \ -device some-device,x-iothread=iothread0 Note that Paolo Bonzini pbonz...@redhat.com has suggested using QOM links instead. This way the relationship

[Qemu-devel] [PULL 14/24] iothread: stash thread ID away

2014-03-12 Thread Stefan Hajnoczi
Keep the thread ID around so we can report it via QMP. There's only one problem: qemu_get_thread_id() (gettid() wrapper on Linux) must be called from the thread itself. There is no way to get the thread ID outside the thread. This patch uses a condvar to wait for iothread_run() to populate the

[Qemu-devel] [PULL 05/24] iotests: Test corruption during COW request

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com Extend test file 060 by a test case for corruption occuring concurrently to a COW request. QEMU should not crash but rather return an appropriate error message. Signed-off-by: Max Reitz mre...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com ---

[Qemu-devel] [PULL 17/24] qcow2: Don't write with BDRV_O_INCOMING

2014-03-12 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com qcow2_open() causes writes when repairing an image with the dirty flag set and when clearing autoclear flags. It shouldn't do this when another qemu instance is still actively working on this image file. One effect of the bug is that images may have a cleared

[Qemu-devel] [PULL 11/24] qdev: make get_pointer() handle temporary strings

2014-03-12 Thread Stefan Hajnoczi
From: Igor Mammedov imamm...@redhat.com get_pointer()'s print() callback might return a heap allocated string, to avoid adding dedicated get_pointer_foo for this case convert current print() callbacks to return temporary heap allocated string and make get_pointer() free it. Reviewed-by: Andreas

[Qemu-devel] [PULL 15/24] qmp: add query-iothreads command

2014-03-12 Thread Stefan Hajnoczi
The query-iothreads command returns a list of information about iothreads. See the patch for API documentation. Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- iothread.c | 36 qapi-schema.json | 29

[Qemu-devel] [PULL 21/24] block/raw-posix: bdrv_parse_filename() for floppy

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com The host_floppy protocol driver should strip the host_floppy: prefix from filenames if present. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Benoit Canet ben...@irqsave.net Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/raw-posix.c | 10

Re: [Qemu-devel] [PULL 0/6] acpi,pc,test bug fixes

2014-03-12 Thread Peter Maydell
On 11 March 2014 12:32, Michael S. Tsirkin m...@redhat.com wrote: The following changes since commit 220c8ed536491315b4040d820328b8dfd60d67a7: qemu: x86: ignore ioapic polarity (2014-03-09 21:09:38 +0200) are available in the git repository at:

Re: [Qemu-devel] [Qemu-stable] Patch Round-up for stable 1.7.1, freeze on 2013-02-27

2014-03-12 Thread Michael Tokarev
04.03.2014 21:54, Michael Roth wrote: Sorry, it's been tagged for release already. The tarball/announcement should go out soon. Has it been released? Thanks, /mjt

[Qemu-devel] [PATCH] input: activate legacy kbd

2014-03-12 Thread Gerd Hoffmann
Restores traditional behavior: Keyboard input will be routed to the most recently added keyboard. Without this all kbd input goes to the ps/2 keyboard, even if you add a usb keyboard to your guest. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ui/input-legacy.c | 1 + 1 file changed, 1

[Qemu-devel] [PULL 19/24] qemu-io: Fix warnings from static code analysis

2014-03-12 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de Smatch complains about several global symbols which should be local. Add the missing 'static' attributes and move the 'extern' declaration of variable qemuio_misalign to qemu-io.h. This variable also changes the type from 'int' to 'bool' which better fits

[Qemu-devel] [PULL 24/24] block/raw-win32: bdrv_parse_filename() for hdev

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com The host_device protocol driver should strip the host_device: prefix from filenames if present. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Benoit Canet ben...@irqsave.net Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/raw-win32.c | 10

[Qemu-devel] [PULL 16/24] qcow2: Keep option in qcow2_invalidate_cache()

2014-03-12 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com Instead of manually building a list of all options from BDRVQcowState values just reuse the options that were used to open the image. qcow2_open() won't fully use all of the options in the QDict, but that's okay. This fixes all of the driver-specific options in

Re: [Qemu-devel] WIP: Migration format: ASN.1/BER schema

2014-03-12 Thread Michael S. Tsirkin
On Fri, Mar 07, 2014 at 04:55:03PM +, Dr. David Alan Gilbert wrote: Hi, I've been looking at reviving the migration-as-ber work that Michael and Stefan looked at a while ago, and have stuff starting to work, but not ready yet, so I thought I'd start by posting my current view of an

[Qemu-devel] [PULL 02/24] block: Update image size in bdrv_invalidate_cache()

2014-03-12 Thread Stefan Hajnoczi
From: Kevin Wolf kw...@redhat.com After migration has completed, we call bdrv_invalidate_cache() so that drivers which cache some data drop their stale copy of the data and reread it from the image file to get a new version of data that the source modified while the migration was running.

[Qemu-devel] [PULL 18/24] block: Unlink temporary file

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com If the image file cannot be opened and was created as a temporary file, it should be deleted; thus, in this case, we should jump to the unlink_and_fail label and not just to fail. Reported-by: Benoît Canet ben...@irqsave.net Signed-off-by: Max Reitz

[Qemu-devel] [PULL 20/24] block/raw-posix: bdrv_parse_filename() for hdev

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com The host_device protocol driver should strip the host_device: prefix from filenames if present. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Benoit Canet ben...@irqsave.net Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/raw-posix.c | 10

[Qemu-devel] [PULL 22/24] block/raw-posix: bdrv_parse_filename() for cdrom

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com The host_cdrom protocol drivers should strip the host_cdrom: prefix from filenames if present. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Benoit Canet ben...@irqsave.net Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/raw-posix.c | 15

[Qemu-devel] [PULL 03/24] qcow2: Check bs-drv in copy_sectors()

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com Before dereferencing bs-drv for a call to its member bdrv_co_readv(), copy_sectors() should check whether that pointer is indeed valid, since it may have been set to NULL by e.g. a concurrent write triggering the corruption prevention mechanism. Signed-off-by:

Re: [Qemu-devel] [PATCH] block: do not allow read-only=on and snapshot=on to be used together

2014-03-12 Thread Kevin Wolf
Am 24.01.2014 um 14:48 hat Jeff Cody geschrieben: On Fri, Jan 24, 2014 at 02:33:19PM +0100, Kevin Wolf wrote: Am 14.01.2014 um 20:12 hat Jeff Cody geschrieben: Having both read-only=on and snapshot=on together does not make sense; currently, the read-only argument is effectively ignored

[Qemu-devel] [PULL 23/24] block/raw-posix: Strip protocol prefix on creation

2014-03-12 Thread Stefan Hajnoczi
From: Max Reitz mre...@redhat.com The hdev_create() implementation in block/raw-posix.c is used by the host_device, host_cdrom and host_floppy protocol block drivers together. Thus, any of the associated prefixes may occur and exactly one should should be stripped, if it does (thus,

[Qemu-devel] [PULL 13/24] dataplane: replace internal thread with IOThread

2014-03-12 Thread Stefan Hajnoczi
Today virtio-blk dataplane uses a 1:1 device-per-thread model. Now that IOThreads have been introduced we can generalize this to N:M devices per threads. This patch drops thread code from dataplane in favor of running inside an IOThread AioContext. As a bonus we solve the case where a guest

Re: [Qemu-devel] 9pfs troubles (was Re: [PATCH 1/4] hw/9pfs: fix error handing in local_ioc_getversion())

2014-03-12 Thread Michael S. Tsirkin
On Fri, Feb 07, 2014 at 10:02:52AM +0100, Greg Kurz wrote: On Wed, 5 Feb 2014 23:31:11 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Tue, Feb 04, 2014 at 12:51:25PM +0530, Aneesh Kumar K.V wrote: Michael S. Tsirkin m...@redhat.com writes: On Mon, Feb 03, 2014 at 03:05:10PM

Re: [Qemu-devel] [PULL 073/130] Add Enhanced Three-Speed Ethernet Controller (eTSEC)

2014-03-12 Thread Fabien Chouteau
On 03/09/2014 09:02 AM, Paolo Bonzini wrote: Il 07/03/2014 00:33, Alexander Graf ha scritto: From: Fabien Chouteau chout...@adacore.com This implementation doesn't include ring priority, TCP/IP Off-Load, QoS. Signed-off-by: Fabien Chouteau chout...@adacore.com Signed-off-by: Alexander Graf

Re: [Qemu-devel] [PULL for-2.0 00/11] QMP queue

2014-03-12 Thread Peter Maydell
On 11 March 2014 13:41, Luiz Capitulino lcapitul...@redhat.com wrote: The following changes since commit c57ec3249e9839c7ea2e3789f6e40f9ec1c92f55: Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-5' into staging (2014-03-11 12:52:08 +) are available in the git repository

[Qemu-devel] [PATCH 1/1] Detect pthread_setname_np at configure time

2014-03-12 Thread Dr. David Alan Gilbert (git)
From: Dr. David Alan Gilbert dgilb...@redhat.com Warn if no way of setting thread name is available. Signed-off-by: Dr. David Alan Gilbert dgilb...@redhat.com --- configure| 28 util/qemu-thread-posix.c | 21 ++---

[Qemu-devel] [PATCH 0/1] configure time fix for thread naming on old glibc

2014-03-12 Thread Dr. David Alan Gilbert (git)
From: Dr. David Alan Gilbert dgilb...@redhat.com Peter was preferring configure time detection of pthread_setname_np to guard against my recent breaking of builds on old libc. I've tested this on: Fedora 20 - modern glibc - works as before RHEL 5 - glibc 2.5: [dgilbert@davidgil-rhel5

Re: [Qemu-devel] [PATCH qom-next v2] qom-test: Test QOM properties

2014-03-12 Thread Andreas Färber
Am 12.03.2014 10:09, schrieb Markus Armbruster: Andreas Färber afaer...@suse.de writes: Recursively walk all properties under /machine and try to retrieve their value. This is a regression test for link properties and the DeviceState::hotpluggable property. Cf.

Re: [Qemu-devel] Disk I/O in QEMU

2014-03-12 Thread Le Tan
Hi Stefan, Thanks for your help. I find that the source code of qemu-1.2.0 doesn't have hw/block/. So I download the qemu-1.6.2. However it doesn't work. I run the configure like this: ./configure --enable-kvm --x86_64-softmmu then make and make install. I can start the vm using this command:

[Qemu-devel] [PATCH] MAINTAINERS: add self as MACHINE maintainer

2014-03-12 Thread Marcel Apfelbaum
'Machine as QOM object' feature produced a new file (machine.c). I am taking responsibility to maintain it (and others as needed). Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [Qemu-devel] [PATCH v22 05/25] add some QemuOpts functions for replace work

2014-03-12 Thread Eric Blake
On 03/11/2014 09:10 PM, Chunyan Liu wrote: Could be if changing qemu_opt_get return value type, but just as said before, that will affect many codes. Also, changing an existing function that returns 'const char *' into now returning 'char *' will NOT break any callers if the semantics

Re: [Qemu-devel] [PATCH v3 2/2] virtio-serial-port: Convert to QOM realize/unrealize

2014-03-12 Thread Amit Shah
Hi, I haven't really followed the whole discussion, so can't say much about it -- overall looks alright. A couple of minor nits: max_nr_ports = tswap32(port-vser-config.max_nr_ports); if (port-id = max_nr_ports) { -error_report(virtio-serial-bus: Out-of-range port id

Re: [Qemu-devel] [PULL] target-sparc: Add and use CPU_FEATURE_CASA

2014-03-12 Thread Peter Maydell
On 12 March 2014 07:25, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: Hi Peter, This request contains just a single patch to add CPU_FEATURE_CASA for target-sparc. Please pull for 2.0. Applied, thanks. -- PMM

Re: [Qemu-devel] [PATCH] linux-user: Don't reserve space for commpage for AArch64

2014-03-12 Thread Riku Voipio
On Mon, Mar 10, 2014 at 12:59:17PM +, Peter Maydell wrote: AArch64 Linux, unlike AArch32, doesn't use a commpage. This means we should not be reserving room in the guest address space for one. Fixes LP:1287195. Looks good, Reviewed-by: Riku Voipio riku.voi...@linaro.org Reported-by:

[Qemu-devel] [PATCH 1/4] vga: allow non-global vmstate

2014-03-12 Thread Gerd Hoffmann
Need a way to opt-out from vga.vram being global vmstate, for secondary vga cards. Add a bool parameter to vga_common_init to support this. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/display/cirrus_vga.c | 4 ++-- hw/display/qxl.c| 2 +- hw/display/vga-isa-mm.c | 2 +-

[Qemu-devel] [PATCH 0/4] vga: new display devices

2014-03-12 Thread Gerd Hoffmann
Hi, This patch series adds new display devices. Number one is secondary-vga. That is identical to VGA (aka -vga std), except that it doesn't occupy all the legacy vga stuff (ioports, memory window @ 0xa), so you can have more than one of these in the system. It has one pci memory bar for

[Qemu-devel] [PATCH 2/4] vga: add secondary stdvga variant

2014-03-12 Thread Gerd Hoffmann
Add a standard vga variant which doesn't occupy any legacy ressources and thus can easily be used as secondary (or legacy-free) graphics adapter. Programming must be done using the MMIO bar. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- docs/specs/standard-vga.txt | 13 +++---

[Qemu-devel] [PATCH 3/4] virtio-gpu: v0.3 of the virtio based GPU code.

2014-03-12 Thread Gerd Hoffmann
From: Dave Airlie airl...@redhat.com This is the basic virtio-gpu which is multi-head capable, ARGB cursor support, unaccelerated. Some more info is in docs/specs/virtio-gpu.txt. Signed-off-by: Dave Airlie airl...@redhat.com changes by kraxel: * adapt to changes in master. * move from

  1   2   3   4   >