Re: [PATCH 3/6] tests/9pfs: compare QIDs in fs_walk_none() test

2022-03-10 Thread Christian Schoenebeck
On Mittwoch, 9. März 2022 15:49:04 CET Christian Schoenebeck wrote: > Extend previously added fs_walk_none() test by comparing the QID > of the root fid with the QID of the cloned fid. They should be > equal. > > Signed-off-by: Christian Schoenebeck > --- > tests/qtest/

Re: [PATCH 2/6] tests/9pfs: Twalk with nwname=0

2022-03-10 Thread Christian Schoenebeck
On Mittwoch, 9. März 2022 14:24:24 CET Christian Schoenebeck wrote: > Send Twalk request with nwname=0. In this case no QIDs should > be returned by 9p server; this is equivalent to walking to dot. > > Signed-off-by: Christian Schoenebeck > --- > tests/qtest/vir

[PATCH 4/6] 9pfs: refactor 'name_idx' -> 'nvalid' in v9fs_walk()

2022-03-09 Thread Christian Schoenebeck
read. Signed-off-by: Christian Schoenebeck --- hw/9pfs/9p.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index a6d6b3f835..6cdc566866 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -1764,7 +1764,7 @@ static bool same_stat_id(const s

[PATCH 5/6] 9pfs: fix 'Twalk' to only send error if no component walked

2022-03-09 Thread Christian Schoenebeck
already existing variable 'err' only reflects the last error. Despite QIDs being delivered to client in a more relaxed way now, it is important to note though that fid still must remain uneffacted if any error occurred. Signed-off-by: Christian Schoenebeck --- hw/9pfs/9p.c | 29 ++

[PATCH 3/6] tests/9pfs: compare QIDs in fs_walk_none() test

2022-03-09 Thread Christian Schoenebeck
Extend previously added fs_walk_none() test by comparing the QID of the root fid with the QID of the cloned fid. They should be equal. Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 70 1 file changed, 70 insertions(+) diff --git a

[PATCH 2/6] tests/9pfs: Twalk with nwname=0

2022-03-09 Thread Christian Schoenebeck
Send Twalk request with nwname=0. In this case no QIDs should be returned by 9p server; this is equivalent to walking to dot. Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tests/qtest/virtio-9p

[PATCH 6/6] tests/9pfs: guard recent 'Twalk' behaviour fix

2022-03-09 Thread Christian Schoenebeck
he 1st path component is valid, whereas the 2nd path component transmitted to server does not exist. The expected behaviour is that 9p server would respond by sending a 'Rwalk' response with exactly 1 QID (instead of 'Rlerror' response). Signed-off-by: Christian S

[PATCH 1/6] tests/9pfs: walk to non-existent dir

2022-03-09 Thread Christian Schoenebeck
Expect ENOENT Rlerror response when trying to walk to a non-existent directory. Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c

[PATCH 0/6] 9pfs: fix 'Twalk' protocol violation

2022-03-09 Thread Christian Schoenebeck
ke patch 5 better readable. All the other patches are just additional test cases for guarding 'Twalk' behaviour. Christian Schoenebeck (6): tests/9pfs: walk to non-existent dir tests/9pfs: Twalk with nwname=0 tests/9pfs: compare QIDs in fs_walk_none() test 9pfs: refactor '

Re: MAINTAINERS: macOS host support (was: MAINTAINERS: take edk2)

2022-03-09 Thread Christian Schoenebeck
out having a co-maintained section, including > technical expertise from Akihiko / Joelle / Christian? (Cc'ed) > > Regards, Also CCing Cameron on this, just in case someone at Apple could spend some slices on QEMU macOS patches in general as well. As for my part: I try to help out more on the macOS front. As there's now macOS host support for 9p I have to start QEMU testing on macOS locally anyway. Too bad that macOS CI tests on Github are no longer available BTW. Best regards, Christian Schoenebeck

[PULL v2 12/19] 9pfs: move qemu_dirent_dup() from osdep -> 9p-util

2022-03-07 Thread Christian Schoenebeck
wco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Peter Maydell Message-Id: --- hw/9pfs/9p-util.h| 30 ++ include/qemu/osdep.h | 13 - util/osdep.c | 21 - 3 files changed, 30 insertions(+), 34 del

[PULL v2 10/19] 9p: darwin: Adjust assumption on virtio-9p-test

2022-03-07 Thread Christian Schoenebeck
] Signed-off-by: Will Cohen Reviewed-by: Greg Kurz Message-Id: <20220227223522.91937-11-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/vir

[PULL v2 13/19] 9pfs: drop Doxygen format from qemu_dirent_dup() API comment

2022-03-07 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so drop occurrences of "@c" which is Doxygen format for fixed-width text. Link: https://lore.kernel.org/qemu-devel/cafeaca89+enom6x19oef53kd2dwkhn5sn21va0d7yepjsa3...@mail.gmail.com/ Based-on: Signed-off-by: Christian S

[PULL v2 14/19] 9pfs/9p.h: convert Doxygen -> kerneldoc format

2022-03-07 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Based-on: Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <2b8f91de7bac3d3bc85d60eb08830a35a394be75.1646314856.git.qe

[PULL v2 17/19] 9pfs/9p-util.h: convert Doxygen -> kerneldoc format

2022-03-07 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: --- hw/9pfs/9p-util.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[PULL v2 11/19] 9p: darwin: meson: Allow VirtFS on Darwin

2022-03-07 Thread Christian Schoenebeck
937-12-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Acked-by: Christian Schoenebeck --- fsdev/meson.build | 1 + meson.build | 12 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/fsdev/meson.build b/fsdev/meson.build index adf57cc43e..b632b66348

[PULL v2 18/19] 9pfs/coth.h: drop Doxygen format on v9fs_co_run_in_worker()

2022-03-07 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so drop Doxygen format used on v9fs_co_run_in_worker() macro. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: --- hw/9pfs/coth.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw

[PULL v2 09/19] 9p: darwin: Implement compatibility for mknodat

2022-03-07 Thread Christian Schoenebeck
apply cleanly on top of the 2022-02-10 changes to 9pfs - Fix line over 90 characters formatting error] Signed-off-by: Will Cohen Message-Id: <20220227223522.91937-10-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- h

[PULL v2 08/19] 9p: darwin: Compatibility for f/l*xattr

2022-03-07 Thread Christian Schoenebeck
Message-Id: <20220227223522.91937-9-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Acked-by: Christian Schoenebeck --- hw/9pfs/9p-local.c | 12 hw/9pfs/9p-util.h | 17 + 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/hw/9pfs/9p-local.

[PULL v2 00/19] 9p queue 2022-03-07 (previous 2022-03-04)

2022-03-07 Thread Christian Schoenebeck
rt for Darwin (a.k.a. macOS) hosts. * Code cleanup (move qemu_dirent_dup() from osdep -> 9p-util). * API doc cleanup (convert Doxygen -> kerneldoc format). v1 -> v2: - Fix compiler warning "unused label &#x

[PULL v2 16/19] 9pfs/9p.c: convert Doxygen -> kerneldoc format

2022-03-07 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <4ece6ffa4465c271c6a7c42a3040f42780fcce87.1646314856.git.qemu_...@crudebyte.com> -

[PULL v2 15/19] 9pfs/codir.c: convert Doxygen -> kerneldoc format

2022-03-07 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: --- hw/9pfs/codir.c | 30 +++--- 1 file changed, 15 insertions

[PULL v2 05/19] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2022-03-07 Thread Christian Schoenebeck
ot;. ] Link: https://lore.kernel.org/qemu-devel/11201492.CjeqJxXfGd@silver/ Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p-util.h | 4 hw/9pfs/9p.c | 13 - 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/9pfs/9p-ut

[PULL v2 03/19] 9p: darwin: Handle struct stat(fs) differences

2022-03-07 Thread Christian Schoenebeck
: <20220227223522.91937-4-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p-proxy.c | 22 -- hw/9pfs/9p-synth.c | 2 ++ hw/9pfs/9p.c | 16 ++-- 3 files changed, 36 insertions(+), 4 deletions(-) diff --gi

[PULL v2 01/19] 9p: linux: Fix a couple Linux assumptions

2022-03-07 Thread Christian Schoenebeck
this patch series] Signed-off-by: Will Cohen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Greg Kurz Message-Id: <20220227223522.91937-2-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck --- fsdev/file-op-9p.h | 9 - hw/9pfs/9p-local.c | 2 ++ hw/9pfs/9p.c | 4 ++

[PULL v2 02/19] 9p: Rename 9p-util -> 9p-util-linux

2022-03-07 Thread Christian Schoenebeck
] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen Reviewed-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220227223522.91937-3-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck --- hw/9pfs/{9p-util.c => 9p-util-linux.c} | 2 +- hw/9pfs/me

[PULL v2 07/19] 9p: darwin: *xattr_nofollow implementations

2022-03-07 Thread Christian Schoenebeck
Message-Id: <20220227223522.91937-8-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Acked-by: Christian Schoenebeck --- hw/9pfs/9p-util-darwin.c | 64 hw/9pfs/meson.build | 1 + 2 files changed, 65 insertions(+) create mode 100644 hw/9

[PULL v2 19/19] fsdev/p9array.h: convert Doxygen -> kerneldoc format

2022-03-07 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <2e2d46a402560f155de322d95789ba107d728885.1646314856.git.qemu_...@crudebyte.

[PULL v2 04/19] 9p: darwin: Handle struct dirent differences

2022-03-07 Thread Christian Schoenebeck
: <20220227223522.91937-5-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p-local.c | 9 + hw/9pfs/9p-proxy.c | 16 +++- hw/9pfs/9p-synth.c | 4 hw/9pfs/9p-util.h | 16 hw/9pfs/9p.c | 7 +-- h

[PULL v2 06/19] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-03-07 Thread Christian Schoenebeck
error out for undefined hosts] Signed-off-by: Will Cohen Message-Id: <20220227223522.91937-7-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p.c | 2 +- hw/9pfs/9p.h | 18 ++ 2 files changed, 19 inse

Re: [PULL 00/19] 9p queue 2022-03-04

2022-03-07 Thread Christian Schoenebeck
On Sonntag, 6. März 2022 21:59:55 CET Will Cohen wrote: > On Fri, Mar 4, 2022 at 4:31 PM Will Cohen wrote: > > On Fri, Mar 4, 2022 at 3:16 PM Christian Schoenebeck < > > > > qemu_...@crudebyte.com> wrote: > >> On Freitag, 4. März 2022 19:42:18 CET Peter Mayd

Re: [PATCH] coreaudio: Always return 0 in handle_voice_change

2022-03-06 Thread Christian Schoenebeck
On Sonntag, 6. März 2022 11:54:00 CET Akihiko Odaki wrote: > On 2022/03/06 19:49, Christian Schoenebeck wrote: > > On Sonntag, 6. März 2022 07:39:49 CET Akihiko Odaki wrote: > >> MacOSX.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHar > >> dwa re.h

Re: [PATCH] coreaudio: Always return 0 in handle_voice_change

2022-03-06 Thread Christian Schoenebeck
), or is this a user visible improvement, i.e. does it fix a misbehaviour? In case of the latter, which misbehaviour did you encounter? Best regards, Christian Schoenebeck > > Signed-off-by: Akihiko Odaki > --- > audio/coreaudio.c | 6 ++ > 1 file changed, 2 insertions(+

Re: [PULL 00/19] 9p queue 2022-03-04

2022-03-04 Thread Christian Schoenebeck
On Freitag, 4. März 2022 19:42:18 CET Peter Maydell wrote: > On Fri, 4 Mar 2022 at 12:32, Christian Schoenebeck > > wrote: > > The following changes since commit 5959ef7d431ffd02db112209cf55e47b677256fd: > > Merge remote-tracking branch > > 'remotes/a

[PULL 06/19] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-03-04 Thread Christian Schoenebeck via
error out for undefined hosts] Signed-off-by: Will Cohen Message-Id: <20220227223522.91937-7-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p.c | 2 +- hw/9pfs/9p.h | 18 ++ 2 files changed, 19 inse

[PULL 03/19] 9p: darwin: Handle struct stat(fs) differences

2022-03-04 Thread Christian Schoenebeck
: <20220227223522.91937-4-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p-proxy.c | 22 -- hw/9pfs/9p-synth.c | 2 ++ hw/9pfs/9p.c | 16 ++-- 3 files changed, 36 insertions(+), 4 deletions(-) diff --gi

[PULL 12/19] 9pfs: move qemu_dirent_dup() from osdep -> 9p-util

2022-03-04 Thread Christian Schoenebeck
wco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Peter Maydell Message-Id: --- hw/9pfs/9p-util.h| 30 ++ include/qemu/osdep.h | 13 - util/osdep.c | 21 - 3 files changed, 30 insertions(+), 34 del

[PULL 10/19] 9p: darwin: Adjust assumption on virtio-9p-test

2022-03-04 Thread Christian Schoenebeck
] Signed-off-by: Will Cohen Reviewed-by: Greg Kurz Message-Id: <20220227223522.91937-11-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck --- tests/qtest/virtio-9p-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/vir

[PULL 05/19] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2022-03-04 Thread Christian Schoenebeck
er. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Adjust coding style] Signed-off-by: Will Cohen Message-Id: <20220227223522.91937-6-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoene

[PULL 14/19] 9pfs/9p.h: convert Doxygen -> kerneldoc format

2022-03-04 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Based-on: Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <2b8f91de7bac3d3bc85d60eb08830a35a394be75.1646314856.git.qe

[PULL 02/19] 9p: Rename 9p-util -> 9p-util-linux

2022-03-04 Thread Christian Schoenebeck
] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen Reviewed-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220227223522.91937-3-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck --- hw/9pfs/{9p-util.c => 9p-util-linux.c} | 2 +- hw/9pfs/me

[PULL 00/19] 9p queue 2022-03-04

2022-03-04 Thread Christian Schoenebeck
* Add support for Darwin (a.k.a. macOS) hosts. * Code cleanup (move qemu_dirent_dup() from osdep -> 9p-util). * API doc cleanup (convert Doxygen -> kerneldoc format). ---- Christian Schoenebeck (8): 9pfs: move qemu_dirent_dup

[PULL 09/19] 9p: darwin: Implement compatibility for mknodat

2022-03-04 Thread Christian Schoenebeck
apply cleanly on top of the 2022-02-10 changes to 9pfs - Fix line over 90 characters formatting error] Signed-off-by: Will Cohen Message-Id: <20220227223522.91937-10-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- h

[PULL 04/19] 9p: darwin: Handle struct dirent differences

2022-03-04 Thread Christian Schoenebeck
: <20220227223522.91937-5-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck --- hw/9pfs/9p-local.c | 9 + hw/9pfs/9p-proxy.c | 16 +++- hw/9pfs/9p-synth.c | 4 hw/9pfs/9p-util.h | 16 hw/9pfs/9p.c | 7 +-- h

[PULL 18/19] 9pfs/coth.h: drop Doxygen format on v9fs_co_run_in_worker()

2022-03-04 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so drop Doxygen format used on v9fs_co_run_in_worker() macro. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: --- hw/9pfs/coth.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw

[PULL 08/19] 9p: darwin: Compatibility for f/l*xattr

2022-03-04 Thread Christian Schoenebeck
Message-Id: <20220227223522.91937-9-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Acked-by: Christian Schoenebeck --- hw/9pfs/9p-local.c | 12 hw/9pfs/9p-util.h | 17 + 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/hw/9pfs/9p-local.

[PULL 11/19] 9p: darwin: meson: Allow VirtFS on Darwin

2022-03-04 Thread Christian Schoenebeck
937-12-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Acked-by: Christian Schoenebeck --- fsdev/meson.build | 1 + meson.build | 12 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/fsdev/meson.build b/fsdev/meson.build index adf57cc43e..b632b66348

[PULL 16/19] 9pfs/9p.c: convert Doxygen -> kerneldoc format

2022-03-04 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <4ece6ffa4465c271c6a7c42a3040f42780fcce87.1646314856.git.qemu_...@crudebyte.com> -

[PULL 19/19] fsdev/p9array.h: convert Doxygen -> kerneldoc format

2022-03-04 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: <2e2d46a402560f155de322d95789ba107d728885.1646314856.git.qemu_...@crudebyte.

[PULL 17/19] 9pfs/9p-util.h: convert Doxygen -> kerneldoc format

2022-03-04 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: --- hw/9pfs/9p-util.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[PULL 01/19] 9p: linux: Fix a couple Linux assumptions

2022-03-04 Thread Christian Schoenebeck
this patch series] Signed-off-by: Will Cohen Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Greg Kurz Message-Id: <20220227223522.91937-2-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck --- fsdev/file-op-9p.h | 9 - hw/9pfs/9p-local.c | 2 ++ hw/9pfs/9p.c | 4 ++

[PULL 15/19] 9pfs/codir.c: convert Doxygen -> kerneldoc format

2022-03-04 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: --- hw/9pfs/codir.c | 30 +++--- 1 file changed, 15 insertions

[PULL 07/19] 9p: darwin: *xattr_nofollow implementations

2022-03-04 Thread Christian Schoenebeck
Message-Id: <20220227223522.91937-8-wwco...@gmail.com> Signed-off-by: Christian Schoenebeck Acked-by: Christian Schoenebeck --- hw/9pfs/9p-util-darwin.c | 64 hw/9pfs/meson.build | 1 + 2 files changed, 65 insertions(+) create mode 100644 hw/9

[PULL 13/19] 9pfs: drop Doxygen format from qemu_dirent_dup() API comment

2022-03-04 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so drop occurrences of "@c" which is Doxygen format for fixed-width text. Link: https://lore.kernel.org/qemu-devel/cafeaca89+enom6x19oef53kd2dwkhn5sn21va0d7yepjsa3...@mail.gmail.com/ Based-on: Signed-off-by: Christian S

Re: [PATCH 0/6] 9pfs: convert Doxygen -> kerneldoc format

2022-03-04 Thread Christian Schoenebeck
On Freitag, 4. März 2022 08:39:36 CET Greg Kurz wrote: > On Thu, 3 Mar 2022 14:40:56 +0100 > > Christian Schoenebeck wrote: > > This patch set converts occurrences of API doc comments from Doxygen > > format > > into kerneldoc format. No behaviour change wha

[PATCH 6/6] fsdev/p9array.h: convert Doxygen -> kerneldoc format

2022-03-03 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck --- fsdev/p9array.h | 38 +- 1 file changed, 21 insertions(+), 17 deletions(-) diff

[PATCH 0/6] 9pfs: convert Doxygen -> kerneldoc format

2022-03-03 Thread Christian Schoenebeck
This patch set converts occurrences of API doc comments from Doxygen format into kerneldoc format. No behaviour change whatsoever. Christian Schoenebeck (6): 9pfs/9p.h: convert Doxygen -> kerneldoc format 9pfs/codir.c: convert Doxygen -> kerneldoc format 9pfs/9p.c: convert D

[PATCH 3/6] 9pfs/9p.c: convert Doxygen -> kerneldoc format

2022-03-03 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck --- hw/9pfs/9p.c | 62 +--- 1 file changed, 35 insertions(+), 27 deletions

[PATCH 5/6] 9pfs/coth.h: drop Doxygen format on v9fs_co_run_in_worker()

2022-03-03 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so drop Doxygen format used on v9fs_co_run_in_worker() macro. Signed-off-by: Christian Schoenebeck --- hw/9pfs/coth.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/9pfs/coth.h b/hw/9pfs/coth.h index

[PATCH 1/6] 9pfs/9p.h: convert Doxygen -> kerneldoc format

2022-03-03 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Based-on: Signed-off-by: Christian Schoenebeck --- hw/9pfs/9p.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/9pfs/9p.h b

[PATCH 2/6] 9pfs/codir.c: convert Doxygen -> kerneldoc format

2022-03-03 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck --- hw/9pfs/codir.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/hw

[PATCH 4/6] 9pfs/9p-util.h: convert Doxygen -> kerneldoc format

2022-03-03 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck --- hw/9pfs/9p-util.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/9pfs/9p-util.h b/hw

Re: [PATCH] 9pfs: drop Doxygen format from qemu_dirent_dup() API comment

2022-03-03 Thread Christian Schoenebeck
On Mittwoch, 2. März 2022 19:30:39 CET Christian Schoenebeck wrote: > API doc comments in QEMU are supposed to be in kerneldoc format, so drop > occurrences of "@c" which is Doxygen format for fixed-width text. > > Link: > https://lore.kernel

Re: [PATCH] 9pfs: move qemu_dirent_dup() from osdep -> 9p-util

2022-03-03 Thread Christian Schoenebeck
On Dienstag, 1. März 2022 21:33:49 CET Christian Schoenebeck wrote: > Function qemu_dirent_dup() is currently only used by 9pfs server, so move > it from project global header osdep.h to 9pfs specific header 9p-util.h. > > Link: > https://lore.kernel.org/qemu

Re: [PATCH] 9pfs: drop Doxygen format from qemu_dirent_dup() API comment

2022-03-03 Thread Christian Schoenebeck
On Donnerstag, 3. März 2022 10:53:32 CET Greg Kurz wrote: > On Wed, 2 Mar 2022 19:30:39 +0100 > > Christian Schoenebeck wrote: > > API doc comments in QEMU are supposed to be in kerneldoc format, so drop > > occurrences of "@c" which is Doxygen format for

[PATCH] 9pfs: drop Doxygen format from qemu_dirent_dup() API comment

2022-03-02 Thread Christian Schoenebeck
API doc comments in QEMU are supposed to be in kerneldoc format, so drop occurrences of "@c" which is Doxygen format for fixed-width text. Link: https://lore.kernel.org/qemu-devel/cafeaca89+enom6x19oef53kd2dwkhn5sn21va0d7yepjsa3...@mail.gmail.com/ Based-on: Signed-off-by: Christian S

Re: [PATCH v9 00/11] 9p: Add support for darwin

2022-03-02 Thread Christian Schoenebeck
On Dienstag, 1. März 2022 21:09:27 CET Will Cohen wrote: > On Tue, Mar 1, 2022 at 2:25 PM Christian Schoenebeck > > wrote: > > On Sonntag, 27. Februar 2022 23:35:11 CET Will Cohen wrote: > > > This is a followup to > > > https://lists.gnu.org/archive/html

Re: [PATCH v3 06/15] jackaudio: use more jack audio buffers

2022-03-02 Thread Christian Schoenebeck
data for a longer period of time as with a smaller buffer > and more audio data in the mixing engine buffer that they can't > access. > > Signed-off-by: Volker Rümelin > --- I actually reviewed this patch already, but OK, then a 2nd time: Reviewed-by: Christian Schoenebeck Be

Re: [PATCH] 9pfs: move qemu_dirent_dup() from osdep -> 9p-util

2022-03-02 Thread Christian Schoenebeck
On Dienstag, 1. März 2022 22:59:43 CET Peter Maydell wrote: > On Tue, 1 Mar 2022 at 20:47, Christian Schoenebeck > > wrote: > > Function qemu_dirent_dup() is currently only used by 9pfs server, so move > > it from project global header osdep.h to 9pfs specific header 9p-

[PATCH] 9pfs: move qemu_dirent_dup() from osdep -> 9p-util

2022-03-01 Thread Christian Schoenebeck
wco...@gmail.com> Signed-off-by: Christian Schoenebeck --- hw/9pfs/9p-util.h| 30 ++ include/qemu/osdep.h | 13 - util/osdep.c | 21 - 3 files changed, 30 insertions(+), 34 deletions(-) diff --git a/hw/9pfs/9p-util.h b/hw/9

Re: [PATCH v9 00/11] 9p: Add support for darwin

2022-03-01 Thread Christian Schoenebeck
d, 292 insertions(+), 26 deletions(-) > create mode 100644 hw/9pfs/9p-util-darwin.c > rename hw/9pfs/{9p-util.c => 9p-util-linux.c} (90%) Queued on 9p.next: https://github.com/cschoenebeck/qemu/commits/9p.next Thanks! Best regards, Christian Schoenebeck

Re: [PATCH v9 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-28 Thread Christian Schoenebeck
On Montag, 28. Februar 2022 15:06:07 CET Peter Maydell wrote: > On Mon, 28 Feb 2022 at 13:58, Christian Schoenebeck > > wrote: > > On Montag, 28. Februar 2022 14:36:30 CET Thomas Huth wrote: > > > For lines less than 90 characters, it's just a warning, and I thin

Re: [PATCH v9 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-28 Thread Christian Schoenebeck
On Montag, 28. Februar 2022 14:36:30 CET Thomas Huth wrote: > On 28/02/2022 14.20, Christian Schoenebeck wrote: > > On Sonntag, 27. Februar 2022 23:35:20 CET Will Cohen wrote: > >> From: Keno Fischer > >> > >> Darwin does not support mknodat. However, to a

Re: [PATCH v9 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-28 Thread Christian Schoenebeck
version > of macOS"); You took the code style error message a bit too literal; this line is still too long: WARNING: line over 80 characters #199: FILE: hw/9pfs/9p-util-darwin.c:81: +error_report_once("pthread_fchdir_np() not available on this version of macOS"); t

Re: [PATCH v9 11/11] 9p: darwin: meson: Allow VirtFS on Darwin

2022-02-28 Thread Christian Schoenebeck
to master] > Signed-off-by: Will Cohen > Reviewed-by: Paolo Bonzini Paolo, could you have a look at this patch, please? It has changed quite a bit since your review. Best regards, Christian Schoenebeck > [Will Cohen: - Add check for pthread_fchdir_np to virtfs > - Add

Re: [PATCH] coreaudio: Notify error in coreaudio_init_out

2022-02-26 Thread Christian Schoenebeck
On Samstag, 26. Februar 2022 11:18:44 CET Akihiko Odaki wrote: > On 2022/02/26 19:16, Christian Schoenebeck wrote: > > On Samstag, 26. Februar 2022 11:02:48 CET Akihiko Odaki wrote: > >> Signed-off-by: Akihiko Odaki > >> --- > >> > >> audi

Re: [PATCH] coreaudio: Notify error in coreaudio_init_out

2022-02-26 Thread Christian Schoenebeck
t; +return -1; > } > > return 0; Is this a pure theoretical fix, or does it actually fix an actually encountered misbehaviour? I don't see any explanation in the commit log. I mean the branch here is about removing a listener only. Best regards, Christian Schoenebeck

Re: [PATCH v8 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-25 Thread Christian Schoenebeck
On Freitag, 25. Februar 2022 17:38:51 CET Will Cohen wrote: > On Fri, Feb 25, 2022 at 11:31 AM Christian Schoenebeck < > > qemu_...@crudebyte.com> wrote: > > On Freitag, 25. Februar 2022 15:00:40 CET Will Cohen wrote: > > > On Tue, Feb 22, 2022 at 9:27 AM Christian S

Re: [PATCH v8 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-25 Thread Christian Schoenebeck
On Freitag, 25. Februar 2022 15:00:40 CET Will Cohen wrote: > On Tue, Feb 22, 2022 at 9:27 AM Christian Schoenebeck < > > qemu_...@crudebyte.com> wrote: > > On Sonntag, 20. Februar 2022 17:50:54 CET Will Cohen wrote: > > > From: Keno Fischer > > > > &g

Re: [PATCH v8 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-22 Thread Christian Schoenebeck
On Sonntag, 20. Februar 2022 17:50:54 CET Will Cohen wrote: > From: Keno Fischer > > Darwin does not support mknodat. However, to avoid race conditions > with later setting the permissions, we must avoid using mknod on > the full path instead. We could try to fchdir, but that would cause > proble

Re: [PULL v2 5/5] 9pfs: Fix segfault in do_readdir_many caused by struct dirent overread

2022-02-22 Thread Christian Schoenebeck
On Dienstag, 22. Februar 2022 14:21:52 CET Peter Maydell wrote: > On Thu, 17 Feb 2022 at 16:43, Christian Schoenebeck > > wrote: > > diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h > > index d1660d67fa..ce12f64853 100644 > > --- a/include/qemu/osdep.h >

Re: [PATCH v8 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-20 Thread Christian Schoenebeck
d with Apple for implementing mknodat: > + * rdar://FB9862426 (https://openradar.appspot.com/FB9862426) > + */ > +#if defined CONFIG_DARWIN && defined CONFIG_PTHREAD_FCHDIR_NP > + > +int qemu_mknodat(int dirfd, const char *filename, mode_t mode, dev_t dev) > +{ > +

Re: [PATCH v8 04/11] 9p: darwin: Handle struct dirent differences

2022-02-20 Thread Christian Schoenebeck
low(int dirfd, const char > *filename, const char *name); > > #endif ... ^- this is the end of file #endif, so qemu_dirent_off() should be above that #endif, and ... > + > + > +/** > + * Darwin has d_seekoff, which appears to function similarly to d_off. > + * However, it d

Re: [PATCH v6 11/15] ui/cocoa: Add Services menu

2022-02-18 Thread Christian Schoenebeck
e it completely to app developers how their app menus looks like exactly, instead of Apple injecting something there without being asked. There are much bigger oddities in macOS's menu design than that IMO. Best regards, Christian Schoenebeck

Re: [PATCH v7 00/11] 9p: Add support for darwin

2022-02-18 Thread Christian Schoenebeck
something. Will, one more thing though: I just sent a PR with one particular patch that I would ask you to test in conjunction with this series: https://github.com/cschoenebeck/qemu/commit/e64e27d5cb103b7764f1a05b6eda7e7fedd517c5 You might simply wait for the PR being merged (maybe monday?) and then rebase this series to master and test if this patch is not breaking anything for macOS. Theoretically the new qemu_dirent_dup() function should fallback on macOS to its portable branch, but it should be tested before merging this series, just to be sure. Best regards, Christian Schoenebeck

[PULL v2 0/5] 9p queue (previous 2022-02-10)

2022-02-17 Thread Christian Schoenebeck
x27; tests. * Tests: Third patch fixes a memory leak. * Tests: The remaining two patches are code cleanup. ---- Christian Schoenebeck (2): tests/9pfs: use g_autofree where possible tests/9pfs: fix mkdir() being called

[PULL v2 1/5] tests/9pfs: use g_autofree where possible

2022-02-17 Thread Christian Schoenebeck
Signed-off-by: Christian Schoenebeck Reviewed-by: Greg Kurz Message-Id: --- tests/qtest/virtio-9p-test.c | 90 +++- 1 file changed, 27 insertions(+), 63 deletions(-) diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c index 41fed41de1

[PULL v2 3/5] tests/9pfs: Fix leak of local_test_path

2022-02-17 Thread Christian Schoenebeck
: Signed-off-by: Greg Kurz Message-Id: <20220201151508.190035-2-gr...@kaod.org> Reviewed-by: Christian Schoenebeck Signed-off-by: Christian Schoenebeck --- tests/qtest/libqos/virtio-9p.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tests/qtest/libqos/virtio-9p.c b/tests/qtest/

[PULL v2 4/5] tests/9pfs: Use g_autofree and g_autoptr where possible

2022-02-17 Thread Christian Schoenebeck
From: Greg Kurz It is recommended to use g_autofree or g_autoptr as it reduces the odds of introducing memory leaks in future changes. Signed-off-by: Greg Kurz Message-Id: <20220201151508.190035-3-gr...@kaod.org> Reviewed-by: Christian Schoenebeck Signed-off-by: Christian Schoe

[PULL v2 2/5] tests/9pfs: fix mkdir() being called twice

2022-02-17 Thread Christian Schoenebeck
me systems. Signed-off-by: Christian Schoenebeck Fixes: 136b7af2 (tests/9pfs: fix test dir for parallel tests) Reported-by: Daniel P. Berrangé Resolves: https://gitlab.com/qemu-project/qemu/-/issues/832 Reviewed-by: Daniel P. Berrangé Reviewed-by: Greg Kurz Message-Id: --- tests/qtest/libqos/virtio

[PULL v2 5/5] 9pfs: Fix segfault in do_readdir_many caused by struct dirent overread

2022-02-17 Thread Christian Schoenebeck
t' cloning. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/841 Cc: qemu-sta...@nongnu.org Co-authored-by: Christian Schoenebeck Reviewed-by: Dmitry V. Levin Signed-off-by: Vitaly Chikunov Tested-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck Acked-by: Greg Kurz Te

Re: [PATCH v5] 9pfs: Fix segfault in do_readdir_many caused by struct dirent overread

2022-02-17 Thread Christian Schoenebeck
/a + > 0x0) > > While fixing this, provide a helper for any future `struct dirent' cloning. > > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/841 > Cc: qemu-sta...@nongnu.org > Co-authored-by: Christian Schoenebeck > Reviewed-by: Dmitry V. Levin &g

Re: [PATCH v5] 9pfs: Fix segfault in do_readdir_many caused by struct dirent overread

2022-02-17 Thread Christian Schoenebeck
/a + > 0x0) > > While fixing this, provide a helper for any future `struct dirent' cloning. > > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/841 > Cc: qemu-sta...@nongnu.org > Co-authored-by: Christian Schoenebeck > Reviewed-by: Dmitry V. Levin > Signed-

Re: [PULL 0/5] 9p queue 2022-02-10

2022-02-16 Thread Christian Schoenebeck
On Mittwoch, 16. Februar 2022 17:09:56 CET Vitaly Chikunov wrote: > Christian, > > On Wed, Feb 16, 2022 at 11:30:12AM +0100, Christian Schoenebeck wrote: > > On Dienstag, 15. Februar 2022 08:01:37 CET Greg Kurz wrote: > > > On Mon, 14 Feb 2022 17:43:51 +0300 > > &

Re: [PULL 0/5] 9p queue 2022-02-10

2022-02-16 Thread Christian Schoenebeck
l send one this evening to bring this issue forward, because it is blocking my queue. Best regards, Christian Schoenebeck

Re: [PATCH v6 00/11] 9p: Add support for darwin

2022-02-16 Thread Christian Schoenebeck
that should be prepared for this patch set to hopefully be able > to target 7.0? > > Will That's in three weeks. I'm optimistic that we get this merged before the QEMU 7.0 soft freeze deadline. Best regards, Christian Schoenebeck

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Christian Schoenebeck
On Dienstag, 15. Februar 2022 14:45:00 CET Peter Maydell wrote: > On Tue, 15 Feb 2022 at 13:18, Christian Schoenebeck > > wrote: > > On Dienstag, 15. Februar 2022 13:06:25 CET Philippe Mathieu-Daudé via wrote: > > > We globally ignore the 'initializer overrides&#x

Re: [RFC PATCH 3/4] audio: Rename coreaudio extension to use Objective-C compiler

2022-02-15 Thread Christian Schoenebeck
eC/WorkingwithBlocks/WorkingwithBlocks.html > > Signed-off-by: Philippe Mathieu-Daudé > --- We already had a similar discussion before [1] whether to use .c and add required compiler flags or using .m. I find this solution more appropriate. Reviewed-by: Christian Schoenebeck [1]

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Christian Schoenebeck
See also: https://stackoverflow.com/questions/40920714/is-full-followed-by-partial-initialization-of-a-subobject-undefined-behavior So I have my doubts whether this warning suppression should be used in QEMU at all. Best regards, Christian Schoenebeck

Re: [PULL 0/5] 9p queue 2022-02-10

2022-02-14 Thread Christian Schoenebeck
On Montag, 14. Februar 2022 15:43:51 CET Vitaly Chikunov wrote: > Christian, > > On Mon, Feb 14, 2022 at 12:44:48PM +0100, Christian Schoenebeck wrote: > > On Montag, 14. Februar 2022 11:36:53 CET Greg Kurz wrote: > > > The synth backend should be fixed to honor d_recl

<    1   2   3   4   5   6   7   8   9   10   >