[PATCH] i386: removes microvm from default build since microvm doesn't support Xen accel.

2024-06-02 Thread Will Gyda
i386: removes microvm from default build since microvm doesn't support Xen accel. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2294 Signed-off-by: Will Gyda --- configs/devices/i386-softmmu/default.mak | 1 - hw/i386/Kconfig | 2 ++ 2 files chang

[PATCH] Issue #2294 | Machine microvm doesn't run under Xen accel for x86_64

2024-05-28 Thread Will Gyda
Issue #2294: Machine microvm doesn't run under Xen accel for qemu-system-x86_64. Solution: microvm is now not build if only Xen is available. Signed-off-by: Will Gyda --- configs/devices/i386-softmmu/default.mak | 2 +- hw/i386/Kconfig | 2 ++ 2 files chang

[PATCH] migration/ram.c: API Conversion qemu_mutex_lock(), and qemu_mutex_unlock() to WITH_QEMU_LOCK_GUARD macro

2024-04-25 Thread Will Gyda
migration/ram.c: API Conversion qemu_mutex_lock(), and qemu_mutex_unlock() to WITH_QEMU_LOCK_GUARD macro Signed-off-by: Will Gyda --- migration/ram.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index a975c5af16..50df1e9cd2

Re: [PATCH v2 2/5] 9pfs: fix qemu_mknodat(S_IFSOCK) on macOS

2022-04-27 Thread Will Cohen
ed in 9pfs, we need to > > > > > design this function to be tolerant with transient states as well. > The > > > > > use of chmod() is not safe when we consider about transient > states. A > > > > > malicious actor may replace the file at the path with a

Re: [PATCH 2/5] 9pfs: fix qemu_mknodat(S_IFSOCK) on macOS

2022-04-19 Thread Will Cohen
dev) > if (pthread_fchdir_np(dirfd) < 0) { > return -1; > } > -err = mknod(filename, mode, dev); > +if (S_ISSOCK(mode)) { > +err = create_socket_file_at_cwd(filename, mode); > +} else { > +err = mknod(filename, mode, dev); > +} > preserved_errno = errno; > /* Stop using the thread-local cwd */ > pthread_fchdir_np(-1); > -- > 2.32.0 (Apple Git-132) > Reviewed-by: Will Cohen

Re: [PATCH 1/5] 9pfs: fix qemu_mknodat(S_IFREG) on macOS

2022-04-19 Thread Will Cohen
, mode); > +} > if (!pthread_fchdir_np) { > error_report_once("pthread_fchdir_np() not available on this > version of macOS"); > return -ENOTSUP; > -- > 2.32.0 (Apple Git-132) > Reviewed-by: Will Cohen > >

Re: [PATCH v2] 9p: move P9_XATTR_SIZE_MAX from 9p.h to 9p.c

2022-03-31 Thread Will Cohen
On Thu, Mar 31, 2022 at 4:00 PM Peter Maydell wrote: > On Thu, 31 Mar 2022 at 19:27, Will Cohen wrote: > > > > The patch set adding 9p functionality to darwin introduced an issue > > where limits.h, which defines XATTR_SIZE_MAX, is included in 9p.c, > > though the re

[PATCH v2] 9p: move P9_XATTR_SIZE_MAX from 9p.h to 9p.c

2022-03-31 Thread Will Cohen
in 9p.c. Additionally, this commit moves the location of the system headers include in 9p.c to occur before the project headers. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/950 Fixes: 38d7fd68b0 ("9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX") Signed-off-by: Will C

Re: [PATCH] 9p: move limits.h include from 9p.c to 9p.h

2022-03-31 Thread Will Cohen
On Thu, Mar 31, 2022 at 11:34 AM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Donnerstag, 31. März 2022 15:19:24 CEST Will Cohen wrote: > > On Thu, Mar 31, 2022 at 7:07 AM Christian Schoenebeck < > > > > qemu_...@crudebyte.com> wrote: > >

Re: [PATCH] 9p: move limits.h include from 9p.c to 9p.h

2022-03-31 Thread Will Cohen
On Thu, Mar 31, 2022 at 7:07 AM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Donnerstag, 31. März 2022 10:03:35 CEST Peter Maydell wrote: > > On Wed, 30 Mar 2022 at 22:55, Will Cohen wrote: > > > On Wed, Mar 30, 2022 at 5:31 PM Peter Maydell < > pet

Re: [PATCH] 9p: move limits.h include from 9p.c to 9p.h

2022-03-30 Thread Will Cohen
On Wed, Mar 30, 2022 at 5:31 PM Peter Maydell wrote: > On Wed, 30 Mar 2022 at 19:26, Will Cohen wrote: > > > > As noted by https://gitlab.com/qemu-project/qemu/-/issues/950, within > > the patch set adding 9p functionality to darwin, the commit > > 38d7fd68b0c87

Re: [PATCH] 9p: move limits.h include from 9p.c to 9p.h

2022-03-30 Thread Will Cohen
On Wed, Mar 30, 2022 at 4:24 PM Philippe Mathieu-Daudé < philippe.mathieu.da...@gmail.com> wrote: > Hi, > > On 30/3/22 20:19, Will Cohen wrote: > > As noted by https://gitlab.com/qemu-project/qemu/-/issues/950, within > > the patch set adding 9p function

[PATCH] 9p: move limits.h include from 9p.c to 9p.h

2022-03-30 Thread Will Cohen
in 9p.h. This commit fixes that issue by moving the include to 9p.h. Signed-off-by: Will Cohen --- hw/9pfs/9p.c | 5 - hw/9pfs/9p.h | 5 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index dcaa602d4c..59c531ed47 100644 --- a/hw/9pfs/9p.c

Re: [PATCH v7 21/22] ui/cocoa: add option to swap Option and Command

2022-03-07 Thread Will Cohen
!!(modifiers & NSEventModifierFlagCommand)) { > -[self toggleKey:Q_KEY_CODE_META_R]; > +if (swap_opt_cmd) { > +[self toggleKey:Q_KEY_CODE_ALT_R]; > +} else { > +[self toggleKey:Q_KEY_CODE_META_R]; > +} > } > break; > } > @@ -2134,6 +2160,9 @@ static void cocoa_display_init(DisplayState *ds, > DisplayOptions *opts) > if (opts->has_show_cursor && opts->show_cursor) { > cursor_hide = 0; > } > +if (opts->u.cocoa.has_swap_opt_cmd) { > +swap_opt_cmd = opts->u.cocoa.swap_opt_cmd; > +} > > if (opts->u.cocoa.has_left_command_key && > !opts->u.cocoa.left_command_key) { > left_command_key_enabled = 0; > -- > 2.34.1 > > Reviewed-by: Will Cohen

Re: [PATCH v7 20/22] ui/cocoa: capture all keys and combos when mouse is grabbed

2022-03-07 Thread Will Cohen
lease(eventsTap); > +} > + > [super dealloc]; > } > > @@ -655,6 +675,36 @@ QemuCocoaView *cocoaView; > } > } > > +- (void) setFullGrab:(id)sender > +{ > +COCOA_DEBUG("QemuCocoaView: setFullGrab\n"); > + > +CGEventM

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

2022-03-06 Thread Will Cohen
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 Maydell wrote: >> > On Fri, 4 Mar 2022 at 12:32, Christian Schoenebec

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

2022-03-04 Thread Will Cohen
til.h b/hw/9pfs/9p-util.h > index cfa7af43c5..97e681e167 100644 > --- a/hw/9pfs/9p-util.h > +++ b/hw/9pfs/9p-util.h > @@ -54,7 +54,9 @@ static inline int openat_file(int dirfd, const char > *name, > int flags, > { > int fd, serrno, ret; > > +#ifndef CONFIG_DARWI

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

2022-03-01 Thread Will Cohen
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/qemu-devel/2022-02/msg04391.html, > adding > > 9p server support for Darwin. > &g

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

2022-02-28 Thread Will Cohen
On Mon, Feb 28, 2022 at 8:20 AM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Sonntag, 27. Februar 2022 23:35:20 CET Will Cohen wrote: > > From: Keno Fischer > > > > Darwin does not support mknodat. However, to avoid race conditions > > with later

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

2022-02-28 Thread Will Cohen
On Mon, Feb 28, 2022 at 8:11 AM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Sonntag, 27. Februar 2022 23:35:22 CET Will Cohen wrote: > > From: Keno Fischer > > > > To allow VirtFS on darwin, we need to check that pthread_fchdir_np is > > availab

[PATCH v9 10/11] 9p: darwin: Adjust assumption on virtio-9p-test

2022-02-27 Thread Will Cohen
[Will Cohen: - Add explanation of patch and description of pre-patch test failure] Signed-off-by: Will Cohen Acked-by: Thomas Huth [Will Cohen: - Move this patch before 9p: darwin: meson patch to avoid qtest breakage during bisecting] Signed-off-by: Will

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

2022-02-27 Thread Will Cohen
Roitzsch [Will Cohen: - Adjust coding style - Replace clang references with gcc - Note radar filed with Apple for missing syscall - Replace direct syscall with pthread_fchdir_np and adjust patch notes accordingly - Declare

[PATCH v9 07/11] 9p: darwin: *xattr_nofollow implementations

2022-02-27 Thread Will Cohen
From: Keno Fischer This implements the darwin equivalent of the functions that were moved to 9p-util(-linux) earlier in this series in the new 9p-util-darwin file. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

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

2022-02-27 Thread Will Cohen
this functionality could be implemented later on. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Rebase to master] Signed-off-by: Will Cohen Reviewed-by: Paolo Bonzini [Will Cohen: - Add check for pthread_fchdir_np to virtfs

[PATCH v9 06/11] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-02-27 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch Because XATTR_SIZE_MAX is not defined on Darwin, create a cross-platform P9_XATTR_SIZE_MAX instead. [Will Cohen: - Adjust coding style - Lower XATTR_SIZE_MAX to 64k - Add explanatory

[PATCH v9 02/11] 9p: Rename 9p-util -> 9p-util-linux

2022-02-27 Thread Will Cohen
From: Keno Fischer The current file only has the Linux versions of these functions. Rename the file accordingly and update the Makefile to only build it on Linux. A Darwin version of these will follow later in the series. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS

[PATCH v9 05/11] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2022-02-27 Thread Will Cohen
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 --- hw/9pfs/9p-util.h | 2 ++ hw/9pfs/9p.c | 13 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --g

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

2022-02-27 Thread Will Cohen
Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Adjust to pass testing - Ensure that d_seekoff is filled using telldir on darwin, and create qemu_dirent_off helper to decide which to access] [Fabian Franz

[PATCH v9 08/11] 9p: darwin: Compatibility for f/l*xattr

2022-02-27 Thread Will Cohen
From: Keno Fischer On darwin `fgetxattr` takes two extra optional arguments, and the l* variants are not defined (in favor of an extra flag to the regular variants. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

[PATCH v9 03/11] 9p: darwin: Handle struct stat(fs) differences

2022-02-27 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch [Will Cohen: - Note lack of f_namelen and f_frsize on Darwin - Ensure that tv_sec and tv_nsec are both initialized for Darwin and non-Darwin] Signed-off-by: Will Cohen --- hw/9pfs/9p

[PATCH v9 01/11] 9p: linux: Fix a couple Linux assumptions

2022-02-27 Thread Will Cohen
ly be an additional optimization later. [Will Cohen: - Fix headers for Alpine - Integrate statfs.h back into file-op-9p.h - Remove superfluous header guards from file-opt-9p - Add note about virtfs-proxy-helper being disabled on non-Linux for

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

2022-02-27 Thread Will Cohen
tFS on Darwin Will Cohen (1): 9p: darwin: Adjust assumption on virtio-9p-test fsdev/file-op-9p.h | 9 ++- fsdev/meson.build | 1 + hw/9pfs/9p-local.c | 27 +-- hw/9pfs/9p-proxy.c | 38 +- hw/9pfs/9p-s

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

2022-02-25 Thread Will Cohen
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 Schoenebeck < > > > > qemu_...@crudebyte.com> wrote: > > >

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

2022-02-25 Thread Will Cohen
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 > > > > Darwin does not support mknodat. However, to avoid race conditions > > with later

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

2022-02-20 Thread Will Cohen
Apologies — I tested on Mac but should have done Linux too. Will revise. On Sun, Feb 20, 2022 at 4:28 PM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Sonntag, 20. Februar 2022 17:50:49 CET Will Cohen wrote: > > From: Keno Fischer > > > > On darw

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

2022-02-20 Thread Will Cohen
this functionality could be implemented later on. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Rebase to master] Signed-off-by: Will Cohen Reviewed-by: Paolo Bonzini [Will Cohen: - Add check for pthread_fchdir_np to virtfs

[PATCH v8 10/11] 9p: darwin: Adjust assumption on virtio-9p-test

2022-02-20 Thread Will Cohen
[Will Cohen: - Add explanation of patch and description of pre-patch test failure] Signed-off-by: Will Cohen Acked-by: Thomas Huth [Will Cohen: - Move this patch before 9p: darwin: meson patch to avoid qtest breakage during bisecting] Signed-off-by: Will

[PATCH v8 07/11] 9p: darwin: *xattr_nofollow implementations

2022-02-20 Thread Will Cohen
From: Keno Fischer This implements the darwin equivalent of the functions that were moved to 9p-util(-linux) earlier in this series in the new 9p-util-darwin file. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

[PATCH v8 08/11] 9p: darwin: Compatibility for f/l*xattr

2022-02-20 Thread Will Cohen
From: Keno Fischer On darwin `fgetxattr` takes two extra optional arguments, and the l* variants are not defined (in favor of an extra flag to the regular variants. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

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

2022-02-20 Thread Will Cohen
Roitzsch [Will Cohen: - Adjust coding style - Replace clang references with gcc - Note radar filed with Apple for missing syscall - Replace direct syscall with pthread_fchdir_np and adjust patch notes accordingly - Move qemu_mknodat

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

2022-02-20 Thread Will Cohen
Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Adjust to pass testing - Ensure that d_seekoff is filled using telldir on darwin, and create qemu_dirent_off helper to decide which to access] [Fabian Franz

[PATCH v8 01/11] 9p: linux: Fix a couple Linux assumptions

2022-02-20 Thread Will Cohen
ly be an additional optimization later. [Will Cohen: - Fix headers for Alpine - Integrate statfs.h back into file-op-9p.h - Remove superfluous header guards from file-opt-9p - Add note about virtfs-proxy-helper being disabled on non-Linux for

[PATCH v8 06/11] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-02-20 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch Because XATTR_SIZE_MAX is not defined on Darwin, create a cross-platform P9_XATTR_SIZE_MAX instead. [Will Cohen: - Adjust coding style - Lower XATTR_SIZE_MAX to 64k - Add explanatory

[PATCH v8 03/11] 9p: darwin: Handle struct stat(fs) differences

2022-02-20 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch [Will Cohen: - Note lack of f_namelen and f_frsize on Darwin - Ensure that tv_sec and tv_nsec are both initialized for Darwin and non-Darwin] Signed-off-by: Will Cohen --- hw/9pfs/9p

[PATCH v8 02/11] 9p: Rename 9p-util -> 9p-util-linux

2022-02-20 Thread Will Cohen
From: Keno Fischer The current file only has the Linux versions of these functions. Rename the file accordingly and update the Makefile to only build it on Linux. A Darwin version of these will follow later in the series. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS

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

2022-02-20 Thread Will Cohen
darwin: Implement compatibility for mknodat 9p: darwin: meson: Allow VirtFS on Darwin Will Cohen (1): 9p: darwin: Adjust assumption on virtio-9p-test fsdev/file-op-9p.h | 9 +++- fsdev/meson.build | 1 + hw/9pfs/9p-local.c | 27 -

[PATCH v8 05/11] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2022-02-20 Thread Will Cohen
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 --- hw/9pfs/9p-util.h | 2 ++ hw/9pfs/9p.c | 13 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --g

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

2022-02-18 Thread Will Cohen
Excellent, thanks so much for the update. I'll wait till the other 9p pull gets integrated, then rebase and test! On Fri, Feb 18, 2022 at 12:45 PM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Freitag, 18. Februar 2022 18:04:24 CET Will Cohen wrote: > > On Tue,

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

2022-02-18 Thread Will Cohen
On Tue, Feb 15, 2022 at 2:04 PM Will Cohen wrote: > This is a followup to > https://lists.gnu.org/archive/html/qemu-devel/2022-02/msg02313.html, > adding 9p server support for Darwin. > > Since v6, the following changes have been made to the following patches: > > P

[PATCH v7 10/11] 9p: darwin: Adjust assumption on virtio-9p-test

2022-02-15 Thread Will Cohen
[Will Cohen: - Add explanation of patch and description of pre-patch test failure] Signed-off-by: Will Cohen Acked-by: Thomas Huth [Will Cohen: - Move this patch before 9p: darwin: meson patch to avoid qtest breakage during bisecting] Signed-off-by: Will

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

2022-02-15 Thread Will Cohen
Roitzsch [Will Cohen: - Adjust coding style - Replace clang references with gcc - Note radar filed with Apple for missing syscall - Replace direct syscall with pthread_fchdir_np and adjust patch notes accordingly - Move qemu_mknodat

[PATCH v7 06/11] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-02-15 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch Because XATTR_SIZE_MAX is not defined on Darwin, create a cross-platform P9_XATTR_SIZE_MAX instead. [Will Cohen: - Adjust coding style - Lower XATTR_SIZE_MAX to 64k - Add explanatory

[PATCH v7 02/11] 9p: Rename 9p-util -> 9p-util-linux

2022-02-15 Thread Will Cohen
From: Keno Fischer The current file only has the Linux versions of these functions. Rename the file accordingly and update the Makefile to only build it on Linux. A Darwin version of these will follow later in the series. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS

[PATCH v7 01/11] 9p: linux: Fix a couple Linux assumptions

2022-02-15 Thread Will Cohen
ly be an additional optimization later. [Will Cohen: - Fix headers for Alpine - Integrate statfs.h back into file-op-9p.h - Remove superfluous header guards from file-opt-9p - Add note about virtfs-proxy-helper being disabled on non-Linux for

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

2022-02-15 Thread Will Cohen
9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX 9p: darwin: *xattr_nofollow implementations 9p: darwin: Compatibility for f/l*xattr 9p: darwin: Implement compatibility for mknodat 9p: darwin: meson: Allow VirtFS on Darwin Will Cohen (1): 9p: darwin: Adjust assumption on virtio-9

[PATCH v7 05/11] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2022-02-15 Thread Will Cohen
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 --- hw/9pfs/9p-util.h | 2 ++ hw/9pfs/9p.c | 13 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --g

[PATCH v7 08/11] 9p: darwin: Compatibility for f/l*xattr

2022-02-15 Thread Will Cohen
From: Keno Fischer On darwin `fgetxattr` takes two extra optional arguments, and the l* variants are not defined (in favor of an extra flag to the regular variants. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

[PATCH v7 07/11] 9p: darwin: *xattr_nofollow implementations

2022-02-15 Thread Will Cohen
From: Keno Fischer This implements the darwin equivalent of the functions that were moved to 9p-util(-linux) earlier in this series in the new 9p-util-darwin file. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

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

2022-02-15 Thread Will Cohen
Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Adjust to pass testing - Ensure that d_seekoff is filled using telldir on darwin, and create qemu_dirent_off helper to decide which to access] [Fabian Franz

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

2022-02-15 Thread Will Cohen
this functionality could be implemented later on. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Rebase to master] Signed-off-by: Will Cohen Reviewed-by: Paolo Bonzini [Will Cohen: - Add check for pthread_fchdir_np to virtfs

[PATCH v7 03/11] 9p: darwin: Handle struct stat(fs) differences

2022-02-15 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch [Will Cohen: - Note lack of f_namelen and f_frsize on Darwin - Ensure that tv_sec and tv_nsec are both initialized for Darwin and non-Darwin] Signed-off-by: Will Cohen --- hw/9pfs/9p

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

2022-02-15 Thread Will Cohen
ItemWithTitle:@"Hide QEMU" action:@selector(hide:) > keyEquivalent:@"h"]; //Hide QEMU > menuItem = (NSMenuItem *)[menu addItemWithTitle:@"Hide Others" > action:@selector(hideOtherApplications:) keyEquivalent:@"h"]; // Hide > Others > [menuItem > setKeyEquivalentModifierMask:(NSEventModifierFlagOption|NSEventModifierFlagCommand)]; > -- > 2.34.1 > Reviewed-by: Will Cohen Tested-by: Will Cohen

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

2022-02-14 Thread Will Cohen
Hello all, I'm seeing on the updated release schedule that we're now looking at March 8 for soft feature freeze ( https://wiki.qemu.org/Planning/7.0#Release_Schedule). Is there anything additional that should be prepared for this patch set to hopefully be able to target 7.0? Will On T

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

2022-02-10 Thread Will Cohen
On Wed, Feb 9, 2022 at 6:10 PM Akihiko Odaki wrote: > On Thu, Feb 10, 2022 at 3:20 AM Will Cohen wrote: > > > > On Wed, Feb 9, 2022 at 9:08 AM Christian Schoenebeck < > qemu_...@crudebyte.com> wrote: > >> > >> On Mittwoch, 9. Februar 2022 14:33:25 CE

[PATCH v6 08/11] 9p: darwin: Compatibility for f/l*xattr

2022-02-10 Thread Will Cohen
From: Keno Fischer On darwin `fgetxattr` takes two extra optional arguments, and the l* variants are not defined (in favor of an extra flag to the regular variants. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

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

2022-02-10 Thread Will Cohen
Roitzsch [Will Cohen: - Adjust coding style - Replace clang references with gcc - Note radar filed with Apple for missing syscall - Replace direct syscall with pthread_fchdir_np and adjust patch notes accordingly - Move qemu_mknodat

[PATCH v6 03/11] 9p: darwin: Handle struct stat(fs) differences

2022-02-10 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch [Will Cohen: - Note lack of f_namelen and f_frsize on Darwin - Ensure that tv_sec and tv_nsec are both initialized for Darwin and non-Darwin] Signed-off-by: Will Cohen --- hw/9pfs/9p

[PATCH v6 05/11] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2022-02-10 Thread Will Cohen
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 --- hw/9pfs/9p-util.h | 2 ++ hw/9pfs/9p.c | 13 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --g

[PATCH v6 06/11] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-02-10 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch Because XATTR_SIZE_MAX is not defined on Darwin, create a cross-platform P9_XATTR_SIZE_MAX instead. [Will Cohen: - Adjust coding style - Lower XATTR_SIZE_MAX to 64k - Add explanatory

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

2022-02-10 Thread Will Cohen
Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Adjust to pass testing - Ensure that d_seekoff is filled using telldir on darwin, and create qemu_dirent_off helper to decide which to access] [Fabian Franz

[PATCH v6 01/11] 9p: linux: Fix a couple Linux assumptions

2022-02-10 Thread Will Cohen
ly be an additional optimization later. [Will Cohen: - Fix headers for Alpine - Integrate statfs.h back into file-op-9p.h - Remove superfluous header guards from file-opt-9p - Add note about virtfs-proxy-helper being disabled on non-Linux for

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

2022-02-10 Thread Will Cohen
DIRECT} 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX 9p: darwin: *xattr_nofollow implementations 9p: darwin: Compatibility for f/l*xattr 9p: darwin: Implement compatibility for mknodat 9p: darwin: meson: Allow VirtFS on Darwin Will Cohen (1): 9p: darwin: Adjust assumption on

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

2022-02-10 Thread Will Cohen
this functionality could be implemented later on. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Rebase to master] Signed-off-by: Will Cohen Reviewed-by: Paolo Bonzini [Will Cohen: - Add check for pthread_fchdir_np to virtfs

[PATCH v6 10/11] 9p: darwin: Adjust assumption on virtio-9p-test

2022-02-10 Thread Will Cohen
[Will Cohen: - Add explanation of patch and description of pre-patch test failure] Signed-off-by: Will Cohen Acked-by: Thomas Huth [Will Cohen: - Move this patch before 9p: darwin: meson patch to avoid qtest breakage during bisecting] Signed-off-by: Will

[PATCH v6 02/11] 9p: Rename 9p-util -> 9p-util-linux

2022-02-10 Thread Will Cohen
From: Keno Fischer The current file only has the Linux versions of these functions. Rename the file accordingly and update the Makefile to only build it on Linux. A Darwin version of these will follow later in the series. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS

[PATCH v6 07/11] 9p: darwin: *xattr_nofollow implementations

2022-02-10 Thread Will Cohen
From: Keno Fischer This implements the darwin equivalent of the functions that were moved to 9p-util(-linux) earlier in this series in the new 9p-util-darwin file. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

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

2022-02-09 Thread Will Cohen
On Wed, Feb 9, 2022 at 9:08 AM Christian Schoenebeck wrote: > On Mittwoch, 9. Februar 2022 14:33:25 CET Akihiko Odaki wrote: > > > I like the idea of switching it to __attribute__((weak)). I should note > > > that I'm not sure that I can actually fully test this out since I'm > > > getting stuck

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

2022-02-08 Thread Will Cohen
On Tue, Feb 8, 2022 at 2:49 PM Christian Schoenebeck wrote: > On Dienstag, 8. Februar 2022 19:28:21 CET Christian Schoenebeck wrote: > > On Dienstag, 8. Februar 2022 19:04:31 CET Will Cohen wrote: > > > On Tue, Feb 8, 2022 at 11:19 AM Will Cohen wrote: > > > > O

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

2022-02-08 Thread Will Cohen
On Tue, Feb 8, 2022 at 11:19 AM Will Cohen wrote: > On Tue, Feb 8, 2022 at 11:11 AM Christian Schoenebeck < > qemu_...@crudebyte.com> wrote: > >> On Dienstag, 8. Februar 2022 16:57:55 CET Will Cohen wrote: >> > My inclination is to go with the __builtin_available(ma

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

2022-02-08 Thread Will Cohen
On Tue, Feb 8, 2022 at 11:11 AM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Dienstag, 8. Februar 2022 16:57:55 CET Will Cohen wrote: > > My inclination is to go with the __builtin_available(macOS 10.12, *) > path, > > if acceptable, since it partially m

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

2022-02-08 Thread Will Cohen
oping for the best. With any luck, the distinction between the two approaches will be moot, if we try to assume that a future macOS version that removes this also provides mknodat. On Tue, Feb 8, 2022 at 10:03 AM Christian Schoenebeck < qemu_...@crudebyte.com> wrote: > On Dienstag, 8. F

Re: [PATCH v5 06/11] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-02-08 Thread Will Cohen
On Tue, Feb 8, 2022 at 7:20 AM Christian Schoenebeck wrote: > On Montag, 7. Februar 2022 23:40:19 CET Will Cohen wrote: > > From: Keno Fischer > > > > Signed-off-by: Keno Fischer > > Signed-off-by: Michael Roitzsch > > > > Because XATTR_SIZE_MAX is no

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

2022-02-08 Thread Will Cohen
On Mon, Feb 7, 2022 at 5:56 PM Christian Schoenebeck wrote: > On Montag, 7. Februar 2022 23:40:22 CET Will Cohen wrote: > > From: Keno Fischer > > > > Darwin does not support mknodat. However, to avoid race conditions > > with later setting the permissions, we must a

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

2022-02-07 Thread Will Cohen
On Mon, Feb 7, 2022 at 6:44 PM Christian Schoenebeck wrote: > On Montag, 7. Februar 2022 23:40:23 CET Will Cohen wrote: > > From: Keno Fischer > > > > To allow VirtFS on darwin, we need to check that pthread_fchdir_np is > > available, which has only been

[PATCH v5 10/11] 9p: darwin: meson: Allow VirtFS on Darwin

2022-02-07 Thread Will Cohen
this functionality could be implemented later on. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Rebase to master] Signed-off-by: Will Cohen Reviewed-by: Paolo Bonzini [Will Cohen: - Add check for pthread_fchdir_np to virtfs

[PATCH v5 08/11] 9p: darwin: Compatibility for f/l*xattr

2022-02-07 Thread Will Cohen
From: Keno Fischer On darwin `fgetxattr` takes two extra optional arguments, and the l* variants are not defined (in favor of an extra flag to the regular variants. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

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

2022-02-07 Thread Will Cohen
On Mon, Feb 7, 2022 at 5:48 PM Christian Schoenebeck wrote: > On Montag, 7. Februar 2022 22:07:34 CET Will Cohen wrote: > > On Mon, Feb 7, 2022 at 9:21 AM Christian Schoenebeck > > > > wrote: > > > On Montag, 7. Februar 2022 11:57:25 CET Dr. David Alan Gilbert

[PATCH v5 06/11] 9p: darwin: Move XATTR_SIZE_MAX->P9_XATTR_SIZE_MAX

2022-02-07 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch Because XATTR_SIZE_MAX is not defined on Darwin, create a cross-platform P9_XATTR_SIZE_MAX instead. [Will Cohen: - Adjust coding style - Lower XATTR_SIZE_MAX to 64k - Add explanatory

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

2022-02-07 Thread Will Cohen
Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch [Will Cohen: - Adjust to pass testing - Ensure that d_seekoff is filled using telldir on darwin, and create qemu_dirent_off helper to decide which to access] [Fabian Franz

[PATCH v5 02/11] 9p: Rename 9p-util -> 9p-util-linux

2022-02-07 Thread Will Cohen
From: Keno Fischer The current file only has the Linux versions of these functions. Rename the file accordingly and update the Makefile to only build it on Linux. A Darwin version of these will follow later in the series. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS

[PATCH v5 07/11] 9p: darwin: *xattr_nofollow implementations

2022-02-07 Thread Will Cohen
From: Keno Fischer This implements the darwin equivalent of the functions that were moved to 9p-util(-linux) earlier in this series in the new 9p-util-darwin file. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen

[PATCH v5 05/11] 9p: darwin: Ignore O_{NOATIME, DIRECT}

2022-02-07 Thread Will Cohen
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 --- hw/9pfs/9p-util.h | 2 ++ hw/9pfs/9p.c | 13 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --g

[PATCH v5 01/11] 9p: linux: Fix a couple Linux assumptions

2022-02-07 Thread Will Cohen
ly be an additional optimization later. [Will Cohen: - Fix headers for Alpine - Integrate statfs.h back into file-op-9p.h - Remove superfluous header guards from file-opt-9p - Add note about virtfs-proxy-helper being disabled on non-Linux for

[PATCH v5 11/11] 9p: darwin: Adjust assumption on virtio-9p-test

2022-02-07 Thread Will Cohen
[Will Cohen: - Add explanation of patch and description of pre-patch test failure] Signed-off-by: Will Cohen Acked-by: Thomas Huth --- 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/virtio-9p

[PATCH v5 03/11] 9p: darwin: Handle struct stat(fs) differences

2022-02-07 Thread Will Cohen
From: Keno Fischer Signed-off-by: Keno Fischer Signed-off-by: Michael Roitzsch [Will Cohen: - Note lack of f_namelen and f_frsize on Darwin - Ensure that tv_sec and tv_nsec are both initialized for Darwin and non-Darwin] Signed-off-by: Will Cohen --- hw/9pfs/9p

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

2022-02-07 Thread Will Cohen
Roitzsch [Will Cohen: - Adjust coding style - Replace clang references with gcc - Note radar filed with Apple for missing syscall - Replace direct syscall with pthread_fchdir_np and adjust patch notes accordingly - Move qemu_mknodat

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

2022-02-07 Thread Will Cohen
lement compatibility for mknodat 9p: darwin: meson: Allow VirtFS on Darwin Will Cohen (1): 9p: darwin: Adjust assumption on virtio-9p-test fsdev/file-op-9p.h | 9 +++- fsdev/meson.build | 1 + hw/9pfs/9p-local.c | 27 --- hw/9pfs/9p-p

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

2022-02-07 Thread Will Cohen
On Mon, Feb 7, 2022 at 4:07 PM Will Cohen wrote: > On Mon, Feb 7, 2022 at 9:21 AM Christian Schoenebeck < > qemu_...@crudebyte.com> wrote: > >> On Montag, 7. Februar 2022 11:57:25 CET Dr. David Alan Gilbert wrote: >> > * Greg Kurz (gr...@kaod.org) wrote: >> &

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

2022-02-07 Thread Will Cohen
> > > On 7/2/22 09:47, Greg Kurz wrote: > > > > > On Sun, 6 Feb 2022 20:10:23 -0500 > > > > > > > > > > Will Cohen wrote: > > > > >> This patch set currently places it in 9p-util only because 9p is > the > > > &

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

2022-02-07 Thread Will Cohen
On Mon, Feb 7, 2022 at 9:41 AM Christian Schoenebeck wrote: > On Sonntag, 6. Februar 2022 21:07:12 CET Will Cohen wrote: > > From: Keno Fischer > > > > On darwin d_seekoff exists, but is optional and does not seem to > > be commonly used by file systems. Use `telldir

  1   2   3   >