All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Levon <john.levon@nutanix.com>
To: "Cédric Le Goater" <clg@redhat.com>
Cc: qemu-devel@nongnu.org,
	Thanos Makatos <thanos.makatos@nutanix.com>,
	Pierrick Bouvier <pierrick.bouvier@linaro.org>
Subject: Re: [PATCH 1/3] vfio-user: support VFIO_USER_DEVICE_FEATURE
Date: Thu, 9 Apr 2026 13:31:22 +0100	[thread overview]
Message-ID: <adecGoLC4Txe18Fm@lent> (raw)
In-Reply-To: <6c5a98ca-2ac4-4239-b3aa-30e5572f2c72@redhat.com>

On Thu, Apr 09, 2026 at 01:50:58PM +0200, Cédric Le Goater wrote:

> > +        /*
> > +         * Client expects ENOTTY for "not supported", but the protocol may
> > +         * return EINVAL (which should only occur in the case the feature isn't
> > +         * actually supported on the server).
> > +         */
> > +        if (msgp->hdr.error_reply == EINVAL) {
> > +            return -ENOTTY;
> > +        }
> 
> May be this is not necessary anymore with :
> 
>   https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_qemu-2Ddevel_20260409114312.1704062-2D1-2Dclg-40redhat.com_&d=DwICaQ&c=s883GpUCOChKOHiocYtGcg&r=v7SNLJqx7b9Vfc7ZO82Wg4nnZ8O5XkACFQ30bVKxotI&m=lpMrwUH_bH0I_KS0ucNhIf9acrnTdwuaRPGfJXRAj2yImpt5jpWGpP82gP4MJmRZ&s=9mI6zaw_Kt3ZLTto-WtxWPFKpQrqx-H7KpgUyvxnWEQ&e=

I think it's still necessary in general - ENOTTY is what kernel vfio returns so
we need to align for that for any other use cases.

> > +
> > +# device.c
> > +vfio_user_device_io_device_feature(uint32_t argsz, uint32_t flags);
> 
> missing format here ^

Oops, surprised I didn't get errors with this

regards
john


  reply	other threads:[~2026-04-09 12:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-09 10:47 [PATCH 0/3] vfio-user fixes John Levon
2026-04-09 10:47 ` [PATCH 1/3] vfio-user: support VFIO_USER_DEVICE_FEATURE John Levon
2026-04-09 11:50   ` Cédric Le Goater
2026-04-09 12:31     ` John Levon [this message]
2026-04-10  7:28       ` Cédric Le Goater
2026-04-09 10:47 ` [PATCH 2/3] vfio-user: correct protocol for DMA reads/writes John Levon
2026-04-09 10:47 ` [PATCH 3/3] vfio-user: fix DMA write reply John Levon

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=adecGoLC4Txe18Fm@lent \
    --to=john.levon@nutanix.com \
    --cc=clg@redhat.com \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thanos.makatos@nutanix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.