From: Mark Johnston <markj@freebsd.org>
To: Christian Schoenebeck <qemu_oss@crudebyte.com>
Cc: qemu-devel@nongnu.org, "Greg Kurz" <groug@kaod.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: Re: [PATCH] 9pfs: Add FreeBSD support
Date: Wed, 6 Aug 2025 13:37:28 -0400 [thread overview]
Message-ID: <aJOS2A9dRdqks-fp@nuc> (raw)
In-Reply-To: <2268148.dRjqHlHdj4@silver>
On Tue, Aug 05, 2025 at 01:49:44PM +0200, Christian Schoenebeck wrote:
> On Wednesday, July 30, 2025 4:32:22 PM CEST Mark Johnston wrote:
> > On Tue, Jul 29, 2025 at 06:09:35PM +0200, Christian Schoenebeck wrote:
> > > On Wednesday, July 23, 2025 5:55:58 PM CEST Mark Johnston wrote:
> [...]
> > Thank you for taking a look.
> >
> > I'll certainly be around to help deal with issues and patches relating
> > to 9pfs+FreeBSD hosts. It's hard to prove that, but for what it's worth
> > I use QEMU fairly extensively for FreeBSD development when I can't use
> > the native hypervisor, and that's not likely to change anytime soon.
> >
> > Would adding myself to MAINTAINERS for virtio-9pfs (or a new
> > virtio-9pfs-freebsd category) be appropriate in that case?
>
> Good to hear that you will be around!
>
> I leave it to you whether you want to add yourself as reviewer of patches to
> MAINTAINER's 9pfs section.
Ok. I'll leave myself off the list for now then. If the patch is
applied and any FreeBSD-related problems crop up, please let me know of
course I'll try to fix them ASAP. If this turns out to be a regular
occurrence (hopefully not), I can add myself and be more proactive about
responding to patches or bug reports.
> > > > diff --git a/hw/9pfs/9p-util.h b/hw/9pfs/9p-util.h
> > > > index a1924fe3f0..7315b32591 100644
> > > > --- a/hw/9pfs/9p-util.h
> > > > +++ b/hw/9pfs/9p-util.h
> > > > @@ -21,6 +21,14 @@
> > > > #define O_PATH_9P_UTIL 0
> > > > #endif
> > > >
> > > > +#ifdef CONFIG_FREEBSD
> > > > +/*
> > > > + * FreeBSD does not have these flags, so we can only emulate them (racily).
> > > > + */
> > > > +#define XATTR_CREATE 0x1
> > > > +#define XATTR_REPLACE 0x2
> > > > +#endif
> > > > +
> > >
> > > What do you mean with "racily" here?
> >
> > FreeBSD cannot atomically check for the existence of and set an extattr,
> > the system call interface simply doesn't support it today. This means
> > that fsetxattrat_nofollow() needs back-to-back system calls to check for
> > the existence of an attribute and then potentially set it.
>
> Ah, I was misinterpreting your comment as if it were "racily defining" the
> macros. Maybe change the comment to something like "... can only emulate their
> intended behaviour (racily) ...".
Done. I'll send out a v2 shortly.
prev parent reply other threads:[~2025-08-06 17:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 15:55 [PATCH] 9pfs: Add FreeBSD support Mark Johnston
2025-07-29 16:09 ` Christian Schoenebeck
2025-07-29 16:13 ` Daniel P. Berrangé
2025-07-30 14:32 ` Mark Johnston
2025-07-30 14:35 ` Daniel P. Berrangé
2025-08-05 11:49 ` Christian Schoenebeck
2025-08-06 17:37 ` Mark Johnston [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aJOS2A9dRdqks-fp@nuc \
--to=markj@freebsd.org \
--cc=berrange@redhat.com \
--cc=groug@kaod.org \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu_oss@crudebyte.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).