]> www.infradead.org Git - users/dwmw2/qemu.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>
Mon, 6 Nov 2023 10:03:45 +0000 (10:03 +0000)
commit1a4df240bf39c2149ad74ccd1a6d4058de844d3c
tree530f5f2debda94eb7c709526dedc3f00e586da91
parent19794af201f5c856e1750c3f6a94558b1517a81e
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