[PATCH 00/10] qemu: Refactor typed parameter handling in qemuDomainGetGuestInfo

Peter Krempa posted 10 patches 1 week, 6 days ago
src/qemu/qemu_agent.c  |  52 ++-------
src/qemu/qemu_agent.h  |  12 +-
src/qemu/qemu_driver.c | 249 ++++++++++++-----------------------------
tests/qemuagenttest.c  | 148 +++++++++++-------------
4 files changed, 152 insertions(+), 309 deletions(-)
[PATCH 00/10] qemu: Refactor typed parameter handling in qemuDomainGetGuestInfo
Posted by Peter Krempa 1 week, 6 days ago
Use virTypedParam list to construct the returned data.

Note that this applies on top of two patch(sets) that were ACK'd
upstream:

 [PATCH v2 0/4] Add support for getting load averages from guest agent
 [PATCH] qemu: Report disk bus as reported by agent in virDomainGetGuestInfo

You can fetch the whole thing via:

 git fetch https://gitlab.com/pipo.sk/libvirt.git agent-data-refactor

Peter Krempa (10):
  qemuDomainGetGuestInfo: Prepare for refactor to virTypedParamList
  qemuDomainGetGuestInfo: Convert load code to virTypedParamList
  virDomainInterfaceFormatParams: Convert interface code to
    virTypedParamList
  qemuAgentDiskInfoFormatParams: Convert interface code to
    virTypedParamList
  qemuAgentFSInfoFormatParams: Convert interface code to
    virTypedParamList
  qemuAgentGetTimezone: Convert to virTypedParamList
  qemuAgentGetOSInfo: Convert to virTypedParamList
  qemuAgentGetUsers: Convert to virTypedParamList
  qemuDomainGetGuestInfo: Convert hostname code to virTypedParamList
  qemuDomainGetGuestInfo: Remove temporary infrastructure

 src/qemu/qemu_agent.c  |  52 ++-------
 src/qemu/qemu_agent.h  |  12 +-
 src/qemu/qemu_driver.c | 249 ++++++++++++-----------------------------
 tests/qemuagenttest.c  | 148 +++++++++++-------------
 4 files changed, 152 insertions(+), 309 deletions(-)

-- 
2.48.1
Re: [PATCH 00/10] qemu: Refactor typed parameter handling in qemuDomainGetGuestInfo
Posted by Ján Tomko 1 week, 6 days ago
On a Wednesday in 2025, Peter Krempa wrote:
>Use virTypedParam list to construct the returned data.
>
>Note that this applies on top of two patch(sets) that were ACK'd
>upstream:
>
> [PATCH v2 0/4] Add support for getting load averages from guest agent
> [PATCH] qemu: Report disk bus as reported by agent in virDomainGetGuestInfo
>
>You can fetch the whole thing via:
>
> git fetch https://gitlab.com/pipo.sk/libvirt.git agent-data-refactor
>
>Peter Krempa (10):
>  qemuDomainGetGuestInfo: Prepare for refactor to virTypedParamList
>  qemuDomainGetGuestInfo: Convert load code to virTypedParamList
>  virDomainInterfaceFormatParams: Convert interface code to
>    virTypedParamList
>  qemuAgentDiskInfoFormatParams: Convert interface code to
>    virTypedParamList
>  qemuAgentFSInfoFormatParams: Convert interface code to
>    virTypedParamList
>  qemuAgentGetTimezone: Convert to virTypedParamList
>  qemuAgentGetOSInfo: Convert to virTypedParamList
>  qemuAgentGetUsers: Convert to virTypedParamList
>  qemuDomainGetGuestInfo: Convert hostname code to virTypedParamList
>  qemuDomainGetGuestInfo: Remove temporary infrastructure
>
> src/qemu/qemu_agent.c  |  52 ++-------
> src/qemu/qemu_agent.h  |  12 +-
> src/qemu/qemu_driver.c | 249 ++++++++++++-----------------------------
> tests/qemuagenttest.c  | 148 +++++++++++-------------
> 4 files changed, 152 insertions(+), 309 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano