[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aQvlVzljJhKQQ2ji@google.com>
Date: Thu, 6 Nov 2025 00:01:27 +0000
From: David Matlack <dmatlack@...gle.com>
To: Raghavendra Rao Ananta <rananta@...gle.com>
Cc: Alex Williamson <alex@...zbot.org>,
Alex Williamson <alex.williamson@...hat.com>,
Josh Hilke <jrhilke@...gle.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] vfio: selftests: Add helper to set/override a
vf_token
On 2025-11-04 12:35 AM, Raghavendra Rao Ananta wrote:
> Not only at init, but a vf_token can also be set via the
> VFIO_DEVICE_FEATURE ioctl, by setting the
> VFIO_DEVICE_FEATURE_PCI_VF_TOKEN flag. Add an API to utilize this
> functionality from the test code.
Say what the commit does first. Then add context (e.g. compare/contrast
to other ways of setting the VF token).
Also please add a sentence about how this will be used in a subsequent
commit, since there are no callers in this commit.
> +void vfio_device_set_vf_token(int fd, const char *vf_token)
> +{
> + uuid_t token_uuid = {0};
> +
> + VFIO_ASSERT_NOT_NULL(vf_token, "vf_token is NULL");
nit: The help message here is not needed. It will be very obvious that
vf_token is NULL if this assert fires :)
Powered by blists - more mailing lists