Re: [PATCH 05/12] block: remove AioContext locking

2023-11-30 Thread Paul Durrant
-replication.c | 11 -- util/async.c | 4 - util/vhost-user-server.c | 3 - scripts/block-coroutine-wrapper.py | 3 - tests/tsan/suppressions.tsan | 1 - 41 files changed, 102 insertions(+), 1202 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH 2/6] qemu/main-loop: rename QEMU_IOTHREAD_LOCK_GUARD to QEMU_BQL_LOCK_GUARD

2023-11-30 Thread Paul Durrant
ons(+), 25 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH 1/6] system/cpus: rename qemu_mutex_lock_iothread() to qemu_bql_lock()

2023-11-30 Thread Paul Durrant
hanged, 502 insertions(+), 502 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v2 1/6] hw/xen: Set XenBackendInstance in the XenDevice before realizing it

2023-11-23 Thread Paul Durrant
On 22/11/2023 23:04, David Woodhouse wrote: On Wed, 2023-11-22 at 22:56 +, Volodymyr Babchuk wrote: Paul Durrant writes: On 21/11/2023 22:10, Volodymyr Babchuk wrote: From: David Woodhouse This allows a XenDevice implementation to know whether it was created by QEMU, or merely

Re: [PATCH v2 1/6] hw/xen: Set XenBackendInstance in the XenDevice before realizing it

2023-11-22 Thread Paul Durrant
On 21/11/2023 22:10, Volodymyr Babchuk wrote: From: David Woodhouse This allows a XenDevice implementation to know whether it was created by QEMU, or merely discovered in XenStore after the toolstack created it. This will allow us to create frontend/backend nodes only when we should, rather

Re: [PATCH v2 2/6] xen: backends: touch some XenStore nodes only if device...

2023-11-22 Thread Paul Durrant
On 21/11/2023 22:10, Volodymyr Babchuk wrote: was created by QEMU Xen PV devices in QEMU can be created in two ways: either by QEMU itself, if they were passed via command line, or by Xen toolstack. In the latter case, QEMU scans XenStore entries and configures devices accordingly. In the

Re: [PATCH v2 1/6] hw/xen: Set XenBackendInstance in the XenDevice before realizing it

2023-11-22 Thread Paul Durrant
| 2 +- hw/xen/xen-bus.c | 4 include/hw/xen/xen-backend.h | 2 -- include/hw/xen/xen-bus.h | 2 ++ 6 files changed, 9 insertions(+), 6 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH 2/3] vl: disable default serial when xen-console is enabled

2023-11-21 Thread Paul Durrant
On 15/11/2023 17:24, David Woodhouse wrote: From: David Woodhouse If a Xen console is configured on the command line, do not add a default serial port. Signed-off-by: David Woodhouse --- system/vl.c | 1 + 1 file changed, 1 insertion(+) Reviewed-by: Paul Durrant

Re: [PATCH 3/3] hw/xen: clean up xen_block_find_free_vdev() to avoid Coverity false positive

2023-11-15 Thread Paul Durrant
to hopefully make it clearer to Coverity and human reviewers alike. Signed-off-by: David Woodhouse --- hw/block/xen-block.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v1 1/7] xen-block: Do not write frontend nodes

2023-11-12 Thread Paul Durrant
On 10/11/2023 15:42, Volodymyr Babchuk wrote: From: Oleksandr Tyshchenko The PV backend running in other than Dom0 domain (non toolstack domain) is not allowed to write frontend nodes. The more, the backend does not need to do that at all, this is purely toolstack/xl devd business. I do not

Re: [PATCH] hw/xen: clean up xen_block_find_free_vdev() to avoid Coverity false positive

2023-11-09 Thread Paul Durrant
to hopefully make it clearer to Coverity and human reviewers alike. Signed-off-by: David Woodhouse ---  hw/block/xen-block.c | 24 +---  1 file changed, 21 insertions(+), 3 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v4 17/17] docs: update Xen-on-KVM documentation

2023-11-06 Thread Paul Durrant
+-- qemu-options.hx | 14 +++-- 3 files changed, 91 insertions(+), 32 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v4 16/17] doc/sphinx/hxtool.py: add optional label argument to SRST directive

2023-11-06 Thread Paul Durrant
-off-by: David Woodhouse --- docs/sphinx/hxtool.py | 18 +- docs/system/invocation.rst | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) Reviewed-by: Paul Durrant

Re: [PATCH v4 13/17] hw/i386/pc: support '-nic' for xen-net-device

2023-11-06 Thread Paul Durrant
| 2 +- hw/xen/xen-bus.c | 4 +++- include/hw/i386/pc.h | 4 +++- include/hw/xen/xen-bus.h | 2 +- 6 files changed, 17 insertions(+), 8 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v4 06/17] hw/xen: automatically assign device index to block devices

2023-11-06 Thread Paul Durrant
deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode

2023-10-25 Thread Paul Durrant
On 25/10/2023 10:00, David Woodhouse wrote: On Wed, 2023-10-25 at 09:31 +0100, Paul Durrant wrote: On 24/10/2023 17:34, David Woodhouse wrote: On Tue, 2023-10-24 at 17:25 +0100, Paul Durrant wrote: On 24/10/2023 16:49, David Woodhouse wrote: On Tue, 2023-10-24 at 16:39 +0100, Paul Durrant

Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode

2023-10-25 Thread Paul Durrant
On 24/10/2023 17:34, David Woodhouse wrote: On Tue, 2023-10-24 at 17:25 +0100, Paul Durrant wrote: On 24/10/2023 16:49, David Woodhouse wrote: On Tue, 2023-10-24 at 16:39 +0100, Paul Durrant wrote: On 24/10/2023 16:37, David Woodhouse wrote: On Tue, 2023-10-24 at 15:20 +0100, Paul Durrant

Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode

2023-10-24 Thread Paul Durrant
On 24/10/2023 16:49, David Woodhouse wrote: On Tue, 2023-10-24 at 16:39 +0100, Paul Durrant wrote: On 24/10/2023 16:37, David Woodhouse wrote: On Tue, 2023-10-24 at 15:20 +0100, Paul Durrant wrote: On 16/10/2023 16:19, David Woodhouse wrote: From: David Woodhouse The primary console

Re: [PATCH v2 16/24] hw/xen: handle soft reset for primary console

2023-10-24 Thread Paul Durrant
On 24/10/2023 16:48, David Woodhouse wrote: On Tue, 2023-10-24 at 16:44 +0100, Paul Durrant wrote: On 19/10/2023 16:40, David Woodhouse wrote: From: David Woodhouse On soft reset, the prinary console event channel needs to be rebound to the backend port (in the xen-console driver). We could

Re: [PATCH v2 16/24] hw/xen: handle soft reset for primary console

2023-10-24 Thread Paul Durrant
On 19/10/2023 16:40, David Woodhouse wrote: From: David Woodhouse On soft reset, the prinary console event channel needs to be rebound to the backend port (in the xen-console driver). We could put that into the xen-console driver itself, but it's slightly less ugly to keep it within the

Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode

2023-10-24 Thread Paul Durrant
On 24/10/2023 16:37, David Woodhouse wrote: On Tue, 2023-10-24 at 15:20 +0100, Paul Durrant wrote: On 16/10/2023 16:19, David Woodhouse wrote: From: David Woodhouse The primary console is special because the toolstack maps a page at a fixed GFN and also allocates the guest-side event channel

Re: [PATCH v2 10/24] hw/xen: populate store frontend nodes with XenStore PFN/port

2023-10-24 Thread Paul Durrant
to *rebind* to the event channel port after a reset. Signed-off-by: David Woodhouse --- hw/i386/kvm/xen_xenstore.c | 11 +++ 1 file changed, 11 insertions(+) Reviewed-by: Paul Durrant

Re: [PATCH v2 05/24] hw/xen: fix XenStore watch delivery to guest

2023-10-24 Thread Paul Durrant
On 19/10/2023 16:40, David Woodhouse wrote: From: David Woodhouse When fire_watch_cb() found the response buffer empty, it would call deliver_watch() to generate the XS_WATCH_EVENT message in the response buffer and send an event channel notification to the guest… without actually *copying*

Re: [PATCH v2 04/24] hw/xen: don't clear map_track[] in xen_gnttab_reset()

2023-10-24 Thread Paul Durrant
9789 ("hw/xen: Implement soft reset for emulated gnttab") Signed-off-by: David Woodhouse --- hw/i386/kvm/xen_gnttab.c | 2 -- 1 file changed, 2 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v2 03/24] hw/xen: select kernel mode for per-vCPU event channel upcall vector

2023-10-24 Thread Paul Durrant
3 files changed, 14 insertions(+) Reviewed-by: Paul Durrant

Re: [PATCH 12/12] hw/xen: add support for Xen primary console in emulated mode

2023-10-24 Thread Paul Durrant
On 16/10/2023 16:19, David Woodhouse wrote: From: David Woodhouse The primary console is special because the toolstack maps a page at a fixed GFN and also allocates the guest-side event channel. Add support for that in emulated mode, so that we can have a primary console. Add a *very*

Re: [PATCH 09/12] hw/xen: prevent duplicate device registrations

2023-10-24 Thread Paul Durrant
On 16/10/2023 16:19, David Woodhouse wrote: From: David Woodhouse Ensure that we have a XenBackendInstance for every device regardless of whether it was "discovered" in XenStore or created directly in QEMU. This allows the backend_list to be a source of truth about whether a given backend

Re: [PATCH 06/12] hw/xen: add get_frontend_path() method to XenDeviceClass

2023-10-24 Thread Paul Durrant
On 24/10/2023 14:29, David Woodhouse wrote: On Tue, 2023-10-24 at 13:59 +0100, Paul Durrant wrote: On 24/10/2023 13:56, David Woodhouse wrote: On Tue, 2023-10-24 at 13:42 +0100, Paul Durrant wrote: --- a/hw/xen/xen-bus.c +++ b/hw/xen/xen-bus.c @@ -711,8 +711,16 @@ static void

Re: [PATCH 08/12] hw/xen: do not repeatedly try to create a failing backend device

2023-10-24 Thread Paul Durrant
| 1 + 3 files changed, 24 insertions(+), 7 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH 07/12] hw/xen: update Xen console to XenDevice model

2023-10-24 Thread Paul Durrant
path = g_string_new(dom_path); -free(dom_path); +/* */ -if (con->xendev.dev) { -g_string_append_printf(path, "/device/console/%d", con->xendev.dev); -} else { -g_string_append(path, "/console"); +static void xen_console_disconnect(XenDevice *xendev, Error **errp) +{ +XenConsole *con = XEN_CONSOLE_DEVICE(xendev); + +qemu_chr_fe_set_handlers(>chr, NULL, NULL, NULL, NULL, + con, NULL, true); + nit: extraneous blank line by the looks of it. With that fixed... Reviewed-by: Paul Durrant

Re: [PATCH 06/12] hw/xen: add get_frontend_path() method to XenDeviceClass

2023-10-24 Thread Paul Durrant
On 24/10/2023 13:56, David Woodhouse wrote: On Tue, 2023-10-24 at 13:42 +0100, Paul Durrant wrote: --- a/hw/xen/xen-bus.c +++ b/hw/xen/xen-bus.c @@ -711,8 +711,16 @@ static void xen_device_frontend_create(XenDevice *xendev, Error **errp)    {    ERRP_GUARD();    XenBus *xenbus

Re: [PATCH 06/12] hw/xen: add get_frontend_path() method to XenDeviceClass

2023-10-24 Thread Paul Durrant
On 16/10/2023 16:19, David Woodhouse wrote: From: David Woodhouse The primary Xen console is special. The guest's side is set up for it by the toolstack automatically and not by the standard PV init sequence. Accordingly, its *frontend* doesn't appear in …/device/console/0 either; instead it

Re: [PATCH 05/12] hw/xen: populate store frontend nodes with XenStore PFN/port

2023-10-24 Thread Paul Durrant
guests to *rebind* to the event channel port after a reset. ... although this can also be done by querying the remote end of the port before reset. Signed-off-by: David Woodhouse --- hw/i386/kvm/xen_xenstore.c | 10 ++ 1 file changed, 10 insertions(+) Reviewed-by: Paul Durrant

Re: [PATCH 04/12] i386/xen: advertise XEN_HVM_CPUID_UPCALL_VECTOR in CPUID

2023-10-24 Thread Paul Durrant
(+) Reviewed-by: Paul Durrant

Re: [PATCH 03/12] include: update Xen public headers to Xen 4.17.2 release

2023-10-24 Thread Paul Durrant
/interface/vcpu.h | 19 +-- include/hw/xen/interface/version.h| 19 +-- include/hw/xen/interface/xen-compat.h | 19 +-- include/hw/xen/interface/xen.h| 19 +-- 29 files changed, 124 insertions(+), 523 deletions(-) Acked-by: Paul

Re: [PATCH 02/12] hw/xen: select kernel mode for per-vCPU event channel upcall vector

2023-10-24 Thread Paul Durrant
On 16/10/2023 16:18, David Woodhouse wrote: From: David Woodhouse A guest which has configured the per-vCPU upcall vector may set the HVM_PARAM_CALLBACK_IRQ param to fairly much anything other than zero. For example, Linux v6.0+ after commit b1c3497e604 ("x86/xen: Add support for

Re: [PATCH 01/12] i386/xen: fix per-vCPU upcall vector for Xen emulation

2023-10-24 Thread Paul Durrant
insertions(+), 3 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v2 1/4] block: rename blk_io_plug_call() API to defer_call()

2023-08-18 Thread Paul Durrant
/plug.c | 109 +++--- hw/block/dataplane/xen-block.c| 10 +-- hw/block/virtio-blk.c | 4 +- hw/scsi/virtio-scsi.c | 6 +- 9 files changed, 76 insertions(+), 79 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH] xen-block: Avoid leaks on new error path

2023-07-06 Thread Paul Durrant
f-by: Anthony PERARD --- hw/block/xen-block.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) Reviewed-by: Paul Durrant

Re: [PATCH v2 08/16] hw/xen: do not use aio_set_fd_handler(is_external=true) in xen_xenstore

2023-04-20 Thread Paul Durrant
Woodhouse Signed-off-by: Stefan Hajnoczi --- hw/i386/kvm/xen_xenstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Paul Durrant

Re: [PATCH v6 4/4] hw: replace most qemu_bh_new calls with qemu_bh_new_guarded

2023-03-02 Thread Paul Durrant
kin Xen parts... Reviewed-by: Paul Durrant

Re: [PATCH] xen-block: Use specific blockdev driver

2021-05-05 Thread Paul Durrant
verything doesn't work anymore, we need to use the "host_device" driver when the disk image is a block device and "file" driver when it is a regular file. Signed-off-by: Anthony PERARD Acked-by: Paul Durrant --- hw/block/xen-block.c | 14 +- 1 file changed

Re: [PATCH] xen-block: Fix removal of backend instance via xenstore

2021-03-22 Thread Paul Durrant
with `xendev' with s/cann't/can't With those fixed... Reviewed-by: Paul Durrant + * xen_block_drive_destroy() below. + */ +drain_call_rcu(); + if (iothread) { xen_block_iothread_destroy(iothread, errp); if (*errp) {

RE: [PATCH] xen-block: fix reporting of discard feature

2021-01-18 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 18 January 2021 15:34 > To: qemu-de...@nongnu.org > Cc: Roger Pau Monne ; Arthur Borsboom > ; Stefano > Stabellini ; Anthony Perard > ; Paul Durrant > ; Kevin Wolf ; Max Reitz ; > xen- > de...

RE: [PATCH v4 30/32] qdev: Rename qdev_get_prop_ptr() to object_field_prop_ptr()

2020-12-13 Thread Paul Durrant
in > Wolf ; Eric Blake ; Paolo Bonzini > ; Stefan > Berger ; Stefano Stabellini > ; Anthony Perard > ; Paul Durrant ; Max Reitz > ; Cornelia Huck > ; Halil Pasic ; Christian Borntraeger > ; Richard Henderson ; David > Hildenbrand ; > Thomas Huth ; Matthew Rosato ; Al

RE: [PATCH v4 23/32] qdev: Move dev->realized check to qdev_property_set()

2020-12-13 Thread Paul Durrant
in > Wolf ; Eric Blake ; Paolo Bonzini > ; Stefan > Berger ; Stefano Stabellini > ; Anthony Perard > ; Paul Durrant ; Max Reitz > ; Cornelia Huck > ; Halil Pasic ; Christian Borntraeger > ; Richard Henderson ; David > Hildenbrand ; > Thomas Huth ; Matthew Rosato ; A

RE: [PATCH v4 09/32] qdev: Make qdev_get_prop_ptr() get Object* arg

2020-12-13 Thread Paul Durrant
in > Wolf ; Eric Blake ; Paolo Bonzini > ; Cornelia > Huck ; Stefan Berger ; Stefano > Stabellini > ; Anthony Perard ; Paul > Durrant ; Max > Reitz ; Thomas Huth ; Richard Henderson > ; David > Hildenbrand ; Halil Pasic ; Christian > Borntraeger > ; Matthew

RE: [PATCH v2] xen: rework pci_piix3_xen_ide_unplug

2020-10-27 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD > Sent: 27 October 2020 15:41 > To: qemu-de...@nongnu.org > Cc: Anthony PERARD ; Paul Durrant ; > Stefano Stabellini > ; John Snow ; qemu-block@nongnu.org > Subject: [PATCH v2] xen: rework pci_piix3_xen_ide_unplug &

RE: [PATCH] xen: rework pci_piix3_xen_ide_unplug

2020-09-21 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD > Sent: 18 September 2020 15:53 > To: qemu-de...@nongnu.org > Cc: Paul Durrant ; Stefano Stabellini ; > Anthony PERARD > ; John Snow ; > qemu-block@nongnu.org > Subject: [PATCH] xen: rework pci_piix3_xen_ide_unplu

RE: [PATCH 3/5] qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros

2020-09-17 Thread Paul Durrant
ric Le Goater > ; David Gibson ; Cornelia Huck > ; Thomas > Huth ; Halil Pasic ; Christian > Borntraeger > ; Philippe Mathieu-Daudé ; Alistair > Francis > ; David Hildenbrand ; Laurent > Vivier ; > Amit Shah ; Stefano Stabellini ; > Anthony Perard > ; Paul Durrant ;

RE: [PATCH 4/5] [automated] Use OBJECT_DECLARE_TYPE when possible

2020-09-17 Thread Paul Durrant
drew > Jeffery ; Joel > Stanley ; Andrew Baumann ; > Philippe Mathieu-Daudé > ; Eric Auger ; Marcel Apfelbaum > ; > Laurent Vivier ; Sergio Lopez ; John Snow > ; Xiao > Guangrong ; Peter Chubb > ; Beniamino Galvani > ; Edgar E. Iglesias ; Stefano > Stabellini

RE: [PATCH 5/5] [automated] Use OBJECT_DECLARE_SIMPLE_TYPE when possible

2020-09-17 Thread Paul Durrant
Gibson ; Mark Cave-Ayland > ; Hervé > Poussineau ; Aleksandar Rikalo > ; BALATON Zoltan > ; Guan Xuetao ; Helge Deller > ; Corey Minyard > ; Stefano Stabellini ; Anthony > Perard > ; Paul Durrant ; Chris Wulff > ; Marek Vasut > ; Huacai Chen ; Jiaxun Yang >

RE: [PATCH v6 2/5] block: consolidate blocksize properties consistency checks

2020-05-28 Thread Paul Durrant
gt; ; qemu- > bl...@nongnu.org; Philippe Mathieu-Daudé ; Eric Blake > ; Paul > Durrant ; Fam Zheng ; John Snow > ; Michael S. Tsirkin > ; Eduardo Habkost ; Keith Busch > ; Stefano > Stabellini ; Stefan Hajnoczi > Subject: [PATCH v6 2/5] block: consolidate blocksize prop

RE: [PATCH-for-5.1 3/3] hw: Remove unnecessary DEVICE() cast

2020-04-14 Thread Paul Durrant
gt; qemu-...@nongnu.org; qemu- > p...@nongnu.org; Jason Wang ; Markus Armbruster > ; qemu- > s3...@nongnu.org; Dr. David Alan Gilbert ; Joel Stanley > ; David > Hildenbrand ; Aurelien Jarno ; > Laurent Vivier > ; Peter Maydell ; Cornelia Huck > ; > Paolo Bonzini ; Andrew Jeff

RE: [PATCH v2 for-5.0] xen-block: Fix double qlist remove and request leak

2020-04-06 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD > Sent: 06 April 2020 15:02 > To: qemu-de...@nongnu.org > Cc: qemu-sta...@nongnu.org; Anthony PERARD ; > Stefano Stabellini > ; Paul Durrant ; Stefan Hajnoczi > ; Kevin > Wolf ; Max Reitz ; > xen-de...@li

RE: [PATCH for-5.0] xen-block: Fix double qlist remove

2020-04-02 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD > Sent: 02 April 2020 14:08 > To: qemu-de...@nongnu.org > Cc: qemu-sta...@nongnu.org; Anthony PERARD ; > Stefano Stabellini > ; Paul Durrant ; Stefan Hajnoczi > ; Kevin > Wolf ; Max Reitz ; > xen-de...@li

Re: [PATCH v8 01/10] error: auto propagated local_err

2020-03-06 Thread Paul Durrant
of this macro at the start of functions with either use > error_prepend/error_append_hint (solving 1) or which use > local_err+error_propagate to check errors, switching those > functions to use *errp instead (solving 2 and 3). > > Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Paul Durrant

Re: [PATCH v8 10/10] xen: introduce ERRP_AUTO_PROPAGATE

2020-03-06 Thread Paul Durrant
--in-place --no-show-diff --max-width 80 > > Reported-by: Kevin Wolf > Reported-by: Greg Kurz > Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Paul Durrant

Re: [PATCH v6 11/11] xen: introduce ERRP_AUTO_PROPAGATE

2020-01-13 Thread Paul Durrant
--in-place --no-show-diff --max-width 80 > > Reported-by: Kevin Wolf > Reported-by: Greg Kurz > Signed-off-by: Vladimir Sementsov-Ogievskiy Acked-by: Paul Durrant

Re: [PATCH v6 02/11] error: auto propagated local_err

2020-01-13 Thread Paul Durrant
On Fri, 10 Jan 2020 at 19:42, Vladimir Sementsov-Ogievskiy wrote: [snip] > +/* > + * ERRP_AUTO_PROPAGATE > + * > + * This macro is created to be the first line of a function which use > + * Error **errp parameter to report error. It's needed only in cases where we > + * want to use error_prepend,

[PATCH] xen-bus/block: explicitly assign event channels to an AioContext

2019-12-16 Thread Paul Durrant
thread context before it is closed. aio_set_fd_handler() already deals with all the necessary synchronization when moving an fd between AioContext-s so no extra code is needed to manage this. Reported-by: Julien Grall Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc

Re: [PATCH 08/20] hw/xen/xen_pt_load_rom: Remove unused includes

2019-10-14 Thread Paul Durrant
On Mon, 14 Oct 2019 at 15:27, Philippe Mathieu-Daudé wrote: > > xen_pt_load_rom.c does not use any of these includes, remove them. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Paul Durrant > --- > hw/xen/xen_pt_load_rom.c | 4 > 1 file changed, 4 deleti

RE: [Qemu-block] [PATCH] xen-block: treat XenbusStateUnknown the same as XenbusStateClosed

2019-09-23 Thread Paul Durrant
> -Original Message- > From: John Snow > Sent: 20 September 2019 22:11 > To: Paul Durrant ; xen-de...@lists.xenproject.org; > qemu-de...@nongnu.org; > qemu-block@nongnu.org > Cc: Kevin Wolf ; Stefano Stabellini > ; Max Reitz > ; Anthony Perard ; Mark Syms &g

[Qemu-block] [PATCH] xen-block: treat XenbusStateUnknown the same as XenbusStateClosed

2019-09-18 Thread Paul Durrant
the backend in these circumstances. Reported-by: Mark Syms Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/xen-block.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index

Re: [Qemu-block] [PATCH v2 3/5] block/ide/scsi: Set BLK_PERM_SUPPORT_ZONED

2019-07-18 Thread Paul Durrant
> -Original Message- > From: Dmitry Fomichev > Sent: 17 July 2019 22:27 > To: qemu-de...@nongnu.org; qemu-block@nongnu.org > Cc: John Snow ; Kevin Wolf ; Max Reitz > ; Keith > Busch ; Stefan Hajnoczi ; Michael > S. Tsirkin > ; Stefano Stabellini ; Anthony Pera

Re: [Qemu-block] [Qemu-devel] [PATCH 2/3] xen-bus: allow AioContext to be specified for each event channel

2019-04-16 Thread Paul Durrant
> -Original Message- [snip] > > > I wonder if the `'is_external' parameter of aio_set_fd_handler shoud be > > > `true' here, instead. That flag seems to be used when making a snapshot > > > of a blockdev, for example. > > > > > > That was introduced by: > > >

Re: [Qemu-block] [PATCH 2/3] xen-bus: allow AioContext to be specified for each event channel

2019-04-10 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 10 April 2019 16:23 > To: Paul Durrant > Cc: qemu-de...@nongnu.org; qemu-block@nongnu.org; > xen-de...@lists.xenproject.org; Stefano Stabellini > ; Stefan Hajnoczi ; Kevin

Re: [Qemu-block] [PATCH] xen-block: support feature-large-sector-size

2019-04-10 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 10 April 2019 16:52 > To: Paul Durrant > Cc: qemu-de...@nongnu.org; xen-de...@lists.xenproject.org; > qemu-block@nongnu.org; Stefano Stabellini > ; Stefan Hajnoczi ; Kevin

Re: [Qemu-block] [PATCH 2/3] xen-bus: allow AioContext to be specified for each event channel

2019-04-10 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 10 April 2019 13:57 > To: Paul Durrant > Cc: qemu-de...@nongnu.org; qemu-block@nongnu.org; > xen-de...@lists.xenproject.org; Stefano Stabellini > ; Stefan Hajnoczi ; Kevin

[Qemu-block] [PATCH] xen-block: support feature-large-sector-size

2019-04-09 Thread Paul Durrant
://winpvdrvbuild.xenproject.org:8080/job/XENVBD-master/126 Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Stefan Hajnoczi Cc: Kevin Wolf Cc: Max Reitz --- hw/block/dataplane/xen-block.c | 25 -- hw/block/dataplane/xen-block.h | 3 ++- hw/block/xen-block.c

[Qemu-block] [PATCH 1/3] xen-bus: use a separate fd for each event channel

2019-04-08 Thread Paul Durrant
in xen_device_realize/unrealize(). NOTE: This patch does not add an AioContext parameter to xen_device_bind_event_channel(). That will be done in a subsequent patch. Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard --- hw/xen/xen-bus.c | 79

[Qemu-block] [PATCH 0/3] Support IOThread polling for PV shared rings

2019-04-08 Thread Paul Durrant
Currently xen-block uses an IOThread to handle AIO but the event channels are dealt with on QEMU's main thread. This series allows them to be dealt with in the same context. Paul Durrant (3): xen-bus: use a separate fd for each event channel xen-bus: allow AioContext to be specified for each

[Qemu-block] [PATCH 2/3] xen-bus: allow AioContext to be specified for each event channel

2019-04-08 Thread Paul Durrant
This patch adds an AioContext parameter to xen_device_bind_event_channel() and then uses aio_set_fd_handler() to set the callback rather than qemu_set_fd_handler(). Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Stefan Hajnoczi Cc: Kevin Wolf Cc: Max Reitz

[Qemu-block] [PATCH 3/3] xen-bus / xen-block: add support for event channel polling

2019-04-08 Thread Paul Durrant
poll of the shared ring should be because there were previously insufficient resources to fully complete a previous poll. Signed-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/dataplane/xen-block.c | 17

[Qemu-block] [PATCH v3] xen-block: scale sector based quantities correctly

2019-04-01 Thread Paul Durrant
thing other than 512. Signed-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz v3: - Expand commit comment with more explanation - Enforce logical_block_size == 512 --- hw/block/dataplane/xen-block.c | 28 +-

Re: [Qemu-block] [Xen-devel] [PATCH v2 0/2] xen-block: fix sector size confusion

2019-04-01 Thread Paul Durrant
> -Original Message- [snip] > > > > > > The old implementation has the sector size hardcoded: > > > > > > #define BLOCK_SIZE 512 > > > > > > Whereas the qdevified version uses DEFINE_BLOCK_PROPERTIES(), which > > > includes user-visible options for logical/physical_block_size. > > > >

Re: [Qemu-block] [Xen-devel] [PATCH v2 0/2] xen-block: fix sector size confusion

2019-04-01 Thread Paul Durrant
> -Original Message- > From: Kevin Wolf [mailto:kw...@redhat.com] > Sent: 28 March 2019 11:56 > To: Andrew Cooper > Cc: Anthony Perard ; Paul Durrant > ; xen- > de...@lists.xenproject.org; qemu-block@nongnu.org; qemu-de...@nongnu.org; > Stefano Stabellini > ;

Re: [Qemu-block] [Xen-devel] [PATCH v2 0/2] xen-block: fix sector size confusion

2019-04-01 Thread Paul Durrant
> -Original Message- > From: Andrew Cooper > Sent: 28 March 2019 11:46 > To: Anthony Perard ; Paul Durrant > > Cc: xen-de...@lists.xenproject.org; qemu-block@nongnu.org; > qemu-de...@nongnu.org; Kevin Wolf > ; Stefano Stabellini ; Max Reitz > ; Stefan >

Re: [Qemu-block] [Xen-devel] [PATCH v2 0/2] xen-block: fix sector size confusion

2019-03-27 Thread Paul Durrant
> -Original Message- > From: Andrew Cooper > Sent: 27 March 2019 18:20 > To: Paul Durrant ; xen-de...@lists.xenproject.org; > qemu-block@nongnu.org; > qemu-de...@nongnu.org > Cc: Kevin Wolf ; Stefano Stabellini > ; Max Reitz > ; Stefan Hajnoczi ; Anthony Per

[Qemu-block] [PATCH v2 0/2] xen-block: fix sector size confusion

2019-03-27 Thread Paul Durrant
to adhere to the spec. Paul Durrant (2): xen-block: scale sector based quantities correctly xen-block: always report 'sectors' in terms of 512-byte units hw/block/dataplane/xen-block.c | 28 +--- hw/block/xen-block.c | 2 +- hw/block/xen_blkif.h

[Qemu-block] [PATCH v2 1/2] xen-block: scale sector based quantities correctly

2019-03-27 Thread Paul Durrant
es the xen-block code accordingly. Signed-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/dataplane/xen-block.c | 28 +--- hw/block/xen_blkif.h | 2 ++ 2 files changed, 15

[Qemu-block] [PATCH v2 2/2] xen-block: always report 'sectors' in terms of 512-byte units

2019-03-27 Thread Paul Durrant
/msg01600.html Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/xen-block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index a848849f48..57e9da7e1c 100644 --- a/hw

Re: [Qemu-block] [PATCH] xen-block: only advertize discard to the frontend when it is enabled...

2019-03-21 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 21 March 2019 11:42 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; qemu-block@nongnu.org; > qemu-de...@nongnu.org; Stefano Stabellini > ; Kevin Wolf ; Max Reitz > &g

[Qemu-block] [PATCH] xen-block: scale sector based quantities correctly

2019-03-20 Thread Paul Durrant
-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/dataplane/xen-block.c | 28 +--- hw/block/xen-block.c | 2 +- hw/block/xen_blkif.h | 2 ++ 3 files changed, 16

[Qemu-block] [PATCH] xen-block: only advertize discard to the frontend when it is enabled...

2019-03-20 Thread Paul Durrant
off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/xen-block.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index 70fc2455e8..a848849f48 100644 --- a/hw/block/

Re: [Qemu-block] [PATCH] xen-block: Replace qdict_put_obj() by qdict_put() where appropriate

2019-03-14 Thread Paul Durrant
> -Original Message- > From: Markus Armbruster [mailto:arm...@redhat.com] > Sent: 13 March 2019 17:45 > To: qemu-de...@nongnu.org > Cc: sstabell...@kernel.org; Anthony Perard ; Paul > Durrant > ; xen-de...@lists.xenproject.org; > qemu-block@nongnu.org >

Re: [Qemu-block] [PATCH] xen-block: stop leaking memory in xen_block_drive_create()

2019-02-19 Thread Paul Durrant
Apologies... typo-ed qemu-devel... > -Original Message- > From: Paul Durrant [mailto:paul.durr...@citrix.com] > Sent: 19 February 2019 16:35 > To: qeme-de...@nongnu.org; qemu-block@nongnu.org; xen- > de...@lists.xenproject.org > Cc: Paul Durrant ; Peter Maydell >

[Qemu-block] [PATCH] xen-block: stop leaking memory in xen_block_drive_create()

2019-02-19 Thread Paul Durrant
Maydell Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/xen-block.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index 37a456c207..70fc2455e8

[Qemu-block] [PATCH 0/3] Coverity fixes

2019-02-15 Thread Paul Durrant
Paul Durrant (3): dataplane/xen-block: remove dead code xen-block: remove redundant assignment xen-block: report error condition from vbd_name_to_disk() hw/block/dataplane/xen-block.c | 5 + hw/block/xen-block.c | 24 2 files changed, 17 insertions

[Qemu-block] [PATCH 3/3] xen-block: report error condition from vbd_name_to_disk()

2019-02-15 Thread Paul Durrant
The function needs to make sure it is passed a valid disk name. This is easily done by making sure that the parsing loop results in a non-zero value. Spotted by Coverity: CID 1398640 Reported-by: Peter Maydell Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc

[Qemu-block] [PATCH 1/3] dataplane/xen-block: remove dead code

2019-02-15 Thread Paul Durrant
The if() statement is clearly bogus (dead code which should have been cleaned up when grant mapping was removed). Spotted by Coverity: CID 1398635 While in the neighbourhood, add a missing 'fall through' annotation. Reported-by: Peter Maydell Signed-off-by: Paul Durrant --- Cc: Stefan

[Qemu-block] [PATCH 2/3] xen-block: remove redundant assignment

2019-02-15 Thread Paul Durrant
The assignment to 'p' is unnecessary as the code will either goto 'invalid' or p will get overwritten. Spotted by Coverity: CID 1398638 Reported-by: Peter Maydell Signed-off-by: Paul Durrant --- Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz --- hw/block/xen

Re: [Qemu-block] [PATCH v2] xen-block: handle resize callback

2019-01-31 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 31 January 2019 15:21 > To: Paul Durrant > Cc: qemu-de...@nongnu.org; qemu-block@nongnu.org; xen- > de...@lists.xenproject.org; Stefan Hajnoczi ; Stefano > Stabellini ; Kev

Re: [Qemu-block] [PATCH v2] xen-block: handle resize callback

2019-01-31 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 31 January 2019 15:25 > To: Paul Durrant > Cc: qemu-de...@nongnu.org; qemu-block@nongnu.org; xen- > de...@lists.xenproject.org; Stefan Hajnoczi ; Stefano > Stabellini ; Kev

[Qemu-block] [PATCH v3] xen-block: handle resize callback

2019-01-31 Thread Paul Durrant
Some frontend drivers will handle dynamic resizing of PV disks, so set up the BlockDevOps resize_cb() method during xen_block_realize() to allow this to be done. Signed-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz v3

[Qemu-block] [PATCH v2] xen-block: handle resize callback

2019-01-30 Thread Paul Durrant
Some frontend drivers will handle dynamic resizing of PV disks, so set up the BlockDevOps resize_cb() method during xen_block_realize() to allow this to be done. Signed-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz v2

Re: [Qemu-block] [PATCH] xen-block: handle resize callback

2019-01-29 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 29 January 2019 12:25 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; qemu-block@nongnu.org; qemu- > de...@nongnu.org; Stefan Hajnoczi ; Stefano > Stabellini ; Kev

Re: [Qemu-block] [PATCH] hw/block: clean up stake xen_disk trace entries

2019-01-28 Thread Paul Durrant
Ping? I realize that I typo-ed the commit comment but, assuming that can be fixed, can I get an ack or otherwise on this? Thanks, Paul > -Original Message- > From: Paul Durrant [mailto:paul.durr...@citrix.com] > Sent: 22 January 2019 14:52 > To: qemu-de...@nongnu.org

[Qemu-block] [PATCH] xen-block: handle resize callback

2019-01-23 Thread Paul Durrant
Some frontend drivers will handle dynamic resizing of PV disks, so set up the BlockDevOps resize_cb() method during xen_block_realize() to allow this to be done. Signed-off-by: Paul Durrant --- Cc: Stefan Hajnoczi Cc: Stefano Stabellini Cc: Anthony Perard Cc: Kevin Wolf Cc: Max Reitz

[Qemu-block] [PATCH] hw/block: clean up stake xen_disk trace entries

2019-01-22 Thread Paul Durrant
This should have been removed then xen_disk.c was removed but I missed them. Signed-off-by: Paul Durrant --- Cc: Kevin Wolf Cc: Max Reitz --- hw/block/trace-events | 7 --- 1 file changed, 7 deletions(-) diff --git a/hw/block/trace-events b/hw/block/trace-events index 55e5a5500c

  1   2   3   4   5   >