Re: [PATCH v3 14/28] hw/xen: add get_frontend_path() method to XenDeviceClass

Durrant, Paul
2023-10-27T07:32:02Z

On 25/10/2023 15:50, David Woodhouse wrote:
> From: David Woodhouse <dwmw@amazon.co.uk>
>
> The primary Xen console is special. The guest's side is set up for it by
> the toolstack automatically and not by the standard PV init sequence.
>
> Accordingly, its *frontend* doesn't appear in …/device/console/0 either;
> instead it appears under …/console in the guest's XenStore node.
>
> To allow the Xen console driver to override the frontend path for the
> primary console, add a method to the XenDeviceClass which can be used
> instead of the standard xen_device_get_frontend_path()
>
> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
> ---
> hw/xen/xen-bus.c | 11 ++++++++++-
> include/hw/xen/xen-bus.h | 2 ++
> 2 files changed, 12 insertions(+), 1 deletion(-)
>

Reviewed-by: Paul Durrant <paul@xen.org>