[libvirt PATCH 0/3] nodedev: fix device reset/detach/reattach with split daemons

Daniel P. Berrangé posted 3 patches 4 years, 1 month ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200310181314.3613846-1-berrange@redhat.com
src/libxl/libxl_driver.c            | 63 +++++++++++++++++++++++++++--
src/qemu/qemu_driver.c              | 63 +++++++++++++++++++++++++++--
src/remote/remote_daemon_dispatch.c |  7 ++++
src/rpc/gendispatch.pl              | 10 ++++-
4 files changed, 135 insertions(+), 8 deletions(-)
[libvirt PATCH 0/3] nodedev: fix device reset/detach/reattach with split daemons
Posted by Daniel P. Berrangé 4 years, 1 month ago
The virNodeDevice{Reset,ReAttach,Dettach} methods are a little
unusual because they are registered by the virt driver, but
use the virNodeDevicePtr object associated with the nodedev
driver.

In the split daemon world, we tried to dispatch them to the
virnodedevd daemon which has no impl registered. Dispatching
them to the virt driver has some quirks, we need to ensure
we have two virNodeDevicePtr instances, once for the virConnectPtr
of the virt driver and one for the virConnectPtr of the nodedev
driver.

Daniel P. Berrangé (3):
  rpc: fix dispatch for node device APIs for virt drivers
  rpc: avoid name lookup when dispatching node device APIs
  qemu: lookup node device against nodedev driver before getting XML

 src/libxl/libxl_driver.c            | 63 +++++++++++++++++++++++++++--
 src/qemu/qemu_driver.c              | 63 +++++++++++++++++++++++++++--
 src/remote/remote_daemon_dispatch.c |  7 ++++
 src/rpc/gendispatch.pl              | 10 ++++-
 4 files changed, 135 insertions(+), 8 deletions(-)

-- 
2.24.1

Re: [libvirt PATCH 0/3] nodedev: fix device reset/detach/reattach with split daemons
Posted by Michal Prívozník 4 years, 1 month ago
On 10. 3. 2020 19:13, Daniel P. Berrangé wrote:
> The virNodeDevice{Reset,ReAttach,Dettach} methods are a little
> unusual because they are registered by the virt driver, but
> use the virNodeDevicePtr object associated with the nodedev
> driver.
> 
> In the split daemon world, we tried to dispatch them to the
> virnodedevd daemon which has no impl registered. Dispatching
> them to the virt driver has some quirks, we need to ensure
> we have two virNodeDevicePtr instances, once for the virConnectPtr
> of the virt driver and one for the virConnectPtr of the nodedev
> driver.
> 
> Daniel P. Berrangé (3):
>   rpc: fix dispatch for node device APIs for virt drivers
>   rpc: avoid name lookup when dispatching node device APIs
>   qemu: lookup node device against nodedev driver before getting XML
> 
>  src/libxl/libxl_driver.c            | 63 +++++++++++++++++++++++++++--
>  src/qemu/qemu_driver.c              | 63 +++++++++++++++++++++++++++--
>  src/remote/remote_daemon_dispatch.c |  7 ++++
>  src/rpc/gendispatch.pl              | 10 ++++-
>  4 files changed, 135 insertions(+), 8 deletions(-)
> 

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal