]> 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>
Wed, 25 Oct 2023 11:45:22 +0000 (12:45 +0100)
commitfc67b4ca33ab2e13f209f161b2e3ceab6f804ebc
treef9a8bb26762d4698b09fe8c531bc50a183d465a5
parent82405961dcf83f6513f0a65fa7111b50587e6e01
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>
hw/xen/xen-bus.c
include/hw/xen/xen-bus.h