mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Tian, Kevin" <kevin.tian@intel.com>
To: Alex Williamson <alex.williamson@nvidia.com>,
	kvm <kvm@vger.kernel.org>, Alex Williamson <alex@shazbot.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	Jason Gunthorpe <jgg@ziepe.ca>,
	"kanie@linux.alibaba.com" <kanie@linux.alibaba.com>
Subject: RE: [PATCH v3 0/6] vfio/pci: Latch module params, fix bitfield use and VGA unwind
Date: Wed, 17 Jun 2026 07:46:30 +0000	[thread overview]
Message-ID: <DM6PR11MB3690174BD95DA415BB2550528CE42@DM6PR11MB3690.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20260615191241.688297-1-alex.williamson@nvidia.com>

> From: Alex Williamson <alex.williamson@nvidia.com>
> Sent: Tuesday, June 16, 2026 3:12 AM
> 
> The vfio-pci module pushes module parameters into vfio-pci-core at
> initialization that change global policies for all devices, whether
> bound to vfio-pci itself or other variant drivers.  Not only is this
> generally bad practice, but in the case of runtime PM, policy changes
> can affect initialized devices, even while they're in use, resulting in
> unbalanced operations.
> 
> This series first addresses the runtime PM case as a separate fix for
> stable, latching the runtime PM support into the device.
> 
> Then, in preparing for moving disable_vga to per device, it's discovered
> that we lack proper unwind support for a registration failure, leaving
> the VGA arbiter client registered.  This is resolved before it turns into
> an issue, also marked for stable.
> 
> Next, we're again reminded of the risky bitfield use in both the
> vfio-pci-core and mlx5 variant driver, therefore before expanding use
> for more per-device flags, perform the binary split to categorize
> flags as either setup/release or runtime to avoid RMW hazards of the
> bitfields.  Also for stable.
> 
> Finally, close the series by pulling vfio-pci module parameter policy
> out of the core, latching each into the device structure.
> 
> This latter change also has the effect of restoring the mutability of
> two of the module parameters, where that functionality was lost with the
> vfio-pci-core split.  With this series, the current parameter values are
> latched into the device at probe time.
> 
> Please review.  Thanks,
> Alex
> 

Looks good. for the whole series:

Reviewed-by: Kevin Tian <kevin.tian@intel.com>

      parent reply	other threads:[~2026-06-17  7:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15 19:12 Alex Williamson
2026-06-15 19:12 ` [PATCH v3 1/6] vfio/pci: Latch disable_idle_d3 per device Alex Williamson
2026-06-15 19:12 ` [PATCH v3 2/6] vfio/pci: Release the VGA arbiter client on register_device() failure Alex Williamson
2026-06-15 19:12 ` [PATCH v3 3/6] vfio/pci: Fix racy bitfields and tighten struct layout Alex Williamson
2026-06-15 19:12 ` [PATCH v3 4/6] vfio/mlx5: " Alex Williamson
2026-06-15 19:12 ` [PATCH v3 5/6] vfio/pci: Latch all module parameters per device Alex Williamson
2026-06-15 19:12 ` [PATCH v3 6/6] vfio/pci: Expose latched module parameter policy in debugfs Alex Williamson
2026-06-15 20:47 ` [PATCH v3 7/6] vfio: Remove device debugfs before releasing devres Alex Williamson
2026-06-17  7:46 ` Tian, Kevin [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=DM6PR11MB3690174BD95DA415BB2550528CE42@DM6PR11MB3690.namprd11.prod.outlook.com \
    --to=kevin.tian@intel.com \
    --cc=alex.williamson@nvidia.com \
    --cc=alex@shazbot.org \
    --cc=jgg@ziepe.ca \
    --cc=kanie@linux.alibaba.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®