mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Danilo Krummrich" <dakr@kernel.org>
To: "Simon Song" <xinmengs@nvidia.com>
Cc: <acourbot@nvidia.com>, <kvm@vger.kernel.org>,
	<rust-for-linux@vger.kernel.org>, <nova-gpu@lists.linux.dev>,
	<linux-pci@vger.kernel.org>, <alex@shazbot.org>, <jgg@nvidia.com>,
	<yishaih@nvidia.com>, <skolothumtho@nvidia.com>,
	<kevin.tian@intel.com>, <airlied@gmail.com>, <simona@ffwll.ch>,
	<ojeda@kernel.org>, <alex.gaynor@gmail.com>,
	<boqun.feng@gmail.com>, <gary@garyguo.net>,
	<bjorn3_gh@protonmail.com>, <lossin@kernel.org>,
	<a.hindborg@kernel.org>, <aliceryhl@google.com>,
	<tmgross@umich.edu>, <jhubbard@nvidia.com>,
	<ecourtney@nvidia.com>, <cjia@nvidia.com>, <smitra@nvidia.com>,
	<kjaju@nvidia.com>, <alkumar@nvidia.com>, <ankita@nvidia.com>,
	<aniketa@nvidia.com>, <kwankhede@nvidia.com>,
	<targupta@nvidia.com>, <linux-kernel@vger.kernel.org>,
	<zhiwang@kernel.org>, <zhiw@nvidia.com>, <boqun@kernel.org>,
	<daniel.almeida@collabora.com>, <tamird@kernel.org>,
	<work@onurozkan.dev>, <jgg@ziepe.ca>, <bhelgaas@google.com>,
	<kwilczynski@kernel.org>, <dri-devel@lists.freedesktop.org>,
	<peter@colberg.org>
Subject: Re: [PATCH v3 7/9] rust: vfio: add PCI variant driver abstractions
Date: Thu, 26 Nov 2026 00:51:45 +0100	[thread overview]
Message-ID: <DN4P1UAAVP8G.2TUW0Q8UEQVCG@kernel.org> (raw)
In-Reply-To: <20261119215046.2892839-8-xinmengs@nvidia.com>

On Thu Nov 19, 2026 at 10:50 PM CET, Simon Song wrote:
> diff --git a/rust/kernel/vfio.rs b/rust/kernel/vfio.rs
> index bc50647a2437..43e904e2c980 100644
> --- a/rust/kernel/vfio.rs
> +++ b/rust/kernel/vfio.rs
> @@ -3,7 +3,7 @@
>  //! Virtual Function I/O (VFIO) devices and callback data.
>  //!
>  //! [`DeviceBase`] combines a C VFIO device structure with the data its callbacks use.
> -//! [`Device`] is an alias of it for `struct vfio_device`.
> +//! [`Device`] and the bus-specific devices, such as `pci::Device`, are aliases of it.

NIT: I'd refer to this as vfio::pci::Device, such that this won't be confused
with the bus device, and make it an intra-doc link.

>  //!
>  //! C header: [`include/linux/vfio.h`](srctree/include/linux/vfio.h)
>  
> @@ -26,6 +26,9 @@
>      ptr::NonNull, //
>  };
>  
> +#[cfg(CONFIG_VFIO_PCI_CORE)]

Until we have the new build system this needs to be
#[cfg(CONFIG_VFIO_PCI_CORE = "y")]. The same goes for

	#[cfg(CONFIG_VFIO = "y")] pub mod vfio;

in rust/kernel/lib.rs for the preceding patch.

> +pub mod pci;
> +
>  /// Reset the VFIO device.
>  pub const DEVICE_RESET: u32 = bindings::VFIO_DEVICE_RESET;
>  
> @@ -89,7 +92,7 @@ impl IoContext for GetRegionInfo {}
>  
>  /// The data the driver of a [`Device`] shares with its callbacks.
>  ///
> -/// Bus-specific devices take the data types from their own trait.
> +/// Bus-specific devices take the data types from their own trait, such as `pci::Operations`.
>  pub trait Operations: Sized + Send + Sync + 'static {
>      /// Data owned by the registration and passed to VFIO callbacks.
>      ///
> @@ -148,8 +151,8 @@ struct CallbackData<R, O> {
>  /// beginning of `Self`, as `vfio_alloc_device()` requires.
>  ///
>  /// `R` and `O` are the types of the registration data and the open data of `T`, written with
> -/// the placeholder lifetime `'static`. Use the alias [`Device`], which takes both from the
> -/// operations trait of `T`.
> +/// the placeholder lifetime `'static`. Use the aliases [`Device`] and `pci::Device`, which

Same here.

> +/// The trait for VFIO PCI variant driver implementations.
> +///
> +/// Unoverridden callbacks delegate to the corresponding PCI core operation.
> +///
> +/// # Lifetime of the callback data
> +///
> +/// [`Registration`] owns the [`RegistrationData`](Operations::RegistrationData), which
> +/// borrows from the PCI binding scope, and each callback borrows it. Callbacks are generic over
> +/// the lifetime of the registration data, so they cannot store callback-local references in it.
> +pub trait Operations: Sized + Send + Sync + 'static {

As mentioned in the previous patch, this should extend vfio::Operations.

> +    /// The name of the VFIO driver.
> +    const NAME: &'static CStr;
> +
> +    /// Data owned by the [`Registration`] and passed to VFIO callbacks.
> +    ///
> +    /// It can borrow resources of the driver's binding for `'a`. Per-device state lives here.
> +    type RegistrationData<'a>: Send + Sync + 'a;
> +
> +    /// Data shared by callbacks from the first successful open until the last close.
> +    ///
> +    /// It can borrow the registration data, of lifetime `'data`, for `'a`.
> +    type OpenData<'a, 'data: 'a>: Send + Sync + 'a;

For the previous patch - as I think it used the same definition - what about

	type RegistrationData<'reg>: Send + Sync + 'reg;
	type OpenData<'open, 'reg: 'open>: Send + Sync + 'open;

to make it even clearer.

Similar for the callbacks below; I think 'data can be a bit ambiguous in some
cases.

> +
> +    /// Called when the first file descriptor is opened for this device.
> +    ///
> +    /// `vfio_pci_core_enable()` has already succeeded; if this returns an
> +    /// error, `vfio_pci_core_disable()` is called automatically. The returned
> +    /// open data is dropped before PCI core close on the last close.
> +    fn open_device<'a, 'data: 'a>(
> +        dev: &'a Device<Self, Open>,
> +        reg_data: &'a Self::RegistrationData<'data>,
> +    ) -> impl PinInit<Self::OpenData<'a, 'data>, Error> + 'a;

Here I'd probably keep 'a as is, but use 'reg instead of 'data.

> +    /// Handle a VFIO ioctl.
> +    ///
> +    /// The default `vfio_pci_core_ioctl()` is available via
> +    /// [`Device::core_ioctl()`] for delegation.
> +    fn ioctl<'data>(
> +        dev: &Device<Self, Ioctl>,
> +        reg_data: &Self::RegistrationData<'data>,
> +        open_data: Pin<&Self::OpenData<'_, 'data>>,
> +        cmd: u32,
> +        arg: usize,
> +    ) -> Result<isize>;
> +
> +    /// Read from the device.
> +    ///
> +    /// `buf` is a user-space buffer provided by the VFIO core. Use
> +    /// [`Device::core_read()`] to delegate the default read, and
> +    /// [`UserBuf::write_overlapping()`] to override specific bytes afterwards.
> +    fn read<'data>(
> +        dev: &Device<Self, Read>,
> +        reg_data: &Self::RegistrationData<'data>,
> +        open_data: Pin<&Self::OpenData<'_, 'data>>,
> +        buf: &mut UserBuf,
> +        ppos: &mut Position<'_>,
> +    ) -> Result<isize>;
> +
> +    /// Write to the device, delegating to [`Device::core_write()`] if appropriate.
> +    fn write<'data>(
> +        dev: &Device<Self, Write>,
> +        _reg_data: &Self::RegistrationData<'data>,
> +        _open_data: Pin<&Self::OpenData<'_, 'data>>,
> +        buf: &mut UserBuf,
> +        ppos: &mut Position<'_>,
> +    ) -> Result<isize> {
> +        dev.core_write(buf, ppos)
> +    }
> +
> +    /// Map a device region, delegating to [`Device::core_mmap()`] if appropriate.
> +    fn mmap<'data>(
> +        dev: &Device<Self, Mmap>,
> +        _reg_data: &Self::RegistrationData<'data>,
> +        _open_data: Pin<&Self::OpenData<'_, 'data>>,
> +        mapping: &mut Mapping<'_>,
> +    ) -> Result {
> +        dev.core_mmap(mapping)
> +    }
> +
> +    /// Prepare for PCI reset, including resets initiated during enable or close.
> +    fn reset_prepare(_reg_data: &Self::RegistrationData<'_>) {}
> +
> +    /// Finish PCI reset; errors are reported through the VFIO error interrupt.
> +    fn reset_done(_reg_data: &Self::RegistrationData<'_>) -> Result {
> +        Ok(())
> +    }
> +
> +    /// Fill in region info capabilities.
> +    ///
> +    /// The default `vfio_pci_ioctl_get_region_info()` is available via
> +    /// [`Device::core_get_region_info()`] for delegation.
> +    fn get_region_info<'data>(
> +        dev: &Device<Self, GetRegionInfo>,
> +        reg_data: &Self::RegistrationData<'data>,
> +        open_data: Pin<&Self::OpenData<'_, 'data>>,
> +        info: &mut bindings::vfio_region_info,
> +        caps: &mut InfoCap<'_>,
> +    ) -> Result;
> +}

I think the default behavior of the I/O callbacks (ioctl, read, write, mmap, and
get_region_info) probably needs to be revisited and aligned with the C API.

For instance, if write() is omitted we shouldn't call core_write(), but not
install the callback at all.

I suggest to use #[vtable] and #[optional] for this and use the corresponding
generated flags when constructing the vfio_device_ops.

> +
> +/// A VFIO PCI file position, encoding a region index and an offset within that region.
> +pub struct Position<'a> {
> +    raw: &'a mut i64,

Shouldn't this be just file::Offset?

I don't remember if file::Offset is still an alias of a primitive or a new type.

I remember I sent a patch to convert it to a new type in the past, but I don't
remember if I ever followed up on it and if it was merged.

If not, I should probably resend, or please also feel free to pick it up if you
want. In any case, this can happen subsequently and doesn't need to be part of
this series.

> +}
> +
> +impl Position<'_> {
> +    /// Commit a temporary position only after the operation succeeds.
> +    ///
> +    /// This preserves the original position if a read succeeds but a subsequent
> +    /// user copy fails.
> +    pub fn with_temporary<R>(
> +        &mut self,
> +        operation: impl FnOnce(&mut Position<'_>) -> Result<R>,
> +    ) -> Result<R> {
> +        let mut next = *self.raw;
> +        let result = operation(&mut Position { raw: &mut next })?;
> +        *self.raw = next;
> +        Ok(result)
> +    }
> +
> +    /// Returns the PCI region index.
> +    pub fn region_index(&self) -> u32 {
> +        ((*self.raw as u64) >> bindings::VFIO_PCI_OFFSET_SHIFT) as u32
> +    }
> +
> +    /// Returns the byte offset within the current region.
> +    pub fn region_offset(&self) -> u64 {
> +        (*self.raw as u64) & ((1u64 << bindings::VFIO_PCI_OFFSET_SHIFT) - 1)
> +    }
> +}
> +
> +/// Mapping metadata supplied by VFIO while the current thread holds the mmap lock.
> +///
> +/// The underlying VMA can only be passed back to the core mmap operation.
> +pub struct Mapping<'a> {
> +    vma: &'a VmaRef,
> +    _not_thread_safe: NotThreadSafe,
> +}
> +
> +impl Mapping<'_> {
> +    fn page_offset(&self) -> u64 {
> +        // SAFETY: The mmap callback holds the mmap lock for this VMA.

Should probably be:

	// SAFETY: By `VmaRef`'s invariants, the VMA is valid and the
	// mmap/VMA read lock prevents concurrent modification.
	
> +        unsafe { (*self.vma.as_ptr()).vm_pgoff as u64 }
> +    }

Also, this belongs into VmaRef, so we have to split this out as a separate patch
in the next respin.

> +
> +    /// Returns the PCI region index encoded in the mapping offset.
> +    pub fn region_index(&self) -> u32 {
> +        (self.page_offset() >> (bindings::VFIO_PCI_OFFSET_SHIFT as usize - crate::page::PAGE_SHIFT))
> +            as u32
> +    }
> +
> +    /// Returns the byte offset within the PCI region.
> +    fn region_offset(&self) -> u64 {
> +        let mask = ((1u64 << bindings::VFIO_PCI_OFFSET_SHIFT) - 1) >> crate::page::PAGE_SHIFT;
> +        (self.page_offset() & mask) << crate::page::PAGE_SHIFT
> +    }
> +
> +    /// Returns the requested mapping length in bytes.
> +    fn size(&self) -> Result<u64> {
> +        self.vma
> +            .end()
> +            .checked_sub(self.vma.start())
> +            .map(|size| size as u64)
> +            .ok_or(EOVERFLOW)

I don't think this needs to be fallible, a valid VMA shouldn't be able to
produce an overflow this way.

> +    }

This should probably also be a helper of VmaRef, and hence also a separate
patch.

> +
> +    /// Returns the exclusive end of the requested mapping within the PCI region.
> +    pub fn region_end(&self) -> Result<u64> {
> +        self.region_offset()
> +            .checked_add(self.size()?)
> +            .ok_or(EOVERFLOW)
> +    }
> +}

<snip>

> +impl<T: Operations> Device<T> {
> +    /// Allocate a VFIO PCI device for subsequent registration.
> +    pub fn new(pdev: &pci::Device<device::Core<'_>>) -> Result<ARef<Self>> {
> +        Self::allocate(pdev, false)
> +    }
> +
> +    /// Allocate a device whose physical BARs may also be exported as DMA buffers.
> +    pub fn new_passthrough(pdev: &pci::Device<device::Core<'_>>) -> Result<ARef<Self>> {
> +        Self::allocate(pdev, true)
> +    }
> +
> +    fn allocate(pdev: &pci::Device<device::Core<'_>>, passthrough: bool) -> Result<ARef<Self>> {

I usually prefer an enum as it is more descriptive than a bool, but since the
scope is very limited it's probably fine.

> +        let size = Kmalloc::aligned_layout(Layout::new::<Self>()).size();
> +
> +        // SAFETY: The bound PCI device and static ops are valid. The allocation
> +        // includes the full Rust wrapper with kmalloc-compatible size and alignment.
> +        let raw = from_err_ptr(unsafe {
> +            bindings::_vfio_alloc_device(size, pdev.as_ref().as_raw(), &Self::OPS)
> +        })?;
> +        let this = NonNull::new(raw.cast::<Self>()).ok_or(ENOMEM)?;
> +
> +        // SAFETY: `vfio_pci_core_init_dev()` initialized the C device in this new allocation,
> +        // which nothing else can access yet.
> +        unsafe { Self::init(this.as_ptr()) };
> +
> +        if passthrough {
> +            // SAFETY: No registration or callbacks can observe this allocation yet.
> +            unsafe { (*this.as_ref().as_raw()).pci_ops = &Self::PASSTHROUGH_OPS };
> +        }
> +
> +        // SAFETY: `this` owns the initial VFIO device reference.
> +        Ok(unsafe { ARef::from_raw(this) })
> +    }
> +}
> +/// # Safety
> +///
> +/// `vdev` must belong to a registered `Device<T>` in VFIO's first-open context.
> +/// VFIO must exclude other opens, closes and I/O callbacks for this call.
> +unsafe extern "C" fn open_device_cb<T: Operations>(vdev: *mut bindings::vfio_device) -> c_int {
> +    // SAFETY: `vdev` belongs to a live `Device<T>`; VFIO provides the first-open context.
> +    let dev = unsafe { Device::<T, Open>::from_raw_vfio(vdev) };
> +
> +    // SAFETY: Enable the PCI-core side first.
> +    let ret = unsafe { bindings::vfio_pci_core_enable(dev.as_raw()) };
> +    if ret != 0 {
> +        return ret;
> +    }
> +
> +    // SAFETY: The previous last close destroyed any earlier open data. The open data type
> +    // passed is `T::OpenData`, which only differs in lifetimes from the one of `Device<T>`.
> +    // `T::open_device()` is generic over the lifetimes of its arguments, and the closure
> +    // captures nothing but `dev`, which it passes on with the same lifetime as the
> +    // registration data. `close_device_cb()` destroys the open data at the last close.
> +    let result = unsafe {
> +        dev.open::<T::OpenData<'_, 'static>, _>(|reg_data| T::open_device(dev, reg_data))
> +    };
> +    match result {
> +        Ok(()) => {
> +            // SAFETY: open succeeded.
> +            unsafe { bindings::vfio_pci_core_finish_enable(dev.as_raw()) };
> +            0
> +        }
> +        Err(e) => {
> +            // SAFETY: Undo the enable on failure.
> +            unsafe { bindings::vfio_pci_core_disable(dev.as_raw()) };
> +            e.to_errno()
> +        }
> +    }
> +}

We could wrap everything in a closure and use from_result(), then this becomes:

	unsafe extern "C" fn open_device_cb<T: Operations>(
	    vdev: *mut bindings::vfio_device,
	) -> c_int {
	    from_result(|| {
	        let dev = unsafe { Device::<T, Open>::from_raw_vfio(vdev) };
	
	        to_result(unsafe { bindings::vfio_pci_core_enable(dev.as_raw()) })?;
	
	        unsafe { dev.open(|reg_data| T::open_device(dev, reg_data)) }
	            .inspect_err(|_| {
	                unsafe { bindings::vfio_pci_core_disable(dev.as_raw()) };
	            })?;
	
	        unsafe { bindings::vfio_pci_core_finish_enable(dev.as_raw()) };
	
	        Ok(0)
	    })
	}

Which I find a bit cleaner.

> +
> +/// # Safety
> +///
> +/// `vdev` must belong to a registered `Device<T>` whose first open succeeded.
> +/// Call exactly once for the last close, after draining I/O callbacks and while
> +/// excluding the next first open.
> +unsafe extern "C" fn close_device_cb<T: Operations>(vdev: *mut bindings::vfio_device) {
> +    // SAFETY: `vdev` belongs to a live `Device<T>`.
> +    let dev = unsafe { Device::<T>::from_raw_vfio(vdev) };
> +    // SAFETY: Last close drains I/O callbacks and excludes the next first open.
> +    // Registration data and PCI resources remain valid while open data is destroyed.
> +    unsafe { dev.close() };
> +    // SAFETY: Matches the enable in open_device_cb.
> +    unsafe { bindings::vfio_pci_core_close_device(vdev) };
> +}
> +
> +/// # Safety
> +///
> +/// `vdev` must belong to a registered, open `Device<T>` in VFIO's ioctl callback
> +/// context. Registration and open data must remain alive until the call returns.
> +unsafe extern "C" fn ioctl_cb<T: Operations>(
> +    vdev: *mut bindings::vfio_device,
> +    cmd: core::ffi::c_uint,
> +    arg: usize,
> +) -> isize {
> +    // SAFETY: `vdev` belongs to a live `Device<T>`; VFIO provides the ioctl context.
> +    let dev = unsafe { Device::<T, Ioctl>::from_raw_vfio(vdev) };
> +    match dev.callback_data_with(|rd, od| T::ioctl(dev, rd, od, cmd, arg)) {
> +        Ok(v) => v,
> +        Err(e) => e.to_errno() as isize,
> +    }

Here and in a couple of other places, this can just be:

	from_result(|| dev.callback_data_with(|rd, od| T::ioctl(dev, rd, od, cmd, arg)))

> +/// Keeps the PCI device of a registered VFIO device runtime active.
> +///
> +/// The VFIO PCI core allows runtime suspend of the PCI device while its VFIO device is
> +/// registered, and expects the PCI driver's runtime PM callbacks to call into the VFIO PCI
> +/// core. These abstractions do not provide such callbacks yet, so the device must not be
> +/// runtime suspended.
> +///
> +/// # Invariants
> +///
> +/// This type owns a runtime PM usage reference on the device.
> +// TODO: Do not hold this reference for drivers that provide runtime PM callbacks, once these
> +// abstractions support them.
> +struct RuntimeActive(#[cfg_attr(not(CONFIG_PM), expect(dead_code))] ARef<device::Device>);

This should be &'a Device<Bound>, and hence RuntimeActive<'a>.

> +impl RuntimeActive {
> +    fn new(dev: &device::Device<device::Bound>) -> Result<Self> {
> +        // SAFETY: `dev` is a valid device. This is `pm_runtime_get_sync()`, which takes a usage
> +        // reference even if it fails.
> +        #[cfg(CONFIG_PM)]
> +        let ret =
> +            unsafe { bindings::__pm_runtime_resume(dev.as_raw(), bindings::RPM_GET_PUT as c_int) };
> +        #[cfg(not(CONFIG_PM))]
> +        let ret = 0;
> +        // INVARIANT: `this` owns the usage reference, and drops it if the resume failed.
> +        let this = Self(dev.into());
> +        to_result(ret)?;
> +        Ok(this)
> +    }
> +}
> +
> +impl Drop for RuntimeActive {
> +    fn drop(&mut self) {
> +        // SAFETY: `self.0` is a valid device, and `new()` took the usage reference dropped
> +        // here. This is `pm_runtime_put()`.
> +        #[cfg(CONFIG_PM)]
> +        unsafe {
> +            bindings::__pm_runtime_idle(
> +                self.0.as_raw(),
> +                (bindings::RPM_GET_PUT | bindings::RPM_ASYNC) as c_int,
> +            )
> +        };
> +    }
> +}

This seems reasonable, but doesn't belong into VFIO core code. This should e.g.
go under rust/kernel/device/pm.rs.

However, it would become dead code once we land the runtime PM stuff and enable
it for PCI, right? I think an alternative could be to just make nova-vgpu depend
on !PM.

> +impl<T: Operations> Device<T> {
> +    const OPS: bindings::vfio_device_ops = build_ops!(T);
> +
> +    const PASSTHROUGH_OPS: bindings::vfio_pci_device_ops = bindings::vfio_pci_device_ops {
> +        #[cfg(CONFIG_VFIO_PCI_DMABUF)]
> +        get_dmabuf_phys: Some(bindings::vfio_pci_core_get_dmabuf_phys),
> +        #[cfg(not(CONFIG_VFIO_PCI_DMABUF))]
> +        get_dmabuf_phys: None,
> +    };
> +}
> +
> +impl<'a, T: Operations> Registration<'a, T> {
> +    /// Register a previously allocated VFIO PCI device with its callback data.
> +    ///
> +    /// `dev` must have been allocated for `pdev`, and can be registered only once. `D` is the
> +    /// PCI driver bound to `pdev`.
> +    ///
> +    /// # Safety
> +    ///
> +    /// The returned `Registration` must be stored in the bus device private data of `D`, the
> +    /// driver bound to `pdev`, and must not be leaked: it has to be dropped while that driver
> +    /// is being unbound from `pdev`, or when its probe fails.
> +    pub unsafe fn new<D: pci::Driver>(
> +        pdev: &'a pci::Device<device::Core<'_>>,
> +        dev: &Device<T>,
> +        reg_data: impl PinInit<T::RegistrationData<'a>, Error>,
> +    ) -> Result<Self> {
> +        build_assert!(
> +            D::DRIVER_MANAGED_DMA.is_some(),
> +            "VFIO drivers must manage DMA ownership"
> +        );
> +        build_assert!(
> +            !D::HAS_SRIOV_ENABLE && !D::HAS_SRIOV_DISABLE,
> +            "VFIO PCI variant drivers do not support SR-IOV configuration"
> +        );

I think those can be const_assert!().

  reply	other threads:[~2026-11-25 23:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 21:50 [PATCH v3 0/9] Rust VFIO PCI support and NVIDIA vGPU driver Simon Song
2026-11-19 21:50 ` [PATCH v3 1/9] rust: pci: add VFIO override device IDs Simon Song
2026-11-19 21:50 ` [PATCH v3 2/9] rust: pci: expose the VF index within its PF Simon Song
2026-11-19 21:50 ` [PATCH v3 3/9] rust: pci: allow drivers to manage DMA ownership Simon Song
2026-11-19 21:50 ` [PATCH v3 4/9] rust: pci: add reset callbacks Simon Song
2026-11-19 21:50 ` [PATCH v3 5/9] rust: pci: add an error_detected callback Simon Song
2026-11-19 21:50 ` [PATCH v3 6/9] rust: vfio: add common VFIO device handling Simon Song
2026-11-25 17:57   ` Danilo Krummrich
2026-11-19 21:50 ` [PATCH v3 7/9] rust: vfio: add PCI variant driver abstractions Simon Song
2026-11-25 23:51   ` Danilo Krummrich [this message]
2026-11-19 21:50 ` [PATCH v3 8/9] gpu: nova-core: publish typed SR-IOV PF APIs Simon Song
2026-11-19 21:50 ` [PATCH v3 9/9] vfio/nova-vgpu: add the Rust VFIO variant driver Simon Song
2026-11-25  3:19   ` Alex Williamson
2026-11-24 22:21 ` (subset) [PATCH v3 0/9] Rust VFIO PCI support and NVIDIA vGPU driver Danilo Krummrich

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=DN4P1UAAVP8G.2TUW0Q8UEQVCG@kernel.org \
    --to=dakr@kernel.org \
    --cc=a.hindborg@kernel.org \
    --cc=acourbot@nvidia.com \
    --cc=airlied@gmail.com \
    --cc=alex.gaynor@gmail.com \
    --cc=alex@shazbot.org \
    --cc=aliceryhl@google.com \
    --cc=alkumar@nvidia.com \
    --cc=aniketa@nvidia.com \
    --cc=ankita@nvidia.com \
    --cc=bhelgaas@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun.feng@gmail.com \
    --cc=boqun@kernel.org \
    --cc=cjia@nvidia.com \
    --cc=daniel.almeida@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ecourtney@nvidia.com \
    --cc=gary@garyguo.net \
    --cc=jgg@nvidia.com \
    --cc=jgg@ziepe.ca \
    --cc=jhubbard@nvidia.com \
    --cc=kevin.tian@intel.com \
    --cc=kjaju@nvidia.com \
    --cc=kvm@vger.kernel.org \
    --cc=kwankhede@nvidia.com \
    --cc=kwilczynski@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=nova-gpu@lists.linux.dev \
    --cc=ojeda@kernel.org \
    --cc=peter@colberg.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=simona@ffwll.ch \
    --cc=skolothumtho@nvidia.com \
    --cc=smitra@nvidia.com \
    --cc=tamird@kernel.org \
    --cc=targupta@nvidia.com \
    --cc=tmgross@umich.edu \
    --cc=work@onurozkan.dev \
    --cc=xinmengs@nvidia.com \
    --cc=yishaih@nvidia.com \
    --cc=zhiw@nvidia.com \
    --cc=zhiwang@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®