[libvirt PATCH v3 06/13] ch_monitor: Get nicindexes in prep for cgroup mgmt
Michal Prívozník
mprivozn at redhat.com
Thu Jan 6 15:04:19 UTC 2022
On 12/10/21 21:34, Praveen K Paladugu wrote:
> From: Vineeth Pillai <viremana at linux.microsoft.com>
>
> Signed-off-by: Vineeth Pillai <viremana at linux.microsoft.com>
> Signed-off-by: Praveen K Paladugu <prapal at linux.microsoft.com>
> ---
> src/ch/ch_conf.h | 2 +
> src/ch/ch_domain.c | 27 ++++++-
> src/ch/ch_domain.h | 2 +
> src/ch/ch_driver.c | 1 +
> src/ch/ch_monitor.c | 185 ++++++++++++++++++++++++++++++--------------
> src/ch/ch_monitor.h | 14 +++-
> src/ch/ch_process.c | 6 +-
> src/ch/meson.build | 1 +
> 8 files changed, 179 insertions(+), 59 deletions(-)
>
> diff --git a/src/ch/ch_process.c b/src/ch/ch_process.c
> index 9f82e04485..65ca03cfaf 100644
> --- a/src/ch/ch_process.c
> +++ b/src/ch/ch_process.c
> @@ -169,6 +172,7 @@ int virCHProcessStart(virCHDriver *driver,
> goto cleanup;
> }
>
> + priv->machineName = virCHDomainGetMachineName(vm);
This needs to be coupled with corresponding free call in
virCHProcessStop() and virCHDomainObjPrivateFree() (the latter one I'm
not 100% sure, but it's better to be safe than sorry).
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
Michal
More information about the libvir-list
mailing list