Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH v10 0/1] Rust PCI capability infrastructure and SR-IOV support
@ 2026-09-06  6:04 Zhi Wang
  2026-09-06  6:04 ` [PATCH v10 1/1] rust: pci: add extended capability " Zhi Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Zhi Wang @ 2026-09-06  6:04 UTC (permalink / raw)
  To: rust-for-linux, linux-pci, linux-kernel
  Cc: dakr, aliceryhl, bhelgaas, kwilczynski, ojeda, boqun, gary,
	bjorn3_gh, lossin, a.hindborg, tmgross, markus.probst, cjia,
	smitra, ankita, aniketa, kwankhede, targupta, kjaju, alkumar,
	acourbot, jhubbard, zhiwang, Zhi Wang

This is a follow-up to v9 [1].

The patch adds typed PCIe extended-capability lookup to the Rust PCI
abstraction and an SR-IOV layout used by the nova-core vGPU boot work.

This series is based on v7.3-rc1. That base provides the existing
num::casts helpers but not const_as!, so the const narrowing call uses the
temporary turbofish form discussed during review. It can be converted as
part of the subsequent const_as! migration before the old helper is
removed.

Changes since v9:
- Renamed the internal BAR encoding types to drop the VF-specific prefix
  and added a TODO to move the common definitions into the PCI core
  abstraction. (Ilpo, Alexandre)
- Rebased onto v7.3-rc1.

[1] https://lore.kernel.org/rust-for-linux/cover.1787830828.git.zhiw@nvidia.com/

Zhi Wang (1):
  rust: pci: add extended capability and SR-IOV support

 rust/helpers/pci.c     |   5 +
 rust/kernel/pci.rs     |   8 ++
 rust/kernel/pci/cap.rs | 292 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 305 insertions(+)
 create mode 100644 rust/kernel/pci/cap.rs


base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
-- 
2.53.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-06  6:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-06  6:04 [PATCH v10 0/1] Rust PCI capability infrastructure and SR-IOV support Zhi Wang
2026-09-06  6:04 ` [PATCH v10 1/1] rust: pci: add extended capability " Zhi Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox