Thread (64 messages) 64 messages, 6 authors, 2021-06-11

Re: [PATCH v6 14/20] vfio/mdev: idxd: add 1dwq-v1 mdev type

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-05-23 23:47:40
Also in: kvm, lkml

On Fri, May 21, 2021 at 05:20:31PM -0700, Dave Jiang wrote:
quoted hunk ↗ jump to hunk
Add mdev device type "1dwq-v1" support code. 1dwq-v1 is defined as a
single DSA gen1 dedicated WQ. This WQ cannot be shared between guests. The
guest also cannot change any WQ configuration.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
 drivers/vfio/mdev/idxd/mdev.c |  173 +++++++++++++++++++++++++++++++++++++++--
 1 file changed, 166 insertions(+), 7 deletions(-)
diff --git a/drivers/vfio/mdev/idxd/mdev.c b/drivers/vfio/mdev/idxd/mdev.c
index e484095baeea..9f6c4997ec24 100644
+++ b/drivers/vfio/mdev/idxd/mdev.c
@@ -22,6 +22,13 @@
 #include "idxd.h"
 #include "mdev.h"
 
+static const char idxd_dsa_1dwq_name[] = "dsa-1dwq-v1";
+static const char idxd_iax_1dwq_name[] = "iax-1dwq-v1";
Dare I ask why this is "v1"? If you need to significantly change
something you should make a whole new mdev.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help