://github.com/oasis-tcs/virtio-spec/commit/03c2d32e5093ca9f2a17797242fbef88efe94b8c
Reviewed-by: Jason Gunthorpe
Reviewed-by: Kevin Tian
Signed-off-by: Yishai Hadas
---
MAINTAINERS | 7 +
drivers/vfio/pci/Kconfig | 2 +
drivers/vfio/pci/Makefile| 2
access to the BAR is needed.
Reviewed-by: Jason Gunthorpe
Reviewed-by: Kevin Tian
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 50 +---
include/linux/vfio_pci_core.h| 19
2 files changed, 45 insertions(+), 24 deletions(-)
diff
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 7 ---
include/linux/vfio_pci_core.h| 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c b/drivers/vfio/pci/vfio_pci_rdwr.c
index e27de61ac9fe..a9887fd6de46 100644
. For now, only support legacy IO on X86.
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/Makefile | 1 +
drivers/virtio/virtio_pci_admin_legacy_io.c | 244
drivers/virtio/virtio_pci_common.c | 11 +
drivers/virtio
Initialize the supported admin commands upon activating the admin queue.
The supported commands are saved as part of the admin queue context.
Next patches in this series will expose APIs to use them.
Reviewed-by: Feng Liu
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file
y the notification region
information.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_pci.h | 41 +
1 file changed, 41 insertions(+)
diff --git a/in
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
org in the MAINTAINERS file
to be CCed for the new driver as was suggested by Jason.
Yishai
Feng Liu (4):
virtio: Define feature bit for administration virtqueue
virtio-pci: Introduce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yishai Hadas
://github.com/oasis-tcs/virtio-spec/commit/03c2d32e5093ca9f2a17797242fbef88efe94b8c
Reviewed-by: Jason Gunthorpe
Reviewed-by: Kevin Tian
Signed-off-by: Yishai Hadas
---
MAINTAINERS | 7 +
drivers/vfio/pci/Kconfig | 2 +
drivers/vfio/pci/Makefile| 2
access to the BAR is needed.
Reviewed-by: Jason Gunthorpe
Reviewed-by: Kevin Tian
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 50 +---
include/linux/vfio_pci_core.h| 19
2 files changed, 45 insertions(+), 24 deletions(-)
diff
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 7 ---
include/linux/vfio_pci_core.h| 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c b/drivers/vfio/pci/vfio_pci_rdwr.c
index e27de61ac9fe..a9887fd6de46 100644
. For now, only support legacy IO on X86.
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/Makefile | 1 +
drivers/virtio/virtio_pci_admin_legacy_io.c | 244
drivers/virtio/virtio_pci_common.c | 11 +
drivers/virtio
Initialize the supported admin commands upon activating the admin queue.
The supported commands are saved as part of the admin queue context.
Next patches in this series will expose APIs to use them.
Reviewed-by: Feng Liu
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers
y the notification region
information.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_pci.h | 41 +
1 file changed, 41 insertions(+)
diff --git a/in
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file
(4):
virtio: Define feature bit for administration virtqueue
virtio-pci: Introduce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yishai Hadas (5):
virtio-pci: Initialize the supported admin commands
virtio-pci: Introduce APIs to exec
On 17/12/2023 15:42, Michael S. Tsirkin wrote:
On Sun, Dec 17, 2023 at 03:20:30PM +0200, Yishai Hadas wrote:
On 17/12/2023 14:20, Michael S. Tsirkin wrote:
On Sun, Dec 17, 2023 at 12:39:48PM +0200, Yishai Hadas wrote:
On 14/12/2023 18:40, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 06
On 17/12/2023 14:20, Michael S. Tsirkin wrote:
On Sun, Dec 17, 2023 at 12:39:48PM +0200, Yishai Hadas wrote:
On 14/12/2023 18:40, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 06:25:25PM +0200, Yishai Hadas wrote:
On 14/12/2023 18:15, Alex Williamson wrote:
On Thu, 14 Dec 2023 18:03:30
On 14/12/2023 18:40, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 06:25:25PM +0200, Yishai Hadas wrote:
On 14/12/2023 18:15, Alex Williamson wrote:
On Thu, 14 Dec 2023 18:03:30 +0200
Yishai Hadas wrote:
On 14/12/2023 17:05, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 07:59:05AM
On 14/12/2023 18:15, Alex Williamson wrote:
On Thu, 14 Dec 2023 18:03:30 +0200
Yishai Hadas wrote:
On 14/12/2023 17:05, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 07:59:05AM -0700, Alex Williamson wrote:
On Thu, 14 Dec 2023 11:37:10 +0200
Yishai Hadas wrote:
OK, if so, we can come
On 14/12/2023 17:05, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 07:59:05AM -0700, Alex Williamson wrote:
On Thu, 14 Dec 2023 11:37:10 +0200
Yishai Hadas wrote:
On 14/12/2023 11:19, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 11:03:49AM +0200, Yishai Hadas wrote:
On 14/12/2023
://github.com/oasis-tcs/virtio-spec/commit/03c2d32e5093ca9f2a17797242fbef88efe94b8c
Reviewed-by: Jason Gunthorpe
Signed-off-by: Yishai Hadas
---
MAINTAINERS | 7 +
drivers/vfio/pci/Kconfig | 2 +
drivers/vfio/pci/Makefile| 2 +
drivers/vfio/pci/virtio
access to the BAR is needed.
Reviewed-by: Jason Gunthorpe
Reviewed-by: Kevin Tian
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 50 +---
include/linux/vfio_pci_core.h| 19
2 files changed, 45 insertions(+), 24 deletions(-)
diff
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 7 ---
include/linux/vfio_pci_core.h| 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c b/drivers/vfio/pci/vfio_pci_rdwr.c
index e27de61ac9fe..a9887fd6de46 100644
will be used by the next patches from this series.
Note:
As of some limitations in the legacy driver (e.g. lack of memory
barriers in ARM, endian-ness is broken in PPC) the
virtio_pci_admin_has_legacy_io() returns false on non X86 systems.
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
Initialize the supported admin commands upon activating the admin queue.
The supported commands are saved as part of the admin queue context.
Next patches in this series will expose APIs to use them.
Reviewed-by: Feng Liu
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers
y the notification region
information.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_pci.h | 41 +
1 file changed, 41 insertions(+)
diff --git a/in
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file
(4):
virtio: Define feature bit for administration virtqueue
virtio-pci: Introduce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yishai Hadas (5):
virtio-pci: Initialize the supported admin commands
virtio-pci: Introduce A
On 14/12/2023 11:19, Michael S. Tsirkin wrote:
On Thu, Dec 14, 2023 at 11:03:49AM +0200, Yishai Hadas wrote:
On 14/12/2023 8:38, Michael S. Tsirkin wrote:
On Thu, Dec 07, 2023 at 12:28:20PM +0200, Yishai Hadas wrote:
Introduce a vfio driver over virtio devices to support the legacy
interface
On 14/12/2023 8:38, Michael S. Tsirkin wrote:
On Thu, Dec 07, 2023 at 12:28:20PM +0200, Yishai Hadas wrote:
Introduce a vfio driver over virtio devices to support the legacy
interface functionality for VFs.
Background, from the virtio spec [1
On 14/12/2023 8:07, Tian, Kevin wrote:
From: Yishai Hadas
Sent: Wednesday, December 13, 2023 8:25 PM
On 13/12/2023 10:23, Tian, Kevin wrote:
From: Yishai Hadas
Sent: Thursday, December 7, 2023 6:28 PM
+
+static ssize_t virtiovf_pci_read_config(struct vfio_device *core_vdev
On 13/12/2023 10:23, Tian, Kevin wrote:
From: Yishai Hadas
Sent: Thursday, December 7, 2023 6:28 PM
Any read/write towards the control parts of the BAR will be captured by
the new driver and will be translated into admin commands towards the
device.
Any data path read/write access (i.e
On 07/12/2023 12:28, Yishai Hadas wrote:
This series introduce a vfio driver over virtio devices to support the
legacy interface functionality for VFs.
Background, from the virtio spec [1].
In some systems, there is a need
/03c2d32e5093ca9f2a17797242fbef88efe94b8c
Reviewed-by: Jason Gunthorpe
Signed-off-by: Yishai Hadas
---
MAINTAINERS | 7 +
drivers/vfio/pci/Kconfig | 2 +
drivers/vfio/pci/Makefile| 2 +
drivers/vfio/pci/virtio/Kconfig | 16 +
drivers/vfio/pci/virtio
access to the BAR is needed.
Reviewed-by: Jason Gunthorpe
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 50 +---
include/linux/vfio_pci_core.h| 19
2 files changed, 45 insertions(+), 24 deletions(-)
diff --git a/drivers/vfio/pci
Expose vfio_pci_core_setup_barmap() to be used by drivers.
This will let drivers to mmap a BAR and re-use it from both vfio and the
driver when it's applicable.
This API will be used in the next patches by the vfio/virtio coming
driver.
Reviewed-by: Jason Gunthorpe
Signed-off-by: Yishai Hadas
will be used by the next patches from this series.
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio_pci_common.c | 11 ++
drivers/virtio/virtio_pci_common.h | 2 +
drivers/virtio/virtio_pci_modern.c | 245 +
include/linux
Initialize the supported admin commands upon activating the admin queue.
The supported commands are saved as part of the admin queue context.
Next patches in this series will expose APIs to use them.
Reviewed-by: Feng Liu
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers
y the notification region
information.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_pci.h | 41 +
1 file changed, 41 insertions(+)
diff --git a/in
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file
ion virtqueue
virtio-pci: Introduce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yishai Hadas (5):
virtio-pci: Initialize the supported admin commands
virtio-pci: Introduce APIs to execute legacy IO admin commands
vfio/pci: Exp
On 07/12/2023 3:09, Jason Gunthorpe wrote:
On Wed, Dec 06, 2023 at 10:38:57AM +0200, Yishai Hadas wrote:
+static ssize_t
+virtiovf_pci_core_read(struct vfio_device *core_vdev, char __user *buf,
+ size_t count, loff_t *ppos)
+{
+ struct virtiovf_pci_core_device
/03c2d32e5093ca9f2a17797242fbef88efe94b8c
Signed-off-by: Yishai Hadas
---
MAINTAINERS | 7 +
drivers/vfio/pci/Kconfig | 2 +
drivers/vfio/pci/Makefile| 2 +
drivers/vfio/pci/virtio/Kconfig | 16 +
drivers/vfio/pci/virtio/Makefile | 4 +
drivers/vfio
access to the BAR is needed.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 50 +---
include/linux/vfio_pci_core.h| 19
2 files changed, 45 insertions(+), 24 deletions(-)
diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c b/drivers/vfio
Expose vfio_pci_core_setup_barmap() to be used by drivers.
This will let drivers to mmap a BAR and re-use it from both vfio and the
driver when it's applicable.
This API will be used in the next patches by the vfio/virtio coming
driver.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci
Initialize the supported admin commands upon activating the admin queue.
The supported commands are saved as part of the admin queue context.
Next patches in this series will expose APIs to use them.
Reviewed-by: Feng Liu
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers
will be used by the next patches from this series.
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio_pci_common.c | 11 ++
drivers/virtio/virtio_pci_common.h | 2 +
drivers/virtio/virtio_pci_modern.c | 245 +
include/linux
y the notification region
information.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_pci.h | 41 +
1 file changed, 41 insertions(+)
diff --git a/in
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio
org in the MAINTAINERS file
to be CCed for the new driver as was suggested by Jason.
Yishai
Feng Liu (4):
virtio: Define feature bit for administration virtqueue
virtio-pci: Introduce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yis
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file
/03c2d32e5093ca9f2a17797242fbef88efe94b8c
Signed-off-by: Yishai Hadas
---
MAINTAINERS | 7 +
drivers/vfio/pci/Kconfig | 2 +
drivers/vfio/pci/Makefile| 2 +
drivers/vfio/pci/virtio/Kconfig | 16 +
drivers/vfio/pci/virtio/Makefile | 4 +
drivers/vfio
access to the BAR is needed.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 46 +---
include/linux/vfio_pci_core.h| 19 +
2 files changed, 43 insertions(+), 22 deletions(-)
diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c b/drivers/vfio
Expose vfio_pci_core_setup_barmap() to be used by drivers.
This will let drivers to mmap a BAR and re-use it from both vfio and the
driver when it's applicable.
This API will be used in the next patches by the vfio/virtio coming
driver.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci
Initialize the supported admin commands upon activating the admin queue.
The supported commands are saved as part of the admin queue context.
Next patches in this series will expose APIs to use them.
Reviewed-by: Feng Liu
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers
will be used by the next patches from this series.
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio_pci_common.c | 11 ++
drivers/virtio/virtio_pci_common.h | 2 +
drivers/virtio/virtio_pci_modern.c | 245 +
include/linux
y the notification region
information.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_pci.h | 41 +
1 file changed, 41 insertions(+)
diff --git a/in
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
uce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yishai Hadas (5):
virtio-pci: Initialize the supported admin commands
virtio-pci: Introduce APIs to execute legacy IO admin commands
vfio/pci: Expose vfio_pci_core_setup_bar
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Acked-by: Michael S. Tsirkin
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file
On 05/12/2023 1:32, Alex Williamson wrote:
On Sun, 3 Dec 2023 16:54:41 +0200
Yishai Hadas wrote:
On 01/12/2023 0:10, Alex Williamson wrote:
On Wed, 29 Nov 2023 16:37:46 +0200
Yishai Hadas wrote:
Introduce a vfio driver over virtio devices to support the legacy
interface functionality
On 01/12/2023 0:10, Alex Williamson wrote:
On Wed, 29 Nov 2023 16:37:46 +0200
Yishai Hadas wrote:
Introduce a vfio driver over virtio devices to support the legacy
interface functionality for VFs.
Background, from the virtio spec [1
On 30/11/2023 21:20, Alex Williamson wrote:
On Wed, 29 Nov 2023 16:37:45 +0200
Yishai Hadas wrote:
Expose vfio_pci_iowrite/read##size() to let it be used by drivers.
This functionality is needed to enable direct access to some physical
BAR of the device with the proper locks/checks in place
On 30/11/2023 12:07, Michael S. Tsirkin wrote:
On Wed, Nov 29, 2023 at 04:37:37PM +0200, Yishai Hadas wrote:
This series introduce a vfio driver over virtio devices to support the
legacy interface functionality for VFs.
Background, from the virtio spec [1
Expose vfio_pci_core_setup_barmap() to be used by drivers.
This will let drivers to mmap a BAR and re-use it from both vfio and the
driver when it's applicable.
This API will be used in the next patches by the vfio/virtio coming
driver.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci
will be used by the next patches from this series.
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio_pci_common.c | 11 ++
drivers/virtio/virtio_pci_common.h | 2 +
drivers/virtio/virtio_pci_modern.c | 245 +
include/linux/virtio_pci_admin.h | 21 +++
4 files
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio/virtio_pci_common.h | 15
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Signed-off-by: Yishai Hadas
---
drivers/virtio
bit for administration virtqueue
virtio-pci: Introduce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yishai Hadas (5):
virtio-pci: Initialize the supported admin commands
virtio-pci: Introduce APIs to execute legacy IO admin comma
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file changed, 7 insertions(+), 1
On 13/11/2023 12:06, Michael S. Tsirkin wrote:
On Mon, Nov 13, 2023 at 10:02:13AM +0200, Yishai Hadas wrote:
This series introduce a vfio driver over virtio devices to support the
legacy interface functionality for VFs.
Because of LPC, pls allow a bit more time for review. Thanks!
Hi Michael
Expose vfio_pci_core_setup_barmap() to be used by drivers.
This will let drivers to mmap a BAR and re-use it from both vfio and the
driver when it's applicable.
This API will be used in the next patches by the vfio/virtio coming
driver.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci
/03c2d32e5093ca9f2a17797242fbef88efe94b8c
Signed-off-by: Yishai Hadas
---
MAINTAINERS | 7 +
drivers/vfio/pci/Kconfig | 2 +
drivers/vfio/pci/Makefile| 2 +
drivers/vfio/pci/virtio/Kconfig | 16 +
drivers/vfio/pci/virtio/Makefile | 4 +
drivers/vfio
to the BAR is needed.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/vfio_pci_rdwr.c | 10 ++
include/linux/vfio_pci_core.h| 19 +++
2 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/drivers/vfio/pci/vfio_pci_rdwr.c b/drivers/vfio/pci/vfio_pci_rdwr.c
will be used by the next patches from this series.
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio_pci_common.c | 11 ++
drivers/virtio/virtio_pci_common.h | 2 +
drivers/virtio/virtio_pci_modern.c | 245 +
include/linux/virtio_pci_admin.h | 21 +++
4 files
Initialize the supported admin commands upon activating the admin queue.
The supported commands are saved as part of the admin queue context.
Next patches in this series will expose APIs to use them.
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio_pci_common.h | 1 +
drivers/virtio
y the notification region
information.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_pci.h | 44 +
1 file changed, 44 insertions(+)
diff --git a/include/uapi/linux/virtio_pci.h b/
virtqueue
is activated for upper layer users only after setting DRIVER_OK status.
[1] The driver MUST NOT send any buffer available notifications to the
device before setting DRIVER_OK.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Signed-off-by: Yishai Hadas
---
drivers/virtio
, net, blk to utilize it.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Signed-off-by: Yishai Hadas
---
drivers/virtio/virtio.c| 37 +++--
drivers/virtio/virtio_pci_common.c | 3 ++
drivers/virtio/virtio_pci_common.h | 15
From: Feng Liu
Introduce VIRTIO_F_ADMIN_VQ which is used for administration virtqueue
support.
Signed-off-by: Feng Liu
Reviewed-by: Parav Pandit
Reviewed-by: Jiri Pirko
Signed-off-by: Yishai Hadas
---
include/uapi/linux/virtio_config.h | 8 +++-
1 file changed, 7 insertions(+), 1
org in the MAINTAINERS file
to be CCed for the new driver as was suggested by Jason.
Yishai
Feng Liu (4):
virtio: Define feature bit for administration virtqueue
virtio-pci: Introduce admin virtqueue
virtio-pci: Introduce admin command sending function
virtio-pci: Introduce admin commands
Yis
92 matches
Mail list logo