ui/console: allow display device to be labeled with given id
commit839a482695616c87c7663062f60b7afe48d023a7
authorWen, Jianxian <Jianxian.Wen@verisilicon.com>
Wed, 15 Jun 2022 06:35:14 +0000 (15 06:35 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 1 Jul 2022 10:33:51 +0000 (1 12:33 +0200)
tree6b415f7ea7d08a2cbd491d347d09f041188c3850
parent701caa3d6a8b4b28d7b45b6d8ac6aadc640bbe43
ui/console: allow display device to be labeled with given id

The update makes it easier to find and specify devices.
They can only be found by device type name without the id field,
for example, devices of the same type have the same label.
The update also adds a head field,
which is useful for devices that support multiple heads,
such as virtio-gpu.

Signed-off-by: Jianxian Wen <jianxian.wen@verisilicon.com>
Signed-off-by: Lu Gao <lu.gao@verisilicon.com>
Message-Id: <4C23C17B8E87E74E906A25A3254A03F4018FC045B0@SHASXM06.verisilicon.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/ui/console.h
ui/console.c