On Thu, May 26, 2022 at 07:08:14AM +0000, Wen, Jianxian wrote: > 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.
Can we make the head field conditional, so it's only done in case there are actually multiple heads? Both qxl and virtio-gpu have a max_outputs property, so checking if that exists and is greater than 1 should work for that. take care, Gerd