On Wed, 09/14 16:48, Max Reitz wrote:
> On 2016-09-14 at 16:35, Stefan Hajnoczi wrote:
> > On Mon, Sep 05, 2016 at 10:50:42AM +0800, Fam Zheng wrote:
> > > v4: Remove unused variable in patch 1 and unwanted warning in patch 2.
> > > [Max]
> > >
> > > v3: Fix typo in copyright header. [Max]
> > >
On 08/19/2016 11:50 AM, Kevin Wolf wrote:
> We just added the option to use qdev device names in all device related
> block QMP commands. This patch converts some of the test cases in 118 to
> use qdev device names instead of BlockBackend names to cover the new
> way. It converts cases for each of
On 08/19/2016 11:50 AM, Kevin Wolf wrote:
> In order to remove the necessity to use BlockBackend names in the
> external API, we want to allow qdev device names in all device related
> commands.
>
> This converts block_set_io_throttle to accept a qdev device name.
>
> Signed-off-by: Kevin Wolf
On 08/19/2016 11:50 AM, Kevin Wolf wrote:
> In order to remove the necessity to use BlockBackend names in the
> external API, we want to allow qdev device names in all device related
> commands.
>
> This converts blockdev-change-medium to accept a qdev device name.
>
> Signed-off-by: Kevin Wolf
On 09/14/2016 09:03 AM, Kevin Wolf wrote:
Am 05.09.2016 um 17:55 hat Kevin Wolf geschrieben:
Am 19.08.2016 um 18:50 hat Kevin Wolf geschrieben:
In order to remove the necessity to use BlockBackend names in the external API,
we already converted all block layer QMP commands on the node level
On 08/19/2016 11:50 AM, Kevin Wolf wrote:
> In order to remove the necessity to use BlockBackend names in the
> external API, we want to allow qdev device names in all device related
> commands.
>
> This converts eject to accept a qdev device name.
>
> Signed-off-by: Kevin Wolf
On 08/19/2016 11:50 AM, Kevin Wolf wrote:
> In order to remove the necessity to use BlockBackend names in the
> external API, we want to allow qdev device names in all device related
> commands.
>
> This converts x-blockdev-remove-medium to accept a qdev device name.
>
> Signed-off-by: Kevin
On 08/19/2016 11:50 AM, Kevin Wolf wrote:
> In order to remove the necessity to use BlockBackend names in the
> external API, we want to allow qdev device names in all device related
> commands.
>
> This converts x-blockdev-insert-medium to accept a qdev device name.
>
Since this command is
On 08/19/2016 11:50 AM, Kevin Wolf wrote:
> In order to remove the necessity to use BlockBackend names in the
> external API, we want to allow qdev device names in all device related
> commands.
>
> This converts blockdev-open/close-tray to accept a qdev device name.
>
> Signed-off-by: Kevin
On Wed, Sep 14, 2016 at 06:52:15PM +0300, Alberto Garcia wrote:
> If an image is opened with snapshot=on, its flags are modified by
> bdrv_backing_options() and then bs->open_flags is updated accordingly.
> This last step is unnecessary if we calculate the new flags before
> setting
On 09/14/2016 06:03 AM, Yaowei Bai wrote:
> Obviously, we should write to '@target'.
>
> Signed-off-by: Yaowei Bai
> Reviewed-by: Xiubo Li
> ---
> include/block/block_int.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Am 14.09.2016 um 17:52 hat Alberto Garcia geschrieben:
> This is unnecessary and has been unused since 5433c24f0f9306c82ad9bcc.
>
> Signed-off-by: Alberto Garcia
Reviewed-by: Kevin Wolf
On 09/14/2016 10:52 AM, Alberto Garcia wrote:
> This is unnecessary and has been unused since 5433c24f0f9306c82ad9bcc.
>
> Signed-off-by: Alberto Garcia
> ---
> block.c | 5 -
> include/block/block.h | 1 -
> 2 files changed, 6 deletions(-)
Reviewed-by: Eric
Am 14.09.2016 um 17:52 hat Alberto Garcia geschrieben:
> We're only doing this immediately before opening the image, but
> bs->open_flags is used earlier in the function. At the moment this is
> not causing problems because none of the checked flags are modified by
> update_flags_from_options(),
From: Vladimir Sementsov-Ogievskiy
Source disk is created and filled with test data before each test case.
Instead initialize it once for the whole unit.
Test disk filling patterns are merged into one pattern.
Also TestSetSpeed used different image_len for source and
From: Marc Mari
Extend the current module interface to allow for block drivers to be
loaded dynamically on request. The only block drivers that can be
converted into modules are the drivers that don't perform any init
operation except for registering themselves.
In addition,
From: Colin Lord
Modularizes the nfs block driver so that it gets dynamically loaded.
Signed-off-by: Colin Lord
Reviewed-by: Stefan Hajnoczi
Message-id: 1471008424-16465-5-git-send-email-cl...@redhat.com
Reviewed-by: Max Reitz
From: Alberto Garcia
The 'block-commit' command has a 'top' parameter to specify the
topmost node from which the data is going to be copied.
[E] <- [D] <- [C] <- [B] <- [A]
In this case if [C] is the top node then this is the result:
[E] <- [B] <- [A]
[B] must be
From: Fam Zheng
Signed-off-by: Fam Zheng
[Fixed minor constant issue. --js]
Signed-off-by: John Snow
Reviewed-by: Max Reitz
Signed-off-by: John Snow
Message-id:
From: Reda Sallahi
This patch adds a basic dd subcommand analogous to dd(1) to qemu-img.
For the start, this implements the bs, if, of and count options and requires
both if and of to be specified (no stdin/stdout if not specified) and doesn't
support tty, pipes, etc.
The
From: Marc Mari
To simplify the addition of new block modules, add a script that generates
module_block.h automatically from the modules' source code.
This script assumes that the QEMU coding style rules are followed.
Signed-off-by: Marc Marí
From: Colin Lord
This commit moves the initialization of the QemuOptsList qemu_iscsi_opts
struct out of block/iscsi.c in order to allow the iscsi module to be
dynamically loaded.
Signed-off-by: Colin Lord
Reviewed-by: Fam Zheng
Reviewed-by:
From: Fam Zheng
Signed-off-by: Fam Zheng
Reviewed-by: John Snow
Reviewed-by: Max Reitz
Signed-off-by: John Snow
Message-id: 1470096763-14033-4-git-send-email-js...@redhat.com
Signed-off-by: Max Reitz
From: Fam Zheng
HBitmap is an implementation detail of block dirty bitmap that should be hidden
from users. Introduce a BdrvDirtyBitmapIter to encapsulate the underlying
HBitmapIter.
A small difference in the interface is, before, an HBitmapIter is initialized
in place, now the
From: Fam Zheng
Callers can create an iterator of meta bitmap with
bdrv_dirty_meta_iter_new(), then use the bdrv_dirty_iter_* operations on
it. Meta iterators are also counted by bitmap->active_iterators.
Also add a couple of functions to retrieve granularity and count.
On Wed, Sep 14, 2016 at 07:03:39AM -0400, Yaowei Bai wrote:
> As epoll whether enabled or not is a global setting, we can just
> check it only once rather than checking it with every node iteration.
> Through this we can avoid a lot of checks when epoll is not enabled.
>
> Signed-off-by: Yaowei
Am 14.09.2016 um 17:52 hat Alberto Garcia geschrieben:
> If an image is opened with snapshot=on, its flags are modified by
> bdrv_backing_options() and then bs->open_flags is updated accordingly.
> This last step is unnecessary if we calculate the new flags before
> setting bs->open_flags.
>
>
From: Fam Zheng
We use a loop over bs->dirty_bitmaps to make sure the caller is
only releasing a bitmap owned by bs. Let's also assert that in this case
the caller is releasing a bitmap that does exist.
Signed-off-by: Fam Zheng
Reviewed-by: Max Reitz
The following changes since commit 507e4ddc3abf67391bcbc9624fd60b969c159b78:
Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch' into
staging (2016-09-13 17:55:35 +0100)
are available in the git repository at:
git://github.com/XanClic/qemu.git tags/pull-block-2016-09-14
From: Fam Zheng
For dirty bitmap users to get the size and the name of a
BdrvDirtyBitmap.
Signed-off-by: Fam Zheng
Reviewed-by: John Snow
Reviewed-by: Max Reitz
Signed-off-by: John Snow
Message-id:
From: Fam Zheng
Upon each bit toggle, the corresponding bit in the meta bitmap will be
set.
Signed-off-by: Fam Zheng
[Amended text inline. --js]
Reviewed-by: Max Reitz
Signed-off-by: John Snow
Message-id:
From: Fam Zheng
The added group of operations enables tracking of the changed bits in
the dirty bitmap.
Signed-off-by: Fam Zheng
Reviewed-by: Max Reitz
Signed-off-by: John Snow
Message-id:
There were a few instances left. After this patch we're using the
macro in all places.
Signed-off-by: Alberto Garcia
---
blockdev.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index 3036af4..6db2c53 100644
---
This series adds "read-only" to the options QDict, fixing a
long-standing problem with the reopening code.
[E] <- [D] <- [C] <- [B] <- [A]
In a normal scenario, the active layer [A] is in read-write mode and
everything else is read-only. If we reopen [D] in read-write mode and
later reopen
If an image is opened with snapshot=on, its flags are modified by
bdrv_backing_options() and then bs->open_flags is updated accordingly.
This last step is unnecessary if we calculate the new flags before
setting bs->open_flags.
Soon we'll introduce the "read-only" option, and then we'll need to
Now that we're checking for duplicates in the reopen queue, there's no
need to force a specific order in which the queue is constructed so we
can revert 3db2bd5508c86a1605258bc77c9672d93b5c350e.
Since both ways of constructing the queue are now valid, this patch
doesn't have any effect on the
bdrv_reopen_queue_child() assumes that a BlockDriverState is never
added twice to BlockReopenQueue.
That's however not the case: commit_start() adds 'base' (and its
children) to a new reopen queue, and then 'overlay_bs' (and its
children, which include 'base') to the same queue. The effect of
We're only doing this immediately before opening the image, but
bs->open_flags is used earlier in the function. At the moment this is
not causing problems because none of the checked flags are modified by
update_flags_from_options(), but this will change when we introduce
the "read-only" option.
This is unnecessary and has been unused since 5433c24f0f9306c82ad9bcc.
Signed-off-by: Alberto Garcia
---
block.c | 5 -
include/block/block.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/block.c b/block.c
index 66ed1c0..1c75a6f 100644
--- a/block.c
On 2016-09-14 at 16:35, Stefan Hajnoczi wrote:
On Mon, Sep 05, 2016 at 10:50:42AM +0800, Fam Zheng wrote:
v4: Remove unused variable in patch 1 and unwanted warning in patch 2. [Max]
v3: Fix typo in copyright header. [Max]
Fix pre-existing type casting. [Max]
v2: Rebase on top of Max's
On Mon, Sep 05, 2016 at 10:50:42AM +0800, Fam Zheng wrote:
> v4: Remove unused variable in patch 1 and unwanted warning in patch 2. [Max]
>
> v3: Fix typo in copyright header. [Max]
> Fix pre-existing type casting. [Max]
>
> v2: Rebase on top of Max's block-next tree, which has Colin's
On Mon, Sep 05, 2016 at 10:50:42AM +0800, Fam Zheng wrote:
> v4: Remove unused variable in patch 1 and unwanted warning in patch 2. [Max]
>
> v3: Fix typo in copyright header. [Max]
> Fix pre-existing type casting. [Max]
>
> v2: Rebase on top of Max's block-next tree, which has Colin's
This patchset change to check epoll's enablement first before nodes
iteration to improve aio_poll()'s performance.
Also fix a wrong comment of mirror_start().
Yaowei Bai (2):
block: mirror: fix wrong comment of mirror_start
aio: improve aio_poll performance by checking epoll only once
As epoll whether enabled or not is a global setting, we can just
check it only once rather than checking it with every node iteration.
Through this we can avoid a lot of checks when epoll is not enabled.
Signed-off-by: Yaowei Bai
Reviewed-by: Xiubo Li
Obviously, we should write to '@target'.
Signed-off-by: Yaowei Bai
Reviewed-by: Xiubo Li
---
include/block/block_int.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/block/block_int.h
Am 23.08.2016 um 19:01 hat Kevin Wolf geschrieben:
> This series makes the next step towards a QAPI interface that doesn't require
> clients to know about BlockBackends. By removing the support for 'id' from
> blockdev-add, it becomes a command that always only creates a BDS (with a node
> name).
Am 05.09.2016 um 17:55 hat Kevin Wolf geschrieben:
> Am 19.08.2016 um 18:50 hat Kevin Wolf geschrieben:
> > In order to remove the necessity to use BlockBackend names in the external
> > API,
> > we already converted all block layer QMP commands on the node level to
> > accept
> > node names
From: Laurent Vivier
This patch is the result of coccinelle script
scripts/coccinelle/typecast.cocci
CC: Hitoshi Mitake
CC: qemu-block@nongnu.org
Signed-off-by: Laurent Vivier
Reviewed-by: Hitoshi Mitake
08.07.2016 14:18, Tomáš Golembiovský wrote:
Another attempt to fix the bug 1596870.
When creating new disk backed by remote file accessed via HTTPS and the
backing file has zero length, qemu-img terminates with uniformative
error message:
qemu-img: disk.qcow2: CURL: Error opening file:
49 matches
Mail list logo