On 28/04/2023 11:41 am, Alejandro Vallejo wrote:
> diff --git a/tools/libs/ctrl/xc_domain.c b/tools/libs/ctrl/xc_domain.c
> index e939d07157..6b11775d4c 100644
> --- a/tools/libs/ctrl/xc_domain.c
> +++ b/tools/libs/ctrl/xc_domain.c
> @@ -345,6 +345,29 @@ int xc_dom_vuart_init(xc_interface *xch,
> return rc;
> }
>
> +int xc_domain_getinfo_single(xc_interface *xch,
> + uint32_t domid,
> + xc_domaininfo_t *info)
> +{
> + struct xen_domctl domctl = {
> + .cmd = XEN_DOMCTL_getdomaininfo,
> + .domain = domid,
> + };
> +
> + if ( do_domctl(xch, &domctl) < 0 )
> + return -1;
> +
> + if ( domctl.u.getdomaininfo.domain != domid ) {
One tiny style issue. This brace should be on the next line.
I'll fix on commit.
Reviewed-by: Andrew Cooper <[email protected]>