Gerd Hoffmann <[email protected]> writes: > Use display device qdev id and head number instead of console index to > specify the QemuConsole. This makes things consistent with input > devices (for input routing) and vnc server configuration, which both use > display and head too. > > Signed-off-by: Gerd Hoffmann <[email protected]> > Reviewed-by: Daniel P. Berrange <[email protected]> > --- > qapi-schema.json | 32 +++++++++++++++++--------------- > qmp-commands.hx | 17 +++++++++-------- > ui/input.c | 15 ++++++++++----- > 3 files changed, 36 insertions(+), 28 deletions(-) > [...] > diff --git a/qmp-commands.hx b/qmp-commands.hx > index db072a6..9925fc1 100644 > --- a/qmp-commands.hx > +++ b/qmp-commands.hx > @@ -4614,8 +4614,9 @@ Send input event to guest. > > Arguments: > > -- "console": console index. (json-int, optional) > -- "events": list of input events. > +- "device": display device (json-str, optional)
Missed this in v1, sorry: json-string > +- "head": display head (json-int, optional) > +- "events": list of input events > > The consoles are visible in the qom tree, under > /backend/console[$index]. They have a device link and head property, so [...]
