[libvirt] [PATCH 0/5] Implement qemu-ga 'guest-get-users'

Jonathon Jongsma posted 5 patches 1 week ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20190710200747.745-1-jjongsma@redhat.com
include/libvirt/libvirt-domain.h    |  18 ++++
src/driver-hypervisor.h             |   6 ++
src/libvirt-domain.c                |  62 ++++++++++++++
src/libvirt_public.syms             |   5 ++
src/qemu/qemu_agent.c               |  92 ++++++++++++++++++++
src/qemu/qemu_agent.h               |   2 +
src/qemu/qemu_driver.c              |  38 +++++++++
src/remote/remote_daemon_dispatch.c |  89 ++++++++++++++++++++
src/remote/remote_driver.c          |  82 +++++++++++++++++-
src/remote/remote_protocol.x        |  26 +++++-
src/remote_protocol-structs         |  17 ++++
tests/qemuagenttest.c               | 125 ++++++++++++++++++++++++++++
tools/virsh-domain.c                |  76 +++++++++++++++++
tools/virsh.pod                     |   4 +
14 files changed, 640 insertions(+), 2 deletions(-)

[libvirt] [PATCH 0/5] Implement qemu-ga 'guest-get-users'

Posted by Jonathon Jongsma 1 week ago
This set of patches adds new API and an implementation for getting the active
users for a domain via the guest agent. There is only an implementation for the
qemu driver. I've implemented the remote protocol and added support in virsh
(new command 'guestusers').

A lot of the implementation was modelled on the implementation of
guest-get-fsinfo, which also returns an array of info structures. Since this is
my first time adding API or dealing with libvirt RPC stuff, I anticipate
several rounds of the series.

This series addresses https://bugzilla.redhat.com/show_bug.cgi?id=1704761

Jonathon Jongsma (5):
  lib: add API to query info about logged-in users
  remote: implement remote protocol for virDomainGetGuestUsers
  virsh: add command 'guestusers' implementing VirDomainGetGuestUsers
  qemu_agent: add helper for getting guest users
  qemu: implement virDomainGetGuestUsers

 include/libvirt/libvirt-domain.h    |  18 ++++
 src/driver-hypervisor.h             |   6 ++
 src/libvirt-domain.c                |  62 ++++++++++++++
 src/libvirt_public.syms             |   5 ++
 src/qemu/qemu_agent.c               |  92 ++++++++++++++++++++
 src/qemu/qemu_agent.h               |   2 +
 src/qemu/qemu_driver.c              |  38 +++++++++
 src/remote/remote_daemon_dispatch.c |  89 ++++++++++++++++++++
 src/remote/remote_driver.c          |  82 +++++++++++++++++-
 src/remote/remote_protocol.x        |  26 +++++-
 src/remote_protocol-structs         |  17 ++++
 tests/qemuagenttest.c               | 125 ++++++++++++++++++++++++++++
 tools/virsh-domain.c                |  76 +++++++++++++++++
 tools/virsh.pod                     |   4 +
 14 files changed, 640 insertions(+), 2 deletions(-)

-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list