qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] pci: Compare function number and ARI next function number
@ 2023-07-01  7:01 Akihiko Odaki
  2023-07-01  7:01 ` [PATCH 1/4] docs: Fix next function numbers in SR/IOV documentation Akihiko Odaki
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Akihiko Odaki @ 2023-07-01  7:01 UTC (permalink / raw)
  Cc: qemu-devel, qemu-block, Ani Sinha, Michael S . Tsirkin,
	Marcel Apfelbaum, Sriram Yagnaraman, Jason Wang, Keith Busch,
	Klaus Jensen, Akihiko Odaki

The function number must be lower than the next function number
advertised with ARI. Add a check to enforce this.

I suggested this change at:
https://lore.kernel.org/qemu-devel/bf351f8b-1c8a-8a7a-7f44-17c9ba18f179@daynix.com/

Implementing this change, I found the devices implementing ARI do not set the
correct next function numbers, which is also fixed in this series.

Akihiko Odaki (4):
  docs: Fix next function numbers in SR/IOV documentation
  hw/nvme: Fix ARI next function numbers
  igb: Fix ARI next function numbers
  pci: Compare function number and ARI next function number

 docs/pcie_sriov.txt |  5 +++--
 hw/net/igb_core.h   |  3 +++
 hw/net/igb.c        |  4 +---
 hw/net/igbvf.c      |  5 ++++-
 hw/nvme/ctrl.c      |  7 ++++++-
 hw/pci/pci.c        | 15 +++++++++++++++
 6 files changed, 32 insertions(+), 7 deletions(-)

-- 
2.41.0



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

end of thread, other threads:[~2023-07-11  8:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-01  7:01 [PATCH 0/4] pci: Compare function number and ARI next function number Akihiko Odaki
2023-07-01  7:01 ` [PATCH 1/4] docs: Fix next function numbers in SR/IOV documentation Akihiko Odaki
2023-07-01 14:31   ` Ani Sinha
2023-07-02  3:51     ` Akihiko Odaki
2023-07-01  7:01 ` [PATCH 2/4] hw/nvme: Fix ARI next function numbers Akihiko Odaki
2023-07-01  7:01 ` [PATCH 3/4] igb: " Akihiko Odaki
2023-07-02  5:05   ` Michael S. Tsirkin
2023-07-02  8:38     ` Akihiko Odaki
2023-07-02  8:40       ` Michael S. Tsirkin
2023-07-01  7:01 ` [PATCH 4/4] pci: Compare function number and ARI next function number Akihiko Odaki
2023-07-02  4:58   ` Michael S. Tsirkin
2023-07-02  8:46     ` Akihiko Odaki
2023-07-02  8:55       ` Michael S. Tsirkin
2023-07-02  8:57         ` Michael S. Tsirkin
2023-07-11  7:10   ` Ani Sinha
2023-07-11  8:33     ` Michael S. Tsirkin
2023-07-02  5:10 ` [PATCH 0/4] " Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).