From: John Levon <john.levon@nutanix.com>
To: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Cc: clg@redhat.com, thanos.makatos@nutanix.com, qemu-devel@nongnu.org
Subject: Re: [PATCH 2/2] vfio-user: update VFIOProxy flag constants to use the BIT() macro
Date: Wed, 21 Jan 2026 11:15:24 +0000 [thread overview]
Message-ID: <aXC1TOlMApjZljDt@lent> (raw)
In-Reply-To: <20260121110055.2333711-3-mark.caveayland@nutanix.com>
On Wed, Jan 21, 2026 at 10:59:46AM +0000, Mark Cave-Ayland wrote:
> This should help avoid incorrect constant values being used in future. At
> the same time we can remove the gap left for BIT(1) which was originally
> intended for the VFIO_PROXY_NO_MMAP feature which was removed from later
> versions of the vfio-user series.
>
> Suggested-by: John Levon <john.levon@nutanix.com>
> Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
> ---
> hw/vfio-user/proxy.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/hw/vfio-user/proxy.h b/hw/vfio-user/proxy.h
> index b09fd886f1..7b97460cc5 100644
> --- a/hw/vfio-user/proxy.h
> +++ b/hw/vfio-user/proxy.h
> @@ -91,10 +91,10 @@ typedef struct VFIOUserProxy {
> } VFIOUserProxy;
>
> /* VFIOProxy flags */
> -#define VFIO_PROXY_CLIENT 0x1
> -#define VFIO_PROXY_FORCE_QUEUED 0x4
> -#define VFIO_PROXY_NO_POST 0x8
> -#define VFIO_PROXY_USE_MULTI 0x10
> +#define VFIO_PROXY_CLIENT BIT(0)
> +#define VFIO_PROXY_FORCE_QUEUED BIT(1)
> +#define VFIO_PROXY_NO_POST BIT(2)
> +#define VFIO_PROXY_USE_MULTI BIT(3)
>
> /* coalescing high and low water marks for VFIOProxy num_outgoing */
> #define VFIO_USER_OUT_HIGH 1024
Reviewed-by: John Levon <john.levon@nutanix.com>
thanks
john
prev parent reply other threads:[~2026-01-21 11:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 10:59 [PATCH 0/2] vfio-user: trivial VFIOProxy flags fix Mark Cave-Ayland
2026-01-21 10:59 ` [PATCH 1/2] vfio-user: fix VFIO_PROXY_USE_MULTI constant value Mark Cave-Ayland
2026-01-21 11:13 ` John Levon
2026-01-21 11:15 ` Cédric Le Goater
2026-01-21 12:06 ` Mark Cave-Ayland
2026-01-21 11:16 ` John Levon
2026-01-21 10:59 ` [PATCH 2/2] vfio-user: update VFIOProxy flag constants to use the BIT() macro Mark Cave-Ayland
2026-01-21 11:15 ` John Levon [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=aXC1TOlMApjZljDt@lent \
--to=john.levon@nutanix.com \
--cc=clg@redhat.com \
--cc=mark.caveayland@nutanix.com \
--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.