mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Question] Is it must for vfio-mdev parent driver to implement a pci-compliant configuration r/w interface
@ 2023-12-26  2:30 Wu Zongyong
  2024-01-02 19:28 ` Alex Williamson
  0 siblings, 1 reply; 2+ messages in thread
From: Wu Zongyong @ 2023-12-26  2:30 UTC (permalink / raw)
  To: alex.williamson; +Cc: linux-pci, linux-kernel, wutu.xq2

Hi,

For vfio, I know there are two method to get region size:
  1. VFIO_DEVICE_GET_REGION_INFO ioctl
  2. write a value of all 1's to the bar register of vfio-device fd
    and then read the value back which is described in pci spec

Now I am curious about is it a must for a vfio-mdev parent driver to
implement the method 2? Or it is just a optional interface.

Thanks,
Wu Zongyong



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

end of thread, other threads:[~2024-01-02 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-26  2:30 [Question] Is it must for vfio-mdev parent driver to implement a pci-compliant configuration r/w interface Wu Zongyong
2024-01-02 19:28 ` Alex Williamson

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®