In order to build hmp-commands.hx once we need to stop using
device target-specific check. Use the generic pattern to make
the command available on all targets, providing a stub with
kind error message when the feature is not available.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <
20260427080738.77138-10-philmd@linaro.org>
ERST
#endif
-#if defined(CONFIG_XEN_EMU)
{
.name = "xen-event-inject",
.args_type = "port:i",
``xen-event-list``
List event channels in the guest
ERST
-#endif
HXCOMM *** MUST BE LAST ENTRY **
{
#include "qemu/osdep.h"
#include "qapi/error.h"
+#include "monitor/monitor.h"
+#include "monitor/hmp.h"
#include "xen_evtchn.h"
#include "xen_primary_console.h"
void xen_primary_console_set_be_port(uint16_t port)
{
}
+
+void hmp_xen_event_list(Monitor *mon, const QDict *qdict)
+{
+ monitor_printf(mon, "XEN emulation is not available in this QEMU\n");
+}
+
+void hmp_xen_event_inject(Monitor *mon, const QDict *qdict)
+{
+ monitor_printf(mon, "XEN emulation is not available in this QEMU\n");
+}