From: Marc-André Lureau
Even if we don't have a gfx listener, we should call
displaychangelistener_display_console() which handle that case correctly.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 10 --
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/ui/console.c b
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
ui/console.c | 13 -
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 9d8406f2a2..e96f154cc0 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -425,14 +425,6 @@ static void text
From: Marc-André Lureau
Object construction should be done in respective object instance and
class handlers.
Introduce qemu_console_register() to split out the registration logic.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 93 +++-
1 fi
From: Marc-André Lureau
This will allow to move code/data to the specific console types.
Replace console_type_t with object type check.
QemuConsole can be abstract.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 47 +++
1 file changed, 19 inse
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
ui/console.c | 147 +--
1 file changed, 73 insertions(+), 74 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 8fe39aa5e3..b9b545fa3d 100644
--- a/ui/console.c
+++ b/ui/consol
From: Marc-André Lureau
To allow easier refactoring in following patches.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 2b8022dfbe..ad6fbb1d0f 100644
--- a/ui/console.c
+++ b/
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
ui/console.c | 30 +-
1 file changed, 13 insertions(+), 17 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index ad6fbb1d0f..9d8406f2a2 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -52,6 +52,11 @@
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
ui/console.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index dd8e8db525..02a24eaf5d 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1366,6 +1366,7 @@ qemu_console_init(Object *o
From: Marc-André Lureau
The following patch will move some object initialization to the
corresponding handlers.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 31 +--
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/ui/console.c b/ui/console.c
in
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
ui/console.c | 4
1 file changed, 4 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 8c4626f255..2b8022dfbe 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1067,10 +1067,6 @@ static int vc_chr_write(Chardev *chr, con
From: Marc-André Lureau
The function will handle the case when no listeners are gfx, without
extra meaningful cost.
This allows to get rid of DisplayState dependency in VC implementation.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Marc-André Lureau
Since commit 43c7d8bd449 ("console: add qemu_pixman_linebuf_copy"), it
seems it was never used.
Signed-off-by: Marc-André Lureau
---
include/ui/qemu-pixman.h | 2 --
ui/qemu-pixman.c | 8
2 files changed, 10 deletions(-)
diff --git a/include/ui/qemu-pi
From: Marc-André Lureau
All usages have been removed.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 2bc4c153de..fc1836782d 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -132,7 +132,6 @@ struct Dis
From: Marc-André Lureau
If there are no "text" listener, the callback will simply be ignored.
The rest of text handling can be done cheaply.
This allows to remove some dependency on DisplayState from VC
implementation.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 42 +--
From: Marc-André Lureau
We shouldn't call the callback directly, but use the chardev API, unless
there is a clear reason.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 9c17024dbc..a4
From: Marc-André Lureau
There is no code path that could allow a NULL return there.
Signed-off-by: Marc-André Lureau
---
ui/console.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index ba79c735b7..8c4626f255 100644
--- a/ui/console.c
+++ b/ui/console.c
@@
From: Marc-André Lureau
Usage removed in commit e27bd65a72d ("console: switch color_table_rgb to
pixman_color_t")
Signed-off-by: Marc-André Lureau
---
include/ui/qemu-pixman.h | 1 -
ui/qemu-pixman.c | 11 ---
2 files changed, 12 deletions(-)
diff --git a/include/ui/qemu-pix
From: Marc-André Lureau
console.c unit is over-crowded. This code is specific to the handling of
the QMP screendump command, so move it in ui-qmp-cmds.
Signed-off-by: Marc-André Lureau
---
include/ui/console.h | 1 +
ui/console.c | 212 ---
ui/
From: Marc-André Lureau
Hi,
QEMU system emulators can be made to compile and work without pixman.
Given how pervasively pixman types and API is used in all the code base, it was
a bit difficult to figure out how to cut the dependency.
I decided that it was important to keep VGA and graphics de
From: Marc-André Lureau
If the PCI BAR isn't yet mapped or was unmapped, QXL_IO_SET_MODE will
assert(). Instead, report a guest bug and keep going.
This can be reproduced with:
cat << EOF | ./qemu-system-x86_64 -vga qxl -m 2048 -nodefaults -qtest stdio
outl 0xcf8 0x8000101c
outl 0xcfc 0xc000
ou
From: Dongwon Kim
Fixing a regression (black screen) caused by a commit 92b58156e7
("ui/gtk: set scanout-mode right before scheduling draw").
The commit 92b58156e7 was made with an assumption that the scanout
mode needs to be set only if the guest scanout is a dmabuf but there
are cases (e.g. vi
From: Marc-André Lureau
The following changes since commit 9400601a689a128c25fa9c21e932562e0eeb7a26:
Merge tag 'pull-tcg-20230806-3' of https://gitlab.com/rth7680/qemu into
staging (2023-08-06 16:47:48 -0700)
are available in the Git repository at:
https://gitlab.com/marcandre.lureau/qemu
From: Zongmin Zhou
The buttons value use macros instead of direct numbers.
If request relative mode, have to add this for
guest vmmouse driver to judge this is a relative packet.
otherwise,vmmouse driver will not match
the condition 'status & VMMOUSE_RELATIVE_PACKET',
and can't report events on
From: Marc-André Lureau
Calling OpenGL from different threads can have bad consequences if not
carefully reviewed. It's not generally supported. In my case, I was
debugging a crash in glDeleteTextures from OPENGL32.DLL, where I asked
qemu for gl=es, and thus ANGLE implementation was expected. lib
From: Marc-André Lureau
Acked-by: Dongwon Kim
Signed-off-by: Marc-André Lureau
Message-Id: <20230726173929.690601-2-marcandre.lur...@redhat.com>
---
include/hw/virtio/virtio-gpu.h | 1 +
hw/display/virtio-gpu-base.c | 2 +-
hw/display/virtio-gpu.c| 10 ++
3 files changed, 1
From: Dongli Zhang
The kdump-zlib data pages are not dumped from aarch64 host when the
'pvtime' is involved, that is, when the block->target_end is not aligned to
page_size. In the below example, it is expected to dump two blocks.
(qemu) info mtree -f
... ...
090a-090a0fff
From: Marc-André Lureau
This can help to debug connection issues.
Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=2196182
Signed-off-by: Marc-André Lureau
Reviewed-by: Daniel P. Berrangé
Message-Id: <20230510072531.3937189-1-marcandre.lur...@redhat.com>
---
chardev/char-socket.c | 12
From: Marc-André Lureau
It's weird to shift x & y without obvious reason. Let's make this more
explicit and future-proof.
Signed-off-by: Marc-André Lureau
---
hw/i386/vmmouse.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmous
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
hw/i386/vmmouse.c| 29 ++---
hw/i386/trace-events | 10 ++
2 files changed, 24 insertions(+), 15 deletions(-)
diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c
index a56c185f15..fce13a5cde 100644
From: Marc-André Lureau
Calling OpenGL from different threads can have bad consequences if not
carefully reviewed. It's not generally supported. In my case, I was
debugging a crash in glDeleteTextures from OPENGL32.DLL, where I asked
qemu for gl=es, and thus ANGLE implementation was expected. lib
From: Marc-André Lureau
Hi,
See the second patch for details.
thanks
Marc-André Lureau (2):
virtio-gpu: free BHs, by implementing unrealize
virtio-gpu: reset gfx resources in main thread
include/hw/virtio/virtio-gpu.h | 4 +++
hw/display/virtio-gpu-base.c | 2 +-
hw/display/virtio-gpu
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
include/hw/virtio/virtio-gpu.h | 1 +
hw/display/virtio-gpu-base.c | 2 +-
hw/display/virtio-gpu.c| 10 ++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/
From: Marc-André Lureau
../ui/dbus-listener.c:236:9: error: expected expression
Error *err = NULL;
See:
https://gitlab.com/qemu-project/qemu/-/issues/1782#note_1488517427
Signed-off-by: Marc-André Lureau
---
ui/dbus-listener.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
d
From: Marc-Andre Lureau
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1782
Signed-off-by: Marc-André Lureau
---
ui/dbus-listener.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index 68ff343799..02fc6ae239 100644
--- a/ui/
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Reviewed-by: Philippe Mathieu-Daudé
Message-Id: <20230506163735.3481387-3-marcandre.lur...@redhat.com>
---
tests/docker/dockerfiles/alpine.docker| 1 +
tests/docker/dockerfiles/centos8.docker | 1 +
tests/do
From: Dongwon Kim
Replace 'width' and 'height' in QemuDmaBuf with 'backing_widht'
and 'backing_height' as these commonly indicate the size of the
whole surface (e.g. guest's Xorg extended display). Then use
'width' and 'height' for sub region in there (e.g. guest's
scanouts).
Cc: Gerd Hoffmann
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-9-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 85 -
1 file changed, 34 insertions(+), 51 deletions(-)
diff --git a/au
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Reviewed-by: Philippe Mathieu-Daudé
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-7-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/audio/pwaudi
From: Marc-André Lureau
The stream is actually created connected.
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-12-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/audio/pwaudio.c b/audio/pwa
From: Dongwon Kim
The primary guest scanout shows the booting screen right after reboot
but additional guest displays (i.e. max_ouptuts > 1) will keep displaying
the old frames until the guest virtio gpu driver gets initialized, which
could cause some confusion. A better way is to to replace the
From: Marc-André Lureau
g_clear_pointer() already checks for NULL.
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-6-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/au
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Message-Id: <20230506163735.3481387-2-marcandre.lur...@redhat.com>
---
tests/lcitool/libvirt-ci | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/lcitool/libvirt-ci b/tests/lcitool/libvirt-ci
index b0f44f929a..9bff
From: Marc-André Lureau
Follow PulseAudio backend comment and code, and only implement the
channels QEMU actually supports at this point, and add the same comment
about limits and future mappings. Simplify a bit the code.
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id:
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-5-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 10 --
1 file changed, 10 deletions(-)
diff --git a/audio/pwaudio.c b/audio/pwaudio.c
index 9eb69bfd18..51cfc0b
From: Marc-André Lureau
create_stream() now reports on all error paths.
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-11-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 12 +---
1 file changed, 1 insertion(+), 11 deletions(-)
diff
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-10-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/audio/pwaudio.c b/audio/pwaudio.c
index 70f0c46
From: Marc-André Lureau
"PipeWire" is the correct case.
Signed-off-by: Marc-André Lureau
Reviewed-by: Philippe Mathieu-Daudé
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-4-marcandre.lur...@redhat.com>
---
meson.build | 2 +-
qapi/audio.json
From: Dongwon Kim
Observed a wrong context is bound when changing the scanout mode.
To prevent problem, it is needed to make sure to bind the right
context in gtk_egl_set_scanout_mode/gtk_gl_area_set_scanout_mode
as well as unbind one in the end of gd_egl_update/gd_gl_area_update.
Cc: Gerd Hoffm
From: Dongwon Kim
Setting scanout mode is better to be done very last minute
right because the mode can be reset anytime after it is set in
dpy_gl_scanout_texture by any asynchronouse dpy_refresh call,
which eventually cancels drawing of the guest scanout texture.
Cc: Gerd Hoffmann
Cc: Marc-And
From: Marc-André Lureau
PipeWire uses errno to report error details.
Signed-off-by: Marc-André Lureau
Reviewed-by: Volker Rümelin
Message-Id: <20230506163735.3481387-8-marcandre.lur...@redhat.com>
---
audio/pwaudio.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/a
From: Marc-André Lureau
Commit 9462ff4695aa0 ("virtio-gpu/win32: allocate shareable 2d
resources/images") introduces a division, which can lead to crashes when
"height" is 0.
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1744
Reviewed-by: Alexander Bulekov
Signed-off-by: Marc-André Lurea
From: Mauro Matteo Cascella
A wrong exit condition may lead to an infinite loop when inflating a
valid zlib buffer containing some extra bytes in the `inflate_buffer`
function. The bug only occurs post-authentication. Return the buffer
immediately if the end of the compressed data has been reache
From: Dongwon Kim
Skip refresh if a new dmabuf (guest scanout frame) has already been
submitted and ready to be drawn because the scanout will be updated
with new frame anyway.
Cc: Gerd Hoffmann
Cc: Marc-André Lureau
Cc: Vivek Kasireddy
Signed-off-by: Dongwon Kim
Acked-by: Marc-André Lureau
From: Marc-André Lureau
The following changes since commit ed8ad9728a9c0eec34db9dff61dfa2f1dd625637:
Merge tag 'pull-tpm-2023-07-14-1' of https://github.com/stefanberger/qemu-tpm
into staging (2023-07-15 14:54:04 +0100)
are available in the Git repository at:
https://gitlab.com/marcandre.
From: Marc-André Lureau
Commit 9462ff4695aa0 ("virtio-gpu/win32: allocate shareable 2d
resources/images") introduces a division, which can lead to crashes when
"height" is 0.
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1744
Signed-off-by: Marc-André Lureau
---
hw/display/virtio-gpu.c
From: Marc-André Lureau
Commit commit 6cc5a615 ("ui/dbus: win32 support") has broken audio/dbus
compilation when pixman is not included.
Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1739
Signed-off-by: Marc-André Lureau
---
audio/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 d
From: Marc-André Lureau
When the client implements "org.qemu.Display1.Listener.Win32.D3d11" and
we are running on ANGLE/win32, share the scanout texture with the peer
process, and draw with ScanoutTexture2d/UpdateTexture2d methods.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.67
From: Marc-André Lureau
Allocate pixman bits for scanouts with qemu_win32_map_alloc() so we can
set a shareable handle on the associated display surface.
Note: when bits are provided to pixman_image_create_bits(), you must also give
the rowstride (the argument is ignored when bits is NULL)
Sign
From: Dongwon Kim
Respond with VIRTIO_GPU_RESP_ERR_OUT_OF_MEMORY if it fails to create
an udmabuf for the blob resource.
v2: consolidated return statments and removed an unnecessary style change
Cc: Gerd Hoffmann
Cc: Marc-André Lureau
Cc: Vivek Kasireddy
Signed-off-by: Dongwon Kim
Reviewed-
From: Marc-André Lureau
D-Bus doesn't support fd-passing on Windows (AF_UNIX doesn't have
SCM_RIGHTS yet, but there are other means to share objects. I have
proposed various solutions upstream, but none seem fitting enough atm).
To make the "-display dbus" work on Windows, implement an alternati
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-17-marcandre.lur...@redhat.com>
---
ui/dbus-listener.c | 6 ++
ui/trace-events| 3 +++
2 files changed, 9 insertions(+)
diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index e92eff66e3..860
From: Dongwon Kim
Set vc->gfx.guest_fb.dmabuf to NULL to prevent any further access
to it after the dmabuf is released.
v2: move declaration of vc inside ifdef
Cc: Gerd Hoffmann
Cc: Marc-André Lureau
Cc: Vivek Kasireddy
Signed-off-by: Dongwon Kim
Reviewed-by: Marc-André Lureau
Message-ID:
From: Bilal Elmoussaoui
To share code between the GTK and DBus UI bakcends
see the next commit for details
Signed-off-by: Bilal Elmoussaoui
Reviewed-by: Marc-André Lureau
Message-Id: <20230619095337.9899-2-belmo...@redhat.com>
---
include/ui/console.h | 15 ++
ui/console.c | 6
From: Marc-André Lureau
It will be used from other units.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-2-marcandre.lur...@redhat.com>
---
include/ui/egl-helpers.h | 2 ++
ui/egl-helpers.c | 12 +---
2 files changed, 7 insertions(+), 7 deletions(-)
diff
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
Acked-by: Thomas Huth
Message-Id: <20230606115658.677673-8-marcandre.lur...@redhat.com>
---
tests/qtest/dbus-display-test.c | 43 ++---
tests/qtest/meson.build | 2 +-
2 files changed, 41 insertions(+
From: Marc-André Lureau
Windows GL drivers are notoriously not very good. Otoh, ANGLE provides
rock solid GLES implementation on top of direct3d. We should recommend
it and default to ES when using EGL (users can easily override this if
necessary)
Signed-off-by: Marc-André Lureau
Message-Id: <2
From: Marc-André Lureau
Make GBM optional for EGL code, and enable the build for win32.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-13-marcandre.lur...@redhat.com>
---
qapi/ui.json | 5 ++---
include/ui/egl-helpers.h | 7 ++-
ui/egl-headless.c|
From: Marc-André Lureau
Introduce qemu_win32_map_alloc() and qemu_win32_map_free() to allocate
shared memory mapping. The handle can be used to share the mapping with
another process.
Teach qemu_create_displaysurface() to allocate shared memory. Following
patches will introduce other places for
From: Marc-André Lureau
When the display surface has an associated HANDLE, we can duplicate it
to the client process and let it map the memory to avoid expensive copies.
Introduce two new win32-specific methods ScanoutMap and UpdateMap. The
first is used to inform the listener about the a shared
From: Marc-André Lureau
The following patch will get the underlying D3D11 Texture2D from the
virgl renderer scanout. Pass it along to the texture scanout callbacks
as a priliminary step, to simplify review.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-20-marcandre.lur...@
From: Marc-André Lureau
eglMakeCurrent() returns 1/EGL_TRUE on success. This is not what the
callback expects, where 0 indicates success.
While at it, print the EGL error to ease debugging.
As with virgl_renderer_callbacks, the return value is now checked since
version >= 4:
https://gitlab.free
From: Marc-André Lureau
Similar to egl_fb_read(), same limitations, but with extra arguments to
read a subset of the framebuffer. Used in following commits.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-15-marcandre.lur...@redhat.com>
---
include/ui/egl-helpers.h | 1 +
From: Antonio Caggiano
When OpenGL is enabled, create only the OpenGL context, ignoring the SDL
renderer as it is unused anyway.
Signed-off-by: Antonio Caggiano
Reviewed-by: Marc-André Lureau
Message-Id: <20230612091959.2983-1-quic_acagg...@quicinc.com>
---
ui/sdl2.c | 18 +++---
From: Marc-André Lureau
Used in the following test on win32, to share sockets with the QEMU
process.
Signed-off-by: Marc-André Lureau
Reviewed-by: Thomas Huth
Message-Id: <20230606115658.677673-7-marcandre.lur...@redhat.com>
---
tests/qtest/libqtest.h | 9 +
tests/qtest/libqtest.c | 5
From: Dongwon Kim
There were often cases where a scanout blob sometimes has just 1 entry
that is linked to many pages in it. So just checking whether iov_cnt is 1
is not enough for screening small, non-scanout blobs. Therefore adding
iov_len check as well to make sure it creates an udmabuf only f
From: Marc-André Lureau
virgl offers a few features that require to have access to the
underlying EGLDisplay. This is the case for the D3D texture sharing support.
The API callback is merged for virgl 1.0:
https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1113
Signed-off-by: M
From: Bilal Elmoussaoui
So that clients making use of the DBus backend could
send touch events through the new org.qemu.Display1.Touch
interface
Signed-off-by: Bilal Elmoussaoui
Reviewed-by: Marc-André Lureau
Message-Id: <20230619095337.9899-3-belmo...@redhat.com>
---
ui/dbus-console.c| 5
From: Marc-André Lureau
Enable D3D texture sharing when possible, and pass it to the texture
display callbacks.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-21-marcandre.lur...@redhat.com>
---
meson.build | 6 ++
hw/display/virtio-gpu-virgl.c | 24
From: Marc-André Lureau
libepoxy handles loading the function pointer and dispatching the call,
so you don't have to worry about it.
Signed-off-by: Marc-André Lureau
Message-Id: <20230515132455.1025608-1-marcandre.lur...@redhat.com>
---
ui/egl-helpers.c | 6 ++
1 file changed, 2 insertions
From: Keqian Zhu via
The following points sometimes can reduce much data
to copy:
1. When width matches, we can transfer data with one
call of iov_to_buf().
2. Only the required height need to transfer, not
whole image.
Signed-off-by: Keqian Zhu
Reviewed-by: Marc-André Lureau
Message-Id: <2023
From: Zhang Huasen
If the monitor or the serial port use STDIO as backend on Windows 11 host,
e.g. -nographic options is used, the monitor or the guest Linux do not
response to arrow keys.
When Windows creates a console, ENABLE_VIRTUAL_PROCESS_INPUT is disabled
by default. Arrow keys cannot be r
From: Marc-André Lureau
This property is similar to ``org.freedesktop.DBus.Interfaces`` property
on the bus interface: it's an array of strings listing the extra
interfaces and capabilities available, in a convenient way.
Most interfaces are implicit, as they are required. For
``org/qemu/Display
From: Dongwon Kim
x and y offsets and width and height of the scanout texture
is not correctly configured in case guest scanout frame is
dmabuf.
Cc: Gerd Hoffmann
Cc: Marc-André Lureau
Cc: Vivek Kasireddy
Signed-off-by: Dongwon Kim
Message-ID: <20230621213150.29573-1-dongwon@intel.com>
-
From: Marc-André Lureau
Check if ANGLE is being used with D3D backend.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-19-marcandre.lur...@redhat.com>
---
include/ui/egl-helpers.h | 1 +
ui/egl-helpers.c | 32 +++-
ui/trace-events
From: Marc-André Lureau
Enable usage of dbus,gl= on win32. At this point, the scanout texture is
read on the DisplaySurface memory, and the client is then updated with
the "2D" API (with shared memory if possible).
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-16-marcandre
From: Vivek Kasireddy
In the case where the console does not have gl capability, and
if blob is set to true, make sure that the display updates still
work. Commit e86a93f55463 accidentally broke this by misplacing
the return statement (in resource_flush) causing the updates to
be silently ignored
From: Marc-André Lureau
D-Bus on windows doesn't support fd-passing. Let's isolate the
fdlist-related code as a first step, before adding Windows support,
using another mechanism.
Signed-off-by: Marc-André Lureau
Message-Id: <20230606115658.677673-4-marcandre.lur...@redhat.com>
---
audio/dbusa
From: Marc-André Lureau
The following changes since commit 4329d049d5b8d4af71c6b399d64a6d1b98856318:
Merge tag 'pull-tcg-20230626' of https://gitlab.com/rth7680/qemu into staging
(2023-06-26 17:40:38 +0200)
are available in the Git repository at:
https://gitlab.com/marcandre.lureau/qemu.g
From: Marc-André Lureau
VNC may try to get the current cursor even when there are no consoles
and crashes. Simple reproducer is qemu with -nodefaults.
Fixes: (again)
https://gitlab.com/qemu-project/qemu/-/issues/1548
Fixes: commit 385ac97f8 ("ui: keep current cursor with QemuConsole")
Signed-of
From: Marc-André Lureau
Rename build directory to "build", like most other CI builds.
Signed-off-by: Marc-André Lureau
---
.gitlab-ci.d/windows.yml | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml
index 472bac
From: Marc-André Lureau
Signed-off-by: Marc-André Lureau
---
.gitlab-ci.d/windows.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml
index d45794463a..f889a468b5 100644
--- a/.gitlab-ci.d/windows.yml
+++ b/.gitlab-ci.d/windows.yml
@@ -1
From: Marc-André Lureau
Hi,
Submitting again this small series from last year.
Marc-André Lureau (2):
gitlab-ci: grab msys2 meson-logs as artifacts
gitlab-ci: add msys2 meson test to junit report
.gitlab-ci.d/windows.yml | 15 +++
1 file changed, 11 insertions(+), 4 deletions(
From: Marc-André Lureau
When the display surface has an associated HANDLE, we can duplicate it
to the client process and let it map the memory to avoid expensive copies.
Introduce two new win32-specific methods ScanoutMap and UpdateMap. The
first is used to inform the listener about the a shared
From: Marc-André Lureau
Enable usage of dbus,gl= on win32. At this point, the scanout texture is
read on the DisplaySurface memory, and the client is then updated with
the "2D" API (with shared memory if possible).
Signed-off-by: Marc-André Lureau
---
ui/dbus-listener.c | 98 ++
From: Marc-André Lureau
Enable D3D texture sharing when possible, and pass it to the texture
display callbacks.
Signed-off-by: Marc-André Lureau
---
meson.build | 6 ++
hw/display/virtio-gpu-virgl.c | 24 +++-
2 files changed, 25 insertions(+), 5 dele
From: Marc-André Lureau
Check if ANGLE is being used with D3D backend.
Signed-off-by: Marc-André Lureau
---
include/ui/egl-helpers.h | 1 +
ui/egl-helpers.c | 32 +++-
ui/trace-events | 3 +++
3 files changed, 35 insertions(+), 1 deletion(-)
diff
From: Marc-André Lureau
When the client implements "org.qemu.Display1.Listener.Win32.D3d11" and
we are running on ANGLE/win32, share the scanout texture with the peer
process, and draw with ScanoutTexture2d/UpdateTexture2d methods.
Signed-off-by: Marc-André Lureau
---
ui/dbus-listener.c | 29
From: Marc-André Lureau
eglMakeCurrent() returns 1/EGL_TRUE on success. This is not what the
callback expects, where 0 indicates success.
While at it, print the EGL error to ease debugging.
As with virgl_renderer_callbacks, the return value is now checked since
version >= 4:
https://gitlab.free
From: Marc-André Lureau
D-Bus on windows doesn't support fd-passing. Let's isolate the
fdlist-related code as a first step, before adding Windows support,
using another mechanism.
Signed-off-by: Marc-André Lureau
---
audio/dbusaudio.c | 7 +++
ui/dbus-chardev.c | 6 ++
ui/dbus-consol
From: Marc-André Lureau
The following patch will get the underlying D3D11 Texture2D from the
virgl renderer scanout. Pass it along to the texture scanout callbacks
as a priliminary step, to simplify review.
Signed-off-by: Marc-André Lureau
---
include/ui/console.h | 7 +--
includ
701 - 800 of 2718 matches
Mail list logo