 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 06/27 v8] xen/arm: vpl011: Add a new domctl API to initialize vpl011
 On Mon, Aug 28, 2017 at 02:25:49PM +0530, Bhupinder Thakur wrote:
> Add a new domctl API to initialize vpl011. It takes the GFN and console
> backend domid as input and returns an event channel to be used for
> sending and receiving events from Xen.
> 
> Xen will communicate with xenconsole using GFN as the ring buffer and
> the event channel to transmit and receive pl011 data on the guest domain's
> behalf.
> 
> Signed-off-by: Bhupinder Thakur <bhupinder.thakur@xxxxxxxxxx>
[...]
> diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
> index d842d88..b8147f0 100644
> --- a/tools/libxl/libxl_arm.c
> +++ b/tools/libxl/libxl_arm.c
> @@ -1038,6 +1038,28 @@ int 
> libxl__arch_domain_finalise_hw_description(libxl__gc *gc,
>      return 0;
>  }
>  
> +int libxl__arch_build_dom_finish(libxl__gc *gc,
> +                                 libxl_domain_build_info *info,
> +                                 struct xc_dom_image *dom,
> +                                 libxl__domain_build_state *state)
> +{
> +    int rc = 0;
int rc, ret;
> +
> +    if (info->arch_arm.vuart != LIBXL_VUART_TYPE_SBSA_UART)
> +        return rc;
if ( ... ) {
    rc = 0;
    goto out;
}
> +
> +    rc = xc_dom_vuart_init(CTX->xch,
> +                           XEN_DOMCTL_VUART_TYPE_VPL011,
> +                           dom->guest_domid,
> +                           dom->console_domid,
> +                           dom->vuart_gfn,
> +                           &state->vuart_port);
ret = xc_dom_vuart_init(...);
if (ret < 0) {
    rc = ERROR_FAIL;
    goto out;
}
> +    if (rc < 0)
> +        LOG(ERROR, "xc_dom_vuart_init failed\n");
out:
> +
> +    return rc;
> +}
> +
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |