On Fri, Sep 23, 2016 at 02:00:06PM -0500, Eric Blake wrote:
> My preference would be a new flag to the existing commands, with
> explicit documentation that 0 offset and 0 length must be used with that
> flag, when requesting a full-device wipe.
Alternatively, what about a flag that says "if you
Am 22.09.2016 um 20:45 hat Eric Blake geschrieben:
> On 09/22/2016 10:42 AM, Kevin Wolf wrote:
> > This is an option that is directly mapped to the blockdev-add QMP
> > command. It works more or less like -drive, except that it doesn't
> > create a BlockBackend and doesn't support legacy options.
On 15.09.2016 19:34, Denis V. Lunev wrote:
bdrv_is_allocated_above() returns true in the case even for completel
zeroed areas as BDRV_BLOCK_ALLOCATED flag is set in both cases.
The patch stops using bdrv_is_allocated_above() wrapper and switches to
bdrv_get_block_status_above() to distinguish
This is nop for non-dataplane case, but it prevents crash
(virtio_scsi_ctx_check assertion failure) when a scsi-cd change
operation happens on a virtio-scsi dataplane device.
Cc: qemu-sta...@nongnu.org
Signed-off-by: Fam Zheng
---
block/block-backend.c | 7 +++
Am 22.09.2016 um 21:02 hat Eric Blake geschrieben:
> On 09/22/2016 10:42 AM, Kevin Wolf wrote:
> > This documents the driver-specific options for the raw, qcow2 and file
> > block drivers for the man page. For everything else, we refer to the
> > QAPI documentation.
> >
> > Signed-off-by: Kevin
On 22 September 2016 at 17:29, Kevin Wolf wrote:
> The following changes since commit 430da7a81d356e368ccd88dcca60f38da9aa5b9a:
>
> Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20160915'
> into staging (2016-09-22 15:39:54 +0100)
>
> are available in the
Am 23.09.2016 um 13:12 hat Peter Maydell geschrieben:
> On 22 September 2016 at 17:29, Kevin Wolf wrote:
> > The following changes since commit 430da7a81d356e368ccd88dcca60f38da9aa5b9a:
> >
> > Merge remote-tracking branch 'remotes/riku/tags/pull-linux-user-20160915'
> > into
On 23/09/2016 12:58, Fam Zheng wrote:
> This is nop for non-dataplane case, but it prevents crash
> (virtio_scsi_ctx_check assertion failure) when a scsi-cd change
> operation happens on a virtio-scsi dataplane device.
>
> Cc: qemu-sta...@nongnu.org
> Signed-off-by: Fam Zheng
>
On 09/23/2016 04:37 AM, Kevin Wolf wrote:
>>
>>> +static int blockdev_init_func(void *opaque, QemuOpts *opts, Error **errp)
>>> +{
>>> +BlockdevOptions *options;
>>
>> Uninitialized...
>
> Oops, good catch. Thanks.
>
>>> +visit_free(v);
>>> +
>>> +v = qapi_dealloc_visitor_new();
>>>
The following changes since commit e678c56f169bb576b607cda2a39c0b626ebfb221:
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20160922'
into staging (2016-09-22 18:23:14 +0100)
are available in the git repository at:
git://repo.or.cz/qemu/kevin.git tags/for-upstream
On 23.09.2016 03:45, John Snow wrote:
> When I said "Final re-send," I was lying. Here's a v5.
> The title is also a misnomer by now :)
>
> The move to blk_flush altered the behavior of migration and flushing
> nodes that are not reachable via the guest, but are still reachable
> via QEMU and may
The option whether or not to use a native AIO interface really isn't a
generic option for all drivers, but only applies to the native file
protocols. This patch moves the option in blockdev-add to the
appropriate places (raw-posix and raw-win32).
We still have to keep the flag BDRV_O_NATIVE_AIO
Instead of modifying the new BDS after it has been opened, use the newly
supported 'detect-zeroes' option in bdrv_open_common() so that all
requirements are checked (detect-zeroes=unmap requires discard=unmap).
Signed-off-by: Kevin Wolf
Reviewed-by: Eric Blake
On 09/23/2016 09:32 AM, Kevin Wolf wrote:
> The option whether or not to use a native AIO interface really isn't a
> generic option for all drivers, but only applies to the native file
> protocols. This patch moves the option in blockdev-add to the
> appropriate places (raw-posix and raw-win32).
>
On 09/23/2016 09:32 AM, Kevin Wolf wrote:
> Amongst others, this means that you can now use the 'detect-zeroes'
> option for non-top-level nodes in blockdev-add, like the QAPI schema
> promises.
>
> Signed-off-by: Kevin Wolf
> ---
> block.c| 33
On 05.09.2016 04:50, 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 patches to
>
The TODO comment has been addressed a while ago and this is now checked
in raw-posix, so we don't have to special case this in blockdev-add any
more.
Signed-off-by: Kevin Wolf
Reviewed-by: Eric Blake
---
blockdev.c | 15 ---
This enables its use for nested child nodes. The compatibility
between the 'discard' and 'detect-zeroes' setting is checked in
bdrv_open_common() now as the former setting isn't available before
calling bdrv_open() any more.
Signed-off-by: Kevin Wolf
Reviewed-by: Eric Blake
This series moves a few more options from flags to the appropriate place. This
doesn't only result in cleaner code, but also allows using these options in
nested node definitions.
After this series, bds_tree_init() is only a thin wrapper around bdrv_open()
which sets the right defaults for cache
Amongst others, this means that you can now use the 'detect-zeroes'
option for non-top-level nodes in blockdev-add, like the QAPI schema
promises.
Signed-off-by: Kevin Wolf
---
block.c| 33 +
blockdev.c | 9 +
2 files changed, 34
We're going to add an option to the file drivers which doesn't apply to
the curl drivers, so give them a separate option type.
Signed-off-by: Kevin Wolf
Reviewed-by: Eric Blake
---
qapi/block-core.json | 25 ++---
1 file changed, 18
The remaining options in qemu_root_bds_opts (aio and copy-on-read)
aren't used any more, the QAPI schema doesn't contain them. Therefore
all the code processing qemu_root_bds_opts options is dead and can be
removed.
Signed-off-by: Kevin Wolf
Reviewed-by: Eric Blake
On 29.08.2016 18:59, Sascha Silbe wrote:
> Dear Max,
>
>
> thanks for taking the time to fix the race condition!
>
>
> Max Reitz writes:
>
>> Using the --fork option, one can make qemu-nbd fork the worker process.
>> The original process will exit on error of the worker or
On 23.09.2016 12:58, Fam Zheng wrote:
> This is nop for non-dataplane case, but it prevents crash
> (virtio_scsi_ctx_check assertion failure) when a scsi-cd change
> operation happens on a virtio-scsi dataplane device.
>
> Cc: qemu-sta...@nongnu.org
> Signed-off-by: Fam Zheng
>
This is an option that is directly mapped to the blockdev-add QMP
command. It works more or less like -drive, except that it doesn't
create a BlockBackend and doesn't support legacy options.
This patch adds minimal documentation, the next patches will improve it.
Signed-off-by: Kevin Wolf
On 23.09.2016 18:04, Max Reitz wrote:
> On 08.09.2016 15:59, Halil Pasic wrote:
>> Make raw_open for POSIX more consistent in handling errors by setting
>> the error object also when qemu_open fails. The error object was set
>> generally set in case of errors, but I guess this case was overlooked.
On 09/23/2016 11:06 AM, Kevin Wolf wrote:
> This is an option that is directly mapped to the blockdev-add QMP
> command. It works more or less like -drive, except that it doesn't
> create a BlockBackend and doesn't support legacy options.
>
> This patch adds minimal documentation, the next
Hi,
Your series failed automatic build test. Please find the testing commands and
their output below. If you have docker installed, you can probably reproduce it
locally.
Type: series
Message-id: 1474646781-18951-1-git-send-email-kw...@redhat.com
Subject: [Qemu-devel] [PATCH v2 0/3] Add
This series adds an option that is directly mapped to the blockdev-add QMP
command. It works more or less like -drive, except that it doesn't create a
BlockBackend (creating just a BDS without a BB is impossible with -drive) and
doesn't support legacy options.
Depends on Dan's "[PATCH v13 0/6]
This adds documentation for the -blockdev options that apply to all
nodes independent of the block driver used.
All options that are shared by -blockdev and -drive are now explained in
the section for -blockdev. The documentation of -drive mentions that all
-blockdev options are accepted as well.
The folder include/hw/ide/ belongs to the IDE section.
Signed-off-by: Thomas Huth
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index d8a0cfc..acf6d6c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -791,6 +791,7 @@ M: John Snow
On 09/23/2016 12:09 PM, Thomas Huth wrote:
The folder include/hw/ide/ belongs to the IDE section.
Signed-off-by: Thomas Huth
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index d8a0cfc..acf6d6c 100644
--- a/MAINTAINERS
+++
On 23.09.2016 18:06, Kevin Wolf wrote:
> This adds documentation for the -blockdev options that apply to all
> nodes independent of the block driver used.
>
> All options that are shared by -blockdev and -drive are now explained in
> the section for -blockdev. The documentation of -drive mentions
On 08.09.2016 15:59, Halil Pasic wrote:
> Make raw_open for POSIX more consistent in handling errors by setting
> the error object also when qemu_open fails. The error object was set
> generally set in case of errors, but I guess this case was overlooked.
> Do the same for win32.
>
>
This documents the driver-specific options for the raw, qcow2 and file
block drivers for the man page. For everything else, we refer to the
QAPI documentation.
Signed-off-by: Kevin Wolf
---
qemu-options.hx | 104 +++-
1 file
On 23 September 2016 at 13:01, Kevin Wolf wrote:
> The following changes since commit e678c56f169bb576b607cda2a39c0b626ebfb221:
>
> Merge remote-tracking branch
> 'remotes/pmaydell/tags/pull-target-arm-20160922' into staging (2016-09-22
> 18:23:14 +0100)
>
> are available in
On 09/23/2016 11:06 AM, Kevin Wolf wrote:
> This documents the driver-specific options for the raw, qcow2 and file
> block drivers for the man page. For everything else, we refer to the
> QAPI documentation.
>
> Signed-off-by: Kevin Wolf
> ---
> qemu-options.hx | 104
>
On 09/23/2016 11:35 AM, Max Reitz wrote:
On 23.09.2016 03:45, John Snow wrote:
When I said "Final re-send," I was lying. Here's a v5.
The title is also a misnomer by now :)
The move to blk_flush altered the behavior of migration and flushing
nodes that are not reachable via the guest, but
On 23.09.2016 18:06, Kevin Wolf wrote:
> This documents the driver-specific options for the raw, qcow2 and file
> block drivers for the man page. For everything else, we refer to the
> QAPI documentation.
>
> Signed-off-by: Kevin Wolf
> ---
> qemu-options.hx | 104
>
On 23.09.2016 18:06, Kevin Wolf wrote:
> This is an option that is directly mapped to the blockdev-add QMP
> command. It works more or less like -drive, except that it doesn't
> create a BlockBackend and doesn't support legacy options.
>
> This patch adds minimal documentation, the next patches
Hi all!
There is a following problem. When we need to write_zeroes or trim the
whole disk, we have to do it iteratively, because of 32-bit restriction
on request length.
For example, current implementation of mirror (see mirror_dirty_init())
do this by chunks of 2147418112 bytes (with default
On 09/23/2016 01:32 PM, Vladimir Sementsov-Ogievskiy wrote:
> Hi all!
>
> There is a following problem. When we need to write_zeroes or trim the
> whole disk, we have to do it iteratively, because of 32-bit restriction
> on request length.
> For example, current implementation of mirror (see
42 matches
Mail list logo