Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread josh
On Thu, Sep 03, 2015 at 07:50:07AM -0700, Josh Triplett wrote: > On Thu, Sep 03, 2015 at 11:16:40AM +0200, Laszlo Ersek wrote: > > I'm excited because for virtualization we might have the reverse use > > case: use BITS to test / debug / develop the ACPI generator of QEMU. :)

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread josh
On Thu, Sep 03, 2015 at 05:53:45PM +0200, Laszlo Ersek wrote: > On 09/03/15 16:50, Josh Triplett wrote: > > On Thu, Sep 03, 2015 at 11:16:40AM +0200, Laszlo Ersek wrote: > >> Then this payload is passed to the guest firmware (SeaBIOS or OVMF) over > >> "fw_

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread josh
On Thu, Sep 03, 2015 at 07:19:40PM +0200, Laszlo Ersek wrote: > On 09/03/15 18:41, j...@joshtriplett.org wrote: > > On Thu, Sep 03, 2015 at 05:53:45PM +0200, Laszlo Ersek wrote: > >> On 09/03/15 16:50, Josh Triplett wrote: > > >>> Do you virtualize those I/O ports

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-04 Thread josh
ould also take advantage of the ability to directly mmap a file from outside the VM into the VM's address space. In any case, we're getting a bit far afield for the original thread. :) - Josh Triplett

[Qemu-devel] [PATCH] cadence_uart: enable tx/rx on reset

2012-10-22 Thread Josh Cartwright
Change the cadence_uart such that tx/rx is enabled on reset. Assuming both are enabled makes debugging early Linux kernel bootup a little bit easier. Signed-off-by: Josh Cartwright --- I've used this patch mostly for my own testing, but it may be of general use. On a real system, I

[Qemu-devel] [Bug 939443] Re: qemu-system-x86_64 can no support 1366x768

2013-02-08 Thread Josh Triplett
*** This bug is a duplicate of bug 1054558 *** https://bugs.launchpad.net/bugs/1054558 ** This bug has been marked a duplicate of bug 1054558 1366x768 resolution missing -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://

[Qemu-devel] [Bug 1054558] Re: 1366x768 resolution missing

2013-02-08 Thread Josh Triplett
** Bug watch added: Debian Bug tracker #700055 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700055 ** Also affects: debian via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700055 Importance: Unknown Status: Unknown -- You received this bug notification because you are a m

[Qemu-devel] Support for 1366x768 (720p) resolution?

2013-02-08 Thread Josh Triplett
check back about the status of that patch to make sure it didn't get lost. See also the Launchpad bug about this: https://bugs.launchpad.net/qemu/+bug/1054558 - Josh Triplett

[Qemu-devel] [PATCH v3 2/2] rbd: link and load librbd dynamically

2013-04-09 Thread Josh Durgin
ad librbd, and explicitly make it resident. Signed-off-by: Josh Durgin --- block/Makefile.objs |3 +- block/rbd.c | 292 --- block/rbd_types.h | 95 + configure | 41 +--- 4 files changed, 309 ins

Re: [Qemu-devel] [PATCH v2] rbd: add an asynchronous flush

2013-04-10 Thread Josh Durgin
On 04/02/2013 07:10 AM, Kevin Wolf wrote: Am 29.03.2013 um 21:03 hat Josh Durgin geschrieben: The existing bdrv_co_flush_to_disk implementation uses rbd_flush(), which is sychronous and causes the main qemu thread to block until it is complete. This results in unresponsiveness and extra latency

Re: [Qemu-devel] runtime Block driver modules (was Re: [PATCH v3 2/2] rbd: link and load librbd dynamically)

2013-04-10 Thread Josh Durgin
On 04/10/2013 01:09 AM, Stefan Hajnoczi wrote: On Wed, Apr 10, 2013 at 2:05 AM, Josh Durgin wrote: This allows the rbd block driver to detect symbols in the installed version of librbd, and enable or disable features appropriately. This obviates the #ifdefs regarding librbd versions. Loading

Re: [Qemu-devel] [PATCH v2] rbd: add an asynchronous flush

2013-04-11 Thread Josh Durgin
On 04/11/2013 01:48 AM, Kevin Wolf wrote: Am 11.04.2013 um 10:02 hat Stefan Hajnoczi geschrieben: On Wed, Apr 10, 2013 at 07:03:39AM -0700, Josh Durgin wrote: On 04/02/2013 07:10 AM, Kevin Wolf wrote: Am 29.03.2013 um 21:03 hat Josh Durgin geschrieben: The existing bdrv_co_flush_to_disk

Re: [Qemu-devel] [ceph-users] qemu-1.4.0 and onwards, linux kernel 3.2.x, ceph-RBD, heavy I/O leads to kernel_hung_tasks_timout_secs message and unresponsive qemu-process, [Bug 1207686]

2013-08-08 Thread Josh Durgin
On 08/08/2013 05:40 AM, Oliver Francke wrote: Hi Josh, I have a session logged with: debug_ms=1:debug_rbd=20:debug_objectcacher=30 as you requested from Mike, even if I think, we do have another story here, anyway. Host-kernel is: 3.10.0-rc7, qemu-client 1.6.0-rc2, client-kernel is

Re: [Qemu-devel] [ceph-users] qemu-1.4.0 and onwards, linux kernel 3.2.x, ceph-RBD, heavy I/O leads to kernel_hung_tasks_timout_secs message and unresponsive qemu-process, [Bug 1207686]

2013-08-10 Thread Josh Durgin
g quickly, so it's a separate bug. Josh, In addition to the Ceph logs you can also use QEMU tracing with the following events enabled: virtio_blk_handle_write virtio_blk_handle_read virtio_blk_rw_complete See docs/tracing.txt for details on usage. Inspecting the trace output will let yo

Re: [Qemu-devel] [PATCH v3 18/25] rbd: use BlockDriverState's AioContext

2014-05-08 Thread Josh Durgin
imers, or BHs stay registered when requests have been drained. Cc: Josh Durgin Signed-off-by: Stefan Hajnoczi --- block/rbd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index dbc79f4..41f7bdc 100644 --- a/block/rbd.c +++ b/block/

Re: [Qemu-devel] [PATCH] rbd: Add support for bdrv_invalidate_cache

2014-10-09 Thread Josh Durgin
) +{ +BDRVRBDState *s = bs->opaque; +int r = rbd_invalidate_cache(s->image); +if (r < 0) { +error_setg_errno(errp, -r, "Failed to invalidate the cache"); +} +return r; No return needed here. With that fixed: Reviewed-by: Josh Durgin +} +#endif +

[Qemu-devel] [PATCH 0/3] Support configurable CPU Model-Specific Registers (MSRs) in cpudefs

2012-01-15 Thread Josh Triplett
pports strings as keys, so I had to format the MSR as a hex string before looking it up. The third patch in the series provides a bugfix for CPU definition parsing, which will otherwise add a partial CPU definition (up to the parse failure) to the list of CPU definitions. Written on the plane to linux

[Qemu-devel] [PATCH 1/3] Add cpudef option to GPF on unknown MSRs

2012-01-15 Thread Josh Triplett
availability of MSRs and their associated features by handling GPFs. Signed-off-by: Josh Triplet --- qemu-config.c |3 +++ target-i386/cpu.h |1 + target-i386/cpuid.c |9 + target-i386/op_helper.c | 16 4 files changed, 25 insertions(+), 4

[Qemu-devel] [PATCH 2/3] Support arbitrary additional MSRs in cpu definitions

2012-01-15 Thread Josh Triplett
CPU definitions can now define arbitrary additional MSRs, and rdmsr will support those MSRs and return the corresponding values. Signed-off-by: Josh Triplett --- qemu-config.c |3 +++ target-i386/cpu.h |5 + target-i386/cpuid.c | 45

[Qemu-devel] [PATCH 3/3] Handle parse failures in CPU definitions, and avoid adding a partial cpudef

2012-01-15 Thread Josh Triplett
Without this change, a parse failure would stop the processing of the cpudef entry, but the partially-parsed CPU definition would still get added to the list of CPUs. Signed-off-by: Josh Triplett --- target-i386/cpuid.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCH v4 0/4] rbd improvements

2011-05-24 Thread Josh Durgin
This patchset moves the complexity of the rbd format into librbd and adds truncation support. Changes since v3: * trivially rebased * updated copyright header Changes since v2: * return values are checked in rbd_aio_rw_vector * bdrv_truncate added Josh Durgin (4): rbd: use the higher

[Qemu-devel] [PATCH v4 2/4] rbd: allow configuration of rados from the rbd filename

2011-05-24 Thread Josh Durgin
luster to be used by specifying different monitor addresses, as well as having different logging levels or locations for different volumes. Signed-off-by: Josh Durgin --- block/rbd.c | 119 ++ 1 files changed, 102 insertions(+), 17 deletions(-)

[Qemu-devel] [PATCH v4 4/4] rbd: Add bdrv_truncate implementation

2011-05-24 Thread Josh Durgin
Signed-off-by: Josh Durgin --- block/rbd.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index c9f32e4..015ae8e 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -687,6 +687,20 @@ static int64_t qemu_rbd_getlength(BlockDriverState

[Qemu-devel] [PATCH v4 3/4] rbd: check return values when scheduling aio

2011-05-24 Thread Josh Durgin
If scheduling fails, the number of outstanding I/Os must be correct, or there will be a hang when waiting for everything to be flushed. Reported-by: Stefan Hajnoczi Signed-off-by: Josh Durgin --- block/rbd.c | 24 1 files changed, 20 insertions(+), 4 deletions

[Qemu-devel] [PATCH v4 1/4] rbd: use the higher level librbd instead of just librados

2011-05-24 Thread Josh Durgin
librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes. Signed-off-by: Josh Durgin Signed-off-by: Yehuda Sadeh --- block/rbd.c | 790

[Qemu-devel] [PATCH v5 0/4] rbd improvements

2011-05-25 Thread Josh Durgin
rbd_aio_rw_vector * bdrv_truncate added Josh Durgin (4): rbd: use the higher level librbd instead of just librados rbd: allow configuration of rados from the rbd filename rbd: check return values when scheduling aio rbd: Add bdrv_truncate implementation block/rbd.c | 897

[Qemu-devel] [PATCH v5 3/4] rbd: check return values when scheduling aio

2011-05-25 Thread Josh Durgin
If scheduling fails, the number of outstanding I/Os must be correct, or there will be a hang when waiting for everything to be flushed. Reported-by: Stefan Hajnoczi Signed-off-by: Josh Durgin --- block/rbd.c | 24 1 files changed, 20 insertions(+), 4 deletions

[Qemu-devel] [PATCH v5 2/4] rbd: allow configuration of rados from the rbd filename

2011-05-25 Thread Josh Durgin
luster to be used by specifying different monitor addresses, as well as having different logging levels or locations for different volumes. Signed-off-by: Josh Durgin --- block/rbd.c | 119 ++ 1 files changed, 102 insertions(+), 17 deletions(-)

[Qemu-devel] [PATCH v5 4/4] rbd: Add bdrv_truncate implementation

2011-05-25 Thread Josh Durgin
Signed-off-by: Josh Durgin --- block/rbd.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index a44d160..b95b1eb 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -688,6 +688,20 @@ static int64_t qemu_rbd_getlength(BlockDriverState

[Qemu-devel] [PATCH v5 1/4] rbd: use the higher level librbd instead of just librados

2011-05-25 Thread Josh Durgin
librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes. Signed-off-by: Josh Durgin Signed-off-by: Yehuda Sadeh --- block/rbd.c | 795

Re: [Qemu-devel] [PATCH v4 1/4] rbd: use the higher level librbd instead of just librados

2011-05-25 Thread Josh Durgin
On 05/25/2011 12:18 PM, Christian Brunner wrote: Apart from two cosmetic issues (see below), I think this patch is ready to replace the old rbd driver. You can add: Reviewed-by: Christian Brunner Regards Christian Thanks, I fixed these in v5. Josh 2011/5/24 Josh Durgin: librbd stacks on

[Qemu-devel] [PATCH] target-i386: GPF on invalid MSRs

2011-05-26 Thread Josh Triplett
org/>; fix tested the same way, for both 32-bit and 64-bit x86. Signed-off-by: Josh Triplett --- op_helper.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -Naur a/target-i386/op_helper.c b/target-i386/op_helper.c --- a/target-i386/op_helper.c 2011-02-07 15:13:34.0

Re: [Qemu-devel] [PATCH v5 2/4] rbd: allow configuration of rados from the rbd filename

2011-05-26 Thread Josh Durgin
On 05/26/2011 01:13 AM, Kevin Wolf wrote: Am 25.05.2011 22:34, schrieb Josh Durgin: The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]] Each option is used to configure rados, and may be any Ceph option, or "conf". The "conf" option specifies

Re: [Qemu-devel] [PATCH v5 4/4] rbd: Add bdrv_truncate implementation

2011-05-26 Thread Josh Durgin
On 05/26/2011 01:05 AM, Kevin Wolf wrote: Am 25.05.2011 22:34, schrieb Josh Durgin: Signed-off-by: Josh Durgin --- block/rbd.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index a44d160..b95b1eb 100644 --- a/block/rbd.c

[Qemu-devel] [PATCH v6 0/4] rbd improvements

2011-05-26 Thread Josh Durgin
ristian Brunner Changes since v3: * trivially rebased * updated copyright header Changes since v2: * return values are checked in rbd_aio_rw_vector * bdrv_truncate added Josh Durgin (4): rbd: use the higher level librbd instead of just librados rbd: allow configuration of rados from the rbd

[Qemu-devel] [PATCH v6 4/4] rbd: Add bdrv_truncate implementation

2011-05-26 Thread Josh Durgin
Reviewed-by: Christian Brunner Signed-off-by: Josh Durgin --- block/rbd.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index f4da6ab..bdc448a 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -688,6 +688,19 @@ static int64_t

[Qemu-devel] [PATCH v6 2/4] rbd: allow configuration of rados from the rbd filename

2011-05-26 Thread Josh Durgin
luster to be used by specifying different monitor addresses, as well as having different logging levels or locations for different volumes. Reviewed-by: Christian Brunner Signed-off-by: Josh Durgin --- block/rbd.c | 119 ++ 1 files changed, 1

[Qemu-devel] [PATCH v6 1/4] rbd: use the higher level librbd instead of just librados

2011-05-26 Thread Josh Durgin
librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes. Reviewed-by: Christian Brunner Signed-off-by: Josh Durgin Signed-off-by: Yehuda Sadeh --- block/rbd.c

[Qemu-devel] [PATCH v6 3/4] rbd: check return values when scheduling aio

2011-05-26 Thread Josh Durgin
If scheduling fails, the number of outstanding I/Os must be correct, or there will be a hang when waiting for everything to be flushed. Reviewed-by: Christian Brunner Reported-by: Stefan Hajnoczi Signed-off-by: Josh Durgin --- block/rbd.c | 24 1 files changed, 20

Re: [Qemu-devel] [PATCH] target-i386: GPF on invalid MSRs

2011-05-27 Thread Josh Triplett
On Thu, May 26, 2011 at 11:12:12AM +0200, Alexander Graf wrote: > On 26.05.2011, at 11:08, Josh Triplett wrote: > > qemu currently returns 0 for rdmsr on invalid MSRs, and ignores wrmsr on > > invalid MSRs. Real x86 processors GPF on invalid MSRs, which allows > > software

Re: [Qemu-devel] [PATCH] target-i386: GPF on invalid MSRs

2011-05-27 Thread Josh Triplett
On Fri, May 27, 2011 at 05:16:56PM +0200, Alexander Graf wrote: > > On 27.05.2011, at 17:13, Josh Triplett wrote: > > > On Thu, May 26, 2011 at 11:12:12AM +0200, Alexander Graf wrote: > >> On 26.05.2011, at 11:08, Josh Triplett wrote: > >>> qemu currently retu

Re: [Qemu-devel] [PATCH v2] block/rbd: Remove unused local variable

2011-06-13 Thread Josh Durgin
On 06/10/2011 01:05 PM, Stefan Weil wrote: Variable 'snap' is assigned a value that is never used. Remove snap and the related code. v2: The unused variable which was in function rbd_open is now in function qemu_rbd_create, so the patch needed an update. Cc: Christian Brunne

Re: [Qemu-devel] [PATCH] vhost-net: Move asserts to after check for end < start

2012-03-30 Thread Josh Durgin
On 12/16/2011 12:33 PM, Bruce Rogers wrote: When migrating a vm using vhost-net we hit the following assertion: qemu-kvm: /usr/src/packages/BUILD/qemu-kvm-0.15.1/hw/vhost.c:30: vhost_dev_sync_region: Assertion `start / (0x1000 * (8 * sizeof(vhost_log_chunk_t)))< dev->log_size' failed. I consi

[Qemu-devel] passing secrets to block devices

2011-10-20 Thread Josh Durgin
We're working on libvirt support for block device authentication [1]. To authenticate, rbd needs a username and a secret. Normally, to avoid putting the secret on the command line, you can store the secret in a file and pass the file to qemu, but when this is automated, there's no good way to know

Re: [Qemu-devel] passing secrets to block devices

2011-10-20 Thread Josh Durgin
On 10/20/2011 12:24 PM, Daniel P. Berrange wrote: On Thu, Oct 20, 2011 at 11:30:42AM -0700, Josh Durgin wrote: We're working on libvirt support for block device authentication [1]. To authenticate, rbd needs a username and a secret. Normally, to avoid putting the secret on the command line

[Qemu-devel] [RFC 0/2] rbd authentication

2011-11-09 Thread Josh Durgin
point, the size can be refreshed as if the device were resized. This works fine with the virtio driver, but other drivers, like ide, don't implement the resize callback. What do you think is the best way to solve this? Josh Durgin (2): block: let bdrv_set_key be used for authentication

[Qemu-devel] [RFC 2/2] rbd: implement bdrv_set_key

2011-11-09 Thread Josh Durgin
We can't connect to the cluster before the key is set, so this step is moved to qemu_rbd_open_finish. Each bdrv function will fail before the key is set. Signed-off-by: Josh Durgin --- block/rbd.c | 160 +- 1 files changed, 113 inser

[Qemu-devel] [RFC 1/2] block: let bdrv_set_key be used for authentication

2011-11-09 Thread Josh Durgin
Add a BlockDriverState member 'needs_auth' to distinguish between drives that require authentication and those that are encrypted. Update the block_passwd monitor command and error strings to be about generic passwords instead of encryption. Signed-off-by: Josh Durgin --

Re: [Qemu-devel] [PATCH] rbd: switch from pipe to QEMUBH completion notification

2013-12-27 Thread Josh Durgin
noczi --- Josh: This patch has not been tested. I have just compiled it. Sorry for the delay. This is a great simplification, and it passed my tests. Thanks! Reviewed- and Tested-by: Josh Durgin

Re: [Qemu-devel] [PATCH v2] discard rbd error output when not relevant in qemu-iotests

2014-01-08 Thread Josh Durgin
able releases are 0.67 and 0.72). Reviewed-by: Josh Durgin

Re: [Qemu-devel] 回复: 回复: 回复: qemu vm big network latency when met heavy io

2014-01-13 Thread Josh Durgin
gt;> processor : 3 >> processor : 4 >> processor : 5 >> processor : 6 >> processor : 7 >> >> so, both of two question's answer is 'yes'. >> When I runing random write test, the host use 0 swap. > > Great. That means the host is not over

Re: [Qemu-devel] ?????? ?????? ?????? ?????? qemu vm big network latency when met heavy io

2014-01-13 Thread Josh Durgin
On 01/13/2014 10:39 PM, ?? wrote: Hi Josh Thanks for your reply. librbd version : 0.67.5-1 /etc/ceph/ceph.conf config file: the ip and hostname was hiddened. [global] ;open auth. auth cluster required = cephx auth service required = cephx auth client

Re: [Qemu-devel] ?????? ?????? ?????? ?????? ?????? qemu vm big network latency when met heavy io

2014-01-15 Thread Josh Durgin
On 01/15/2014 01:40 AM, ?? wrote: Hi Josh there is some issues 1. use 'none' cache mode in xml, and unset 'rbd cache=true' in ceph.conf, the network latency issue not show. 2. use 'writethrough' cache mode in xml, and unset 'rbd cache=true' in ceph.

Re: [Qemu-devel] ?????? ?????? ?????? ?????? ?????? ?????? qemu vm big network latency when met heavy io

2014-01-16 Thread Josh Durgin
On 01/15/2014 10:12 PM, ?? wrote: Hi Josh # strings /usr/bin/qemu-system-x86_64 | grep rbd_aio rbd_aio_write rbd_aio_flush rbd_aio_read rbd_aio_create_completion rbd_aio_release rbd_aio_discard rbd_aio_get_return_value So, librbd's asynchronous flush is being used. I set log set

Re: [Qemu-devel] Support for 1366x768 (720p) resolution?

2013-05-03 Thread Josh Triplett
Thanks! - Josh Triplett On Fri, May 03, 2013 at 04:41:51PM -0400, John Baboval wrote: > Josh, > > Somehow missed this message going by. Sorry about that. > > The 720p support patch (and variable VRAM size) slipped off my > radar. I'm going to try and get another batch

Re: [Qemu-devel] [Qemu-stable] Patch Round-up for stable 1.4.2, freeze on Monday

2013-05-17 Thread Josh Durgin
Could you add the patch: commit dc7588c1eb3008bda53dde1d6b890cd299758155 Author: Josh Durgin Date: Fri Mar 29 13:03:23 2013 -0700 rbd: add an asynchronous flush The existing bdrv_co_flush_to_disk implementation uses rbd_flush(), which is sychronous and causes the main qemu thread to block u

Re: [Qemu-devel] [ceph-users] qemu + rbd block driver with cache=writeback, is live migration safe ?

2014-04-18 Thread Josh Durgin
g into its cache before the destination starts 4) raw format images have no extra metadata that needs invalidation If librbd populated its cache when the disk was opened, the rbd driver would need to implement bdrv_invalidate(), but since it does not, it's unnecessary. Is this correct K

Re: [Qemu-devel] [PATCH] MAINTAINERS: add block driver sub-maintainers

2013-10-21 Thread Josh Durgin
00644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,3 +857,41 @@ Stable 0.10 L: qemu-sta...@nongnu.org T: git git://git.qemu-project.org/qemu-stable-0.10.git S: Orphan + +Block drivers +- +VMDK +M: Fam Zheng +S: Supported +F: block/vmdk.c + +RBD +M: Josh Durgin +S: Supported +F:

Re: [Qemu-devel] qcow2: Can create qcow2 image format on rbd server

2014-12-08 Thread Josh Durgin
rbd already supports snapshots, cloning, thin provisioning, and differential backup natively, so putting qcow2 on top tends to just add overhead. Josh So use "-o preallocation=falloc or -o preallocation=full", it not a good solution. Regards, Jun Li I can't say a lot about makin

Re: [Qemu-devel] qcow2: Can create qcow2 image format on rbd server

2014-12-09 Thread Josh Durgin
On 12/09/2014 01:49 AM, Stefan Hajnoczi wrote: On Tue, Dec 9, 2014 at 3:52 AM, Josh Durgin wrote: On 12/08/2014 05:58 AM, Jun Li wrote: On Fri, 12/05 18:01, Max Reitz wrote: On 2014-12-05 at 16:32, Jun Li wrote: Currently, qemu-img can not create qcow2 image format on rbd server

Re: [Qemu-devel] [PATCH] rbd: print a clear error message when write beyond EOF

2014-12-10 Thread Josh Durgin
n EINVAL from rbd_aio_{read,write,discard} in rbd_start_aio() to avoid duplicating the check. An out of bounds i/o is the only way EINVAL can be returned from these functions in librbd. Josh

Re: [Qemu-devel] [PATCH v2] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Josh Durgin
o_release(acb); return NULL; } Reviewed-by: Josh Durgin FWIW this error path can only happen in certain combinations of odd circumstances, including specific forms of disk corruption of certain objects in concert with other factors, so it's quite unlikely to occur in practice.

Re: [Qemu-devel] [PATCH v2 1/3] rbd: add support for getting password from QCryptoSecret object

2015-12-21 Thread Josh Durgin
ey.b64 $QEMU -object secret,id=secret0,file=poolkey.b64,format=base64 \ -drive driver=rbd,filename=rbd:pool/image:id=myname:\ auth_supported=cephx,passwordid=secret0 Signed-off-by: Daniel P. Berrange Looks good to me, thanks! Reviewed-by: Josh Durgin

Re: [Qemu-devel] [PATCH 0/4] rbd cleanup and settings precedence fixes

2015-06-30 Thread Josh Durgin
Ping On 06/10/2015 08:28 PM, Josh Durgin wrote: Patches 1 and 2 are simple cleanups. 3 and 4 fix the precedence of cache options and ceph settings. The cache option precedence in particular is important due to the potential for misconfigurations (ceph.conf setting rbd_cache=true, qemu setting

Re: [Qemu-devel] [PATCH] rbd block driver fix race between aio completition and aio cancel

2012-11-21 Thread Josh Durgin
On 11/19/2012 12:39 PM, Stefan Priebe wrote: From: Stefan Priebe This one fixes a race qemu also had in iscsi block driver between cancellation and io completition. qemu_rbd_aio_cancel was not synchronously waiting for the end of the command. It also removes the useless cancelled flag and int

Re: [Qemu-devel] [PATCH] rbd block driver fix race between aio completition and aio cancel

2012-11-27 Thread Josh Durgin
On 11/22/2012 02:00 AM, Stefan Priebe wrote: This one fixes a race which qemu had also in iscsi block driver between cancellation and io completition. qemu_rbd_aio_cancel was not synchronously waiting for the end of the command. To archieve this it introduces a new status flag which uses -EINPR

[Qemu-devel] [PATCH] rbd: add an asynchronous flush

2013-03-29 Thread Josh Durgin
asynchronous version is available. Reported-by: Oliver Francke Signed-off-by: Josh Durgin --- block/rbd.c | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index 1a8ea6d..568b279 100644 --- a/block/rbd.c +++ b/block/rbd.c

[Qemu-devel] [PATCH v2] rbd: add an asynchronous flush

2013-03-29 Thread Josh Durgin
asynchronous version is available. Reported-by: Oliver Francke Signed-off-by: Josh Durgin --- v2: * include hunk treating write, discard, and flush completions the same, since they have no result data block/rbd.c | 37 + 1 file changed, 33 insertions(+), 4

[Qemu-devel] [PATCH v3 1/2] rbd: add an asynchronous flush

2013-04-04 Thread Josh Durgin
asynchronous version is available. Reported-by: Oliver Francke Signed-off-by: Josh Durgin --- Since v2: * remove #ifdefs around bdrv_aio_flush and qemu_rbd_aio_flush, since they are dealt with at runtime in the next patch block/rbd.c | 30 ++ 1 file changed, 26

[Qemu-devel] [PATCH 2/2] rbd: disable unsupported librbd functions at runtime

2013-04-04 Thread Josh Durgin
initial version of librbd, so only they need to be checked. Signed-off-by: Josh Durgin --- block/rbd.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/block/rbd.c b/block/rbd.c index 037d82b..69a339a 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -44,6 +44,15

Re: [Qemu-devel] [PATCH 2/2] rbd: disable unsupported librbd functions at runtime

2013-04-04 Thread Josh Durgin
On 04/04/2013 03:10 AM, Kevin Wolf wrote: Am 04.04.2013 um 10:35 hat Josh Durgin geschrieben: QEMU may be compiled against a newer version of librbd, but run and dynamically linked with an older version that does not support these functions. Declare them as weak symbols so they can be checked

Re: [Qemu-devel] sending SEGV to qemu crashes host kernel in Fedora 19

2013-07-09 Thread Josh Boyer
n my machine would die a few mins later. > > Of course now I read my fedora kernel emails and notice vhost_net does > bad things, > > disabling vhost_net seems to make it work fine, hopefully the next > Fedora kernel will bring the magic fixes. We hope so too. 3.9.9-302.fc19 in koji should contain the fixes we know about. There's still another bug open that's tracking issues with Windows guest VMs and vhost-net. josh

[Qemu-devel] [PATCH] rbd: add discard support

2012-04-30 Thread Josh Durgin
ff-by: Josh Durgin --- block/rbd.c | 89 -- 1 files changed, 73 insertions(+), 16 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index 6cd8448..1280d66 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -44,6 +44,13 @@ * le

[Qemu-devel] [PATCH] rbd: hook up cache options

2012-05-17 Thread Josh Durgin
Writeback caching was added in Ceph 0.46, and writethrough will be in 0.47. These are controlled by general config options, so there's no need to check for librbd version. Signed-off-by: Josh Durgin --- block/rbd.c | 19 +++ 1 files changed, 19 insertions(+), 0 dele

Re: [Qemu-devel] [PATCH] rbd: hook up cache options

2012-05-22 Thread Josh Durgin
On 05/22/2012 02:18 AM, Paolo Bonzini wrote: Il 17/05/2012 22:42, Josh Durgin ha scritto: + * Fallback to more conservative semantics if setting cache + * options fails. Ignore errors from setting rbd_cache because the + * only possible error is that the option does not exist, and

Re: [Qemu-devel] block: Review of .has_zero_init use

2013-06-25 Thread Josh Durgin
On 06/25/2013 04:39 AM, Kevin Wolf wrote: Can you please review for the gluster, rbd, sheepdog and ssh driver whether it's safe to assume that the image reads back as zeros after bdrv_create? This is always safe for rbd.

[Qemu-devel] Re: [PATCH v2 1/2] rbd: use the higher level librbd instead of just librados

2011-04-08 Thread Josh Durgin
On 04/08/2011 01:43 AM, Stefan Hajnoczi wrote: On Mon, Mar 28, 2011 at 04:15:57PM -0700, Josh Durgin wrote: librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes

Re: [Qemu-devel] [PATCH v2 1/2] rbd: use the higher level librbd instead of just librados

2011-04-11 Thread Josh Durgin
On 04/08/2011 01:43 AM, Stefan Hajnoczi wrote: On Mon, Mar 28, 2011 at 04:15:57PM -0700, Josh Durgin wrote: librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes

Re: [Qemu-devel] [PATCH v2 1/2] rbd: use the higher level librbd instead of just librados

2011-04-12 Thread Josh Durgin
On 04/12/2011 01:54 AM, Stefan Hajnoczi wrote: Is qemu-iotests passing for you now? Yes, they all pass when 016 is skipped. Josh

[Qemu-devel] [PATCH v3 0/4] rbd improvements

2011-04-12 Thread Josh Durgin
This patchset moves the complexity of the rbd format into librbd and adds truncation support. This passes qemu-iotests when 016 is skipped. A patch for this is in a separate email. Changes since v2: * return values are checked in rbd_aio_rw_vector * bdrv_truncate added Josh Durgin (4): rbd

[Qemu-devel] [qemu-iotests][PATCH] Update rbd support

2011-04-12 Thread Josh Durgin
rbd is not growable, so test 016 is skipped. rbd implements bdrv_truncate, so test 025 will work. Signed-off-by: Josh Durgin --- 016 |4 025 |2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/016 b/016 index 16f151f..8fa921f 100755 --- a/016 +++ b/016 @@ -43,6

[Qemu-devel] [PATCH v3 4/4] rbd: Add bdrv_truncate implementation

2011-04-12 Thread Josh Durgin
Signed-off-by: Josh Durgin --- block/rbd.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index ac20282..4514dbd 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -686,6 +686,20 @@ static int64_t qemu_rbd_getlength(BlockDriverState

[Qemu-devel] [PATCH v3 3/4] rbd: check return values when scheduling aio

2011-04-12 Thread Josh Durgin
If scheduling fails, the number of outstanding I/Os must be correct, or there will be a hang when waiting for everything to be flushed. Reported-by: Stefan Hajnoczi Signed-off-by: Josh Durgin --- block/rbd.c | 24 1 files changed, 20 insertions(+), 4 deletions

[Qemu-devel] [PATCH v3 2/4] rbd: allow configuration of rados from the rbd filename

2011-04-12 Thread Josh Durgin
luster to be used by specifying different monitor addresses, as well as having different logging levels or locations for different volumes. Signed-off-by: Josh Durgin --- block/rbd.c | 119 ++ 1 files changed, 102 insertions(+), 17 deletions(-)

[Qemu-devel] [PATCH v3 1/4] rbd: use the higher level librbd instead of just librados

2011-04-12 Thread Josh Durgin
librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes. Signed-off-by: Josh Durgin Signed-off-by: Yehuda Sadeh --- block/rbd.c | 787

Re: [Qemu-devel] [qemu-iotests][PATCH] Update rbd support

2011-04-12 Thread Josh Durgin
On Wed, 13 Apr 2011 04:43:39 +0200, Christoph Hellwig wrote: >> @@ -43,6 +43,10 @@ _supported_fmt raw >> _supported_proto generic >> _supported_os Linux >> >> +# rbd images are not growable >> +if [ "$IMGPROTO" = "rbd" ]; then >> +_notrun "image protocol $IMGPROTO does not support growable i

Re: [Qemu-devel] Qemu + RBD = ceph::buffer::end_of_buffer

2011-05-06 Thread Josh Durgin
(with Josh Durgin's patches) against the latest git version of Ceph. However, this error is still occurring: terminate called after throwing an instance of 'ceph::buffer::end_of_buffer' what(): buffer::end_of_buffer Aborted (core dumped) Here's another bac

[Qemu-devel] [PATCH] rbd: always set out parameter in qemu_rbd_snap_list

2011-12-06 Thread Josh Durgin
The caller expects psn_tab to be NULL when there are no snapshots or an error occurs. This results in calling g_free on an invalid address. Reported-by: Oliver Francke Signed-off-by: Josh Durgin --- block/rbd.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/block

Re: [Qemu-devel] [PATCH 03/17] rbd: add support for getting password from QCryptoSecret object

2015-10-19 Thread Josh Durgin
On 10/19/2015 08:09 AM, Daniel P. Berrange wrote: Currently RBD passwords must be provided on the command line via $QEMU -drive file=rbd:pool/image:id=myname:\ key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:\ auth_supported=cephx This is insecure because the key is visibl

[Qemu-devel] [PATCH 0/4] rbd cleanup and settings precedence fixes

2015-06-11 Thread Josh Durgin
Patches 1 and 2 are simple cleanups. 3 and 4 fix the precedence of cache options and ceph settings. The cache option precedence in particular is important due to the potential for misconfigurations (ceph.conf setting rbd_cache=true, qemu setting cache=none) to accidentally put data at risk. Josh

[Qemu-devel] [PATCH 3/4] rbd: make qemu's cache setting override any ceph setting

2015-06-11 Thread Josh Durgin
, although this would just be a performance problem. Fix this by changing rbd's cache setting to match qemu after all other ceph settings have been applied. Signed-off-by: Josh Durgin --- block/rbd.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/

[Qemu-devel] [PATCH 4/4] rbd: fix ceph settings precedence

2015-06-11 Thread Josh Durgin
Apply the ceph settings from a config file before any ceph settings from the command line. Since the ceph config file location may be specified on the command line, parse it once to read the config file, and do a second pass to apply the rest of the command line ceph options. Signed-off-by: Josh

[Qemu-devel] [PATCH 1/4] rbd: remove unused constants and fields

2015-06-11 Thread Josh Durgin
RBDAIOCB.status was only used for cancel, which was removed in 7691e24dbebb46658e89b3f950fda6ec78bbb823. RBDAIOCB.sector_num was never used. RADOSCB.done and rcbid were never used. RBD_FD* are obsolete since the pipe was removed in e04fb07fd1676e9facd7f3f878c1bbe03bccd26b. Signed-off-by: Josh

[Qemu-devel] [PATCH 2/4] MAINTAINERS: update email address

2015-06-11 Thread Josh Durgin
The old one still works for now, but will not work indefinitely. Signed-off-by: Josh Durgin --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4ed8215..34eeb88 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1135,7 +1135,7 @@ S

Re: [Qemu-devel] "Using Python to investigate EFI and ACPI"

2015-09-03 Thread Josh Triplett
On Thu, Sep 03, 2015 at 11:16:40AM +0200, Laszlo Ersek wrote: > Hi Josh, > > I just found the LWN.net article with the title in the subject: > > http://lwn.net/SubscriberLink/655992/04701db2bbb7e716/ > > ("Thank you LWN", of course. :)) > > This got me

Re: [Qemu-devel] where can i customize rbd object size?

2015-09-08 Thread Josh Durgin
EFAULT_OBJ_ORDER <https://lxr.missinglinkelectronics.com/qemu+v2.1.0/+code=OBJ_DEFAULT_OBJ_ORDER>, if someone knows , please tell me. Thanks a lot. I have CCed the rbd.c maintainer for you: $ scripts/get_maintainer.pl -f block/rbd.c Josh Durgin (supporter:RBD) Thanks for CCing me, I missed it before. You can s

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2015-08-26 Thread Josh Durgin
7;re seeing. In-flight requests do have buffers and structures allocated for them in librbd, but these should have lower overhead than cow. If these are the problem, it seems to me a generic limit on in flight ops in qemu would be a reasonable fix. Other backends have resources tied up by in-flight ops as well. Josh [1] https://github.com/ceph/ceph/pull/3410

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2015-08-26 Thread Josh Durgin
On 08/26/2015 04:47 PM, Andrey Korolyov wrote: On Thu, Aug 27, 2015 at 2:31 AM, Josh Durgin wrote: On 08/26/2015 10:10 AM, Andrey Korolyov wrote: On Thu, May 14, 2015 at 4:42 PM, Andrey Korolyov wrote: On Wed, Aug 27, 2014 at 9:43 AM, Chris Friesen wrote: On 08/25/2014 03:50 PM, Chris

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2015-08-27 Thread Josh Durgin
he main culprit here is rbd cache letting itself burst too large, rather than the bounce buffers. Andrey, does this still occur with caching off? Josh

Re: [Qemu-devel] [Qemu-block] [PATCH 0/4] rbd cleanup and settings precedence fixes

2015-07-14 Thread Josh Durgin
On 07/14/2015 07:20 AM, Kevin Wolf wrote: Am 09.07.2015 um 11:59 hat Stefan Hajnoczi geschrieben: On Tue, Jun 30, 2015 at 11:28:18AM -0700, Josh Durgin wrote: Ping On 06/10/2015 08:28 PM, Josh Durgin wrote: Patches 1 and 2 are simple cleanups. 3 and 4 fix the precedence of cache options and

  1   2   >