style in a few places.
- Add virtualizat...@lists.linux-foundation.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
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
, 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
he 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/
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
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
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
tio-spec/commit/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
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/vfi
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
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 (5):
virtio-pci: Initia
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
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
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
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/vfi
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
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 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 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
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
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 (5):
, 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
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
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
he 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
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
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/vfi
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
tio-spec/commit/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
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
_pci_core_close_device() as was
pointed by Alex.
- Adapt to Vfio multi-line comment style in a few places.
- Add virtualizat...@lists.linux-foundation.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 adm
, 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
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
he 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
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
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
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/vfi
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
tio-spec/commit/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
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
rtualizat...@lists.linux-foundation.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
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
, 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
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
he 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
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
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
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
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
tio-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/Kconfig | 16 +
drivers/
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 to
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 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 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 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
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
Vfio multi-line comment style in a few places.
- Add virtualizat...@lists.linux-foundation.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
, 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
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
he 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
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
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
Tian
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
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
ows.
[1]
https://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/
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
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 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 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 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
Vfio multi-line comment style in a few places.
- Add virtualizat...@lists.linux-foundation.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
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
, 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
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
he 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
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
hance. 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/v
Tian
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
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
ows.
[1]
https://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/Makefi
#x27;.close_device' op to vfio_pci_core_close_device() as was
pointed by Alex.
- Adapt to Vfio multi-line comment style in a few places.
- Add virtualizat...@lists.linux-foundation.org in the MAINTAINERS file
to be CCed for the new driver as was suggested by Jason.
Yishai
Feng Liu (4):
virtio:
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
he 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
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
, 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
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
hance. 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/v
Tian
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
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
ows.
[1]
https://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/Makefi
On 28/10/2024 20:17, Alex Williamson wrote:
On Sun, 27 Oct 2024 12:07:44 +0200
Yishai Hadas wrote:
This series enhances the vfio-virtio driver to support live migration
for virtio-net Virtual Functions (VFs) that are migration-capable.
What's the status of making virtio-net VFs in
On 28/10/2024 18:23, Jason Gunthorpe wrote:
On Mon, Oct 28, 2024 at 10:13:48AM -0600, Alex Williamson wrote:
On Sun, 27 Oct 2024 12:07:44 +0200
Yishai Hadas wrote:
If the virtio spec doesn't support partial contexts, what makes it
beneficial here?
It stil lets the receiver 'warm
he virtio
device only stops initiating outgoing requests(e.g. DMA, MSIx, etc.) but
still must accept incoming operations.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/virtio/Makefile |2 +-
drivers/vfio/pci/virtio/common.h | 104 +++
drivers/vfio/pci/virtio/main.c| 144 ++--
drivers
the default driver operations (i.e., vfio_device_ops) to use
the live migration set, and expand it to include the legacy I/O
operations if they are compiled and supported.
Yishai
Yishai Hadas (7):
virtio_pci: Introduce device parts access commands
virtio: Extend the admin command to include the r
the driver
communicates the functionality and resource limits it plans to utilize.
The capability VIRTIO_DEV_PARTS_CAP specifically represents the device's
parts resource object limit.
Manage the device's parts resource object ID using a common IDA for both
get and set operations.
Signed-
-by: Yishai Hadas
---
drivers/virtio/virtio_pci_common.h | 8 +-
drivers/virtio/virtio_pci_modern.c | 348 +
include/linux/virtio_pci_admin.h | 11 +
3 files changed, 366 insertions(+), 1 deletion(-)
diff --git a/drivers/virtio/virtio_pci_common.h
b/drivers
, modify the default driver operations (i.e.,
vfio_device_ops) to use the live migration set, and extend it to include
legacy I/O operations if they are compiled and supported.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/virtio/Kconfig | 4 +-
drivers/vfio/pci/virtio/Makefile| 1
ation time nearly the same.
Signed-off-by: Yishai Hadas
---
drivers/vfio/pci/virtio/common.h | 4 +
drivers/vfio/pci/virtio/migrate.c | 233 +-
2 files changed, 229 insertions(+), 8 deletions(-)
diff --git a/drivers/vfio/pci/virtio/common.h b/drivers/vfio/pci/virti
1 - 100 of 145 matches
Mail list logo