]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/xen: add get_frontend_path() method to XenDeviceClass
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 14 Oct 2023 15:53:23 +0000 (16:53 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 7 Nov 2023 08:54:20 +0000 (08:54 +0000)
commit523b6b3abac928ff3574d8a45df58d29bd8ae454
treef119ff0ac6ee7a048affe33500daf5c435c78653
parentd3256f88d988809ae006aa28d6df88b37b253bc1
hw/xen: add get_frontend_path() method to XenDeviceClass

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>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/xen/xen-bus.c
include/hw/xen/xen-bus.h