[PULL 1/3] qapi: Reformat the dirty-limit migration doc comments

2023-08-02 Thread Markus Armbruster
From: Hyman Huang(黄勇) Reformat the dirty-limit migration doc comments to conform to current conventions as commit a937b6aa739 (qapi: Reformat doc comments to conform to current conventions). Signed-off-by: Hyman Huang(黄勇) Message-ID: <169073570563.19893.292836476110473348...@git.sr.ht>

Re: [PATCH QEMU v3 2/3] qapi: Craft the dirty-limit capability comment

2023-08-02 Thread Markus Armbruster
~hyman writes: > From: Hyman Huang(黄勇) > > Signed-off-by: Markus Armbruster > Signed-off-by: Hyman Huang(黄勇) > --- > qapi/migration.json | 13 + > 1 file changed, 5 insertions(+), 8 deletions(-) > > diff --git a/qapi/migration.json b/qapi/migration.json > index

Re: [PATCH QEMU v3 3/3] MAINTAINERS: Add section "Migration dirty limit and dirty page rate"

2023-08-02 Thread Markus Armbruster
~hyman writes: > From: Hyman Huang(黄勇) > > I've built interests in dirty limit and dirty page rate > features and also have been working on projects related > to this subsystem. > > Add a section to the MAINTAINERS file for migration > dirty limit and dirty page rate. > > Add myself as a

Re: [PATCH 0/5] linux-user: brk/mmap fixes

2023-08-02 Thread Akihiko Odaki
On 2023/08/01 19:43, Helge Deller wrote: On 8/1/23 06:49, Joel Stanley wrote: On Mon, 31 Jul 2023 at 18:24, Helge Deller wrote: As suggested, I've based my patches on top of yours and the tree can be pulled from: git pull https://github.com/hdeller/qemu-hppa/   brk-fixes-akihiko-2 My patches

Re: [PATCH QEMU v3 1/3] qapi: Reformat the dirty-limit migration doc comments

2023-08-02 Thread Markus Armbruster
Yong Huang writes: > On Tue, Aug 1, 2023 at 8:34 PM Markus Armbruster wrote: > >> ~hyman writes: >> >> > From: Hyman Huang(黄勇) >> > >> > Reformat the dirty-limit migration doc comments to conform >> > to current conventions as commit a937b6aa739 (qapi: Reformat >> > doc comments to conform to

[PATCH v2 1/6] linux-user: Unset MAP_FIXED_NOREPLACE for host

2023-08-02 Thread Akihiko Odaki
Passing MAP_FIXED_NOREPLACE to host will fail if the virtual address space is reserved with mmap. Replace it with MAP_FIXED in such a case. Signed-off-by: Akihiko Odaki --- linux-user/mmap.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index

[PATCH v2 2/6] linux-user: Fix MAP_FIXED_NOREPLACE on old kernels

2023-08-02 Thread Akihiko Odaki
The man page states: > Note that older kernels which do not recognize the MAP_FIXED_NOREPLACE > flag will typically (upon detecting a collision with a preexisting > mapping) fall back to a “non-MAP_FIXED” type of behavior: they will > return an address that is different from the requested address.

[PATCH v2 0/6] linux-user: brk/mmap fixes

2023-08-02 Thread Akihiko Odaki
linux-user was failing on M2 MacBook Air. Digging into the details, I found several bugs in brk and mmap so here are fixes. V1 -> V2: Added reserved_va check. (Richard Henderson) Fixed MAP_FIXED_NOREPLACE on old kernels. Akihiko Odaki (6): linux-user: Unset MAP_FIXED_NOREPLACE for host

[PATCH v2 6/6] linux-user: Do not align brk with host page size

2023-08-02 Thread Akihiko Odaki
do_brk() minimizes calls into target_mmap() by aligning the address with host page size, which is potentially larger than the target page size. However, the current implementation of this optimization has two bugs: - The start of brk is rounded up with the host page size while brk advertises an

[PATCH v2 4/6] linux-user: Use MAP_FIXED_NOREPLACE for do_brk()

2023-08-02 Thread Akihiko Odaki
MAP_FIXED_NOREPLACE can ensure the mapped address is fixed without concerning that the new mapping overwrites something else. Signed-off-by: Akihiko Odaki --- linux-user/syscall.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/linux-user/syscall.c

[PATCH v2 3/6] linux-user: Do not call get_errno() in do_brk()

2023-08-02 Thread Akihiko Odaki
Later the returned value is compared with -1, and negated errno is not expected. Fixes: 00faf08c95 ("linux-user: Don't use MAP_FIXED in do_brk()") Reviewed-by: Helge Deller Signed-off-by: Akihiko Odaki --- linux-user/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v2 5/6] linux-user: Do nothing if too small brk is specified

2023-08-02 Thread Akihiko Odaki
Linux 6.4.7 does nothing when a value smaller than the initial brk is specified. Fixes: 86f04735ac ("linux-user: Fix brk() to release pages") Reviewed-by: Helge Deller Signed-off-by: Akihiko Odaki --- linux-user/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2 0/9] gfxstream + rutabaga_gfx

2023-08-02 Thread Akihiko Odaki
On 2023/08/01 10:17, Gurchetan Singh wrote: Latest iteration of rutabaga_gfx + gfxstream patches. Previous versions available here: https://patchew.org/QEMU/20230711025649.708-1-gurchetansi...@chromium.org/ https://patchew.org/QEMU/20230421011223.718-1-gurchetansi...@chromium.org/ Changes

Re: [PATCH v2 9/9] docs/system: add basic virtio-gpu documentation

2023-08-02 Thread Akihiko Odaki
On 2023/08/01 10:17, Gurchetan Singh wrote: This adds basic documentation for virtio-gpu. Suggested-by: Akihiko Odaki Signed-off-by: Gurchetan Singh --- v2: - Incorporated suggestions by Akihiko Odaki - Listed the currently supported capset_names (Bernard)

Re: [PATCH v2 8/9] gfxstream + rutabaga: enable rutabaga

2023-08-02 Thread Akihiko Odaki
On 2023/08/01 10:17, Gurchetan Singh wrote: This change enables rutabaga to receive virtio-gpu-3d hypercalls when it is active. Signed-off-by: Gurchetan Singh --- hw/display/virtio-gpu-base.c | 3 ++- hw/display/virtio-gpu.c | 5 +++-- softmmu/qdev-monitor.c | 3 +++

Re: [PATCH v2 7/9] gfxstream + rutabaga: meson support

2023-08-02 Thread Akihiko Odaki
On 2023/08/01 10:17, Gurchetan Singh wrote: - Add meson detection of rutabaga_gfx - Build virtio-gpu-rutabaga.c + associated vga/pci files when present Signed-off-by: Gurchetan Singh --- hw/display/meson.build| 22 ++ meson.build | 7 +++

Re: [PATCH v2 6/9] gfxstream + rutabaga: add initial support for gfxstream

2023-08-02 Thread Akihiko Odaki
On 2023/08/01 10:17, Gurchetan Singh wrote: This adds initial support for gfxstream and cross-domain. Both features rely on virtio-gpu blob resources and context types, which are also implemented in this patch. gfxstream has a long and illustrious history in Android graphics

Re: [PATCH v6 0/8] linux-user: brk fixes

2023-08-02 Thread Helge Deller
* Joel Stanley : > On Tue, 1 Aug 2023 at 23:28, Helge Deller wrote: > > > > This patch series is a fix-up for some current problems > > regarding heap memory / brk handling in qemu which happens > > on some 32-bit platforms, e.g. problems loading static > > binaries. > > > > This series includes

Re: [PATCH v6 6/8] linux-user: Show heap address in /proc/pid/maps

2023-08-02 Thread Helge Deller
Hi Philiplle, On 8/2/23 07:41, Philippe Mathieu-Daudé wrote: On 2/8/23 01:27, Helge Deller wrote: .. Show 32- and 64-bit pointers with 8 digits and leading zeros (%08x/%08lx). For 64-bit we could use %16lx, but we mimic the Linux kernel, which shows even 64-bit addresses with %08lx. You are

<    1   2   3