<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/include/ui, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/include/ui?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/include/ui?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-07-16T18:04:08Z</updated>
<entry>
<title>ui/console: Remove dpy_cursor_define_supported()</title>
<updated>2024-07-16T18:04:08Z</updated>
<author>
<name>Akihiko Odaki</name>
<email>akihiko.odaki@daynix.com</email>
</author>
<published>2024-07-15T05:25:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=4bba839808bb1c4f500a11462220a687b4d9ab25'/>
<id>urn:sha1:4bba839808bb1c4f500a11462220a687b4d9ab25</id>
<content type='text'>
Remove dpy_cursor_define_supported() as it brings no benefit today and
it has a few inherent problems.

All graphical displays except egl-headless support cursor composition
without DMA-BUF, and egl-headless is meant to be used in conjunction
with another graphical display, so dpy_cursor_define_supported()
always returns true and meaningless.

Even if we add a new display without cursor composition in the future,
dpy_cursor_define_supported() will be problematic as a cursor display
fix for it because some display devices like virtio-gpu cannot tell the
lack of cursor composition capability to the guest and are unable to
utilize the value the function returns. Therefore, all non-headless
graphical displays must actually implement cursor composition for
correct cursor display.

Another problem with dpy_cursor_define_supported() is that it returns
true even if only some of the display listeners support cursor
composition, which is wrong unless all display listeners that lack
cursor composition is headless.

Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Phil Dennis-Jordan &lt;phil@philjordan.eu&gt;
Signed-off-by: Akihiko Odaki &lt;akihiko.odaki@daynix.com&gt;
Message-ID: &lt;20240715-cursor-v3-4-afa5b9492dbf@daynix.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>ui/console: Convert mouse visibility parameter into bool</title>
<updated>2024-07-16T18:04:08Z</updated>
<author>
<name>Akihiko Odaki</name>
<email>akihiko.odaki@daynix.com</email>
</author>
<published>2024-07-15T05:25:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=a418e7aeea14d1cbe7dc9160aa0874bc1056ae74'/>
<id>urn:sha1:a418e7aeea14d1cbe7dc9160aa0874bc1056ae74</id>
<content type='text'>
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Tested-by: Phil Dennis-Jordan &lt;phil@philjordan.eu&gt;
Signed-off-by: Akihiko Odaki &lt;akihiko.odaki@daynix.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-ID: &lt;20240715-cursor-v3-2-afa5b9492dbf@daynix.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>ui+display: rename is_buffer_shared() -&gt; surface_is_allocated()</title>
<updated>2024-06-19T10:42:03Z</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2024-06-05T13:14:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=abd749b517827b3da38230f50a82a94fccfaddac'/>
<id>urn:sha1:abd749b517827b3da38230f50a82a94fccfaddac</id>
<content type='text'>
Boolean return value is reversed, to align with QEMU_ALLOCATED_FLAG, so
all callers must be adapted.  Also rename share_surface variable in
vga_draw_graphic() to reduce confusion.

No functional change.

Suggested-by: Marc-André Lureau &lt;marcandre.lureau@gmail.com&gt;
Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Reviewed-by: Paul Durrant &lt;paul@xen.org&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-ID: &lt;20240605131444.797896-4-kraxel@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>ui+display: rename is_placeholder() -&gt; surface_is_placeholder()</title>
<updated>2024-06-19T10:42:03Z</updated>
<author>
<name>Gerd Hoffmann</name>
<email>kraxel@redhat.com</email>
</author>
<published>2024-06-05T13:14:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=9badf12ac20df80542f642d3dab7b2f1a95b20f5'/>
<id>urn:sha1:9badf12ac20df80542f642d3dab7b2f1a95b20f5</id>
<content type='text'>
No functional change.

Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-ID: &lt;20240605131444.797896-3-kraxel@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>ui/console: move QemuDmaBuf struct def to dmabuf.c</title>
<updated>2024-05-14T13:14:12Z</updated>
<author>
<name>Dongwon Kim</name>
<email>dongwon.kim@intel.com</email>
</author>
<published>2024-05-08T17:54:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=db81dd6bdc3425145398c6634c329c2182144d6d'/>
<id>urn:sha1:db81dd6bdc3425145398c6634c329c2182144d6d</id>
<content type='text'>
To complete privatizing process of QemuDmaBuf, QemuDmaBuf struct def
is moved to dmabuf.c

Suggested-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Cc: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Cc: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Cc: Vivek Kasireddy &lt;vivek.kasireddy@intel.com&gt;
Signed-off-by: Dongwon Kim &lt;dongwon.kim@intel.com&gt;
Message-Id: &lt;20240508175403.3399895-7-dongwon.kim@intel.com&gt;
</content>
</entry>
<entry>
<title>ui/console: new dmabuf.h and dmabuf.c for QemuDmaBuf struct and helpers</title>
<updated>2024-05-14T13:14:12Z</updated>
<author>
<name>Dongwon Kim</name>
<email>dongwon.kim@intel.com</email>
</author>
<published>2024-05-08T17:53:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=6e6ae491dad9a7ba813c7f1e70ce972c35c2d4ab'/>
<id>urn:sha1:6e6ae491dad9a7ba813c7f1e70ce972c35c2d4ab</id>
<content type='text'>
New header and source files are added for containing QemuDmaBuf struct
definition and newly introduced helpers for creating/freeing the struct
and accessing its data.

v10: Change the license type for both dmabuf.h and dmabuf.c from MIT to
     GPL to be in line with QEMU's default license

v11: -- Added new helpers, qemu_dmabuf_close for closing dmabuf-&gt;fd,
        qemu_dmabuf_dup_fd for duplicating dmabuf-&gt;fd
        (Daniel P. Berrangé &lt;berrange@redhat.com&gt;)

     -- Let qemu_dmabuf_fee to call qemu_dmabuf_close before freeing
        the struct to make sure fd is closed.
        (Daniel P. Berrangé &lt;berrange@redhat.com&gt;)

v12: Not closing fd in qemu_dmabuf_free because there are cases fd
     should still be available even after the struct is destroyed
     (e.g. virtio-gpu: res-&gt;dmabuf_fd).

Suggested-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Cc: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Cc: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Cc: Vivek Kasireddy &lt;vivek.kasireddy@intel.com&gt;
Signed-off-by: Dongwon Kim &lt;dongwon.kim@intel.com&gt;
Message-Id: &lt;20240508175403.3399895-3-dongwon.kim@intel.com&gt;
</content>
</entry>
<entry>
<title>ui/curses: Do not use console_select()</title>
<updated>2024-03-20T06:27:58Z</updated>
<author>
<name>Akihiko Odaki</name>
<email>akihiko.odaki@daynix.com</email>
</author>
<published>2024-03-19T03:08:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=e99441a3793b53c21a4087cdc8c4f1a4d77e35e4'/>
<id>urn:sha1:e99441a3793b53c21a4087cdc8c4f1a4d77e35e4</id>
<content type='text'>
ui/curses is the only user of console_select(). Move the implementation
to ui/curses.

Signed-off-by: Akihiko Odaki &lt;akihiko.odaki@daynix.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20240319-console-v2-4-3fd6feef321a@daynix.com&gt;
</content>
</entry>
<entry>
<title>ui/vnc: Do not use console_select()</title>
<updated>2024-03-20T06:27:54Z</updated>
<author>
<name>Akihiko Odaki</name>
<email>akihiko.odaki@daynix.com</email>
</author>
<published>2024-03-19T03:08:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=d4c199566f6fa5de4afa344712462cfd322de9d0'/>
<id>urn:sha1:d4c199566f6fa5de4afa344712462cfd322de9d0</id>
<content type='text'>
console_select() is shared by other displays and a console_select() call
from one of them triggers console switching also in ui/curses,
circumventing key state reinitialization that needs to be performed in
preparation and resulting in stuck keys.

Use its internal state to track the current active console to prevent
such a surprise console switch.

Signed-off-by: Akihiko Odaki &lt;akihiko.odaki@daynix.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20240319-console-v2-2-3fd6feef321a@daynix.com&gt;
</content>
</entry>
<entry>
<title>include: Clean up includes</title>
<updated>2024-01-30T18:20:20Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2024-01-25T16:34:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=b0b05c9c635bb313d0645c4f16fa56de04b53c6e'/>
<id>urn:sha1:b0b05c9c635bb313d0645c4f16fa56de04b53c6e</id>
<content type='text'>
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes --git include include/*/*.h include/*/*/*.h

All .c should include qemu/osdep.h first.  The script performs three
related cleanups:

* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c  already includes
  it.  Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
  Drop these, too.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Zhao Liu &lt;zhao1.liu@intel.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
<entry>
<title>include/ui/rect.h: fix qemu_rect_init() mis-assignment</title>
<updated>2023-12-25T08:00:15Z</updated>
<author>
<name>Elen Avan</name>
<email>elen.avan@bk.ru</email>
</author>
<published>2023-12-22T19:17:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=9d5b42beb6978dc6219d5dc029c9d453c6b8d503'/>
<id>urn:sha1:9d5b42beb6978dc6219d5dc029c9d453c6b8d503</id>
<content type='text'>
Signed-off-by: Elen Avan &lt;elen.avan@bk.ru&gt;
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2051
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2050
Fixes: a200d53b1fde "virtio-gpu: replace PIXMAN for region/rect test"
Cc: qemu-stable@nongnu.org
Reviewed-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
</feed>
