From eskultet at redhat.com Wed Nov 11 05:26:34 2020 Content-Type: multipart/mixed; boundary="===============2150985343618521584==" MIME-Version: 1.0 From: Erik Skultety To: devel at lists.libvirt.org Subject: Re: [PATCH v2 2/2] node_device: detecting mdev_types capability on CSS devices Date: Wed, 11 Nov 2020 11:26:27 +0100 Message-ID: <20201111102627.GC857537@nautilus> In-Reply-To: 5606420a-5715-0f0b-814c-5b68f6f4735c@linux.ibm.com --===============2150985343618521584== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Nov 11, 2020 at 11:15:33AM +0100, Boris Fiuczynski wrote: > On 11/11/20 10:39 AM, Erik Skultety wrote: > > On Tue, Nov 10, 2020 at 07:09:06PM +0100, Boris Fiuczynski wrote: > > > Add detection of mdev_types capability to channel subsystem devices. > > > = > > > Signed-off-by: Boris Fiuczynski > > > Reviewed-by: Bjoern Walk > > > --- > > > docs/drvnodedev.html.in | 5 +- > > > docs/formatnode.html.in | 19 +++- > > > docs/schemas/nodedev.rng | 4 + > > > src/conf/node_device_conf.c | 92 ++++++++++++++++= ++- > > > src/conf/node_device_conf.h | 11 +++ > > > src/conf/virnodedeviceobj.c | 7 +- > > > src/libvirt_private.syms | 1 + > > > src/node_device/node_device_udev.c | 3 + > > > .../css_0_0_fffe_mdev_types.xml | 17 ++++ > > > tests/nodedevxml2xmltest.c | 1 + > > > 10 files changed, 153 insertions(+), 7 deletions(-) > > > create mode 100644 tests/nodedevschemadata/css_0_0_fffe_mdev_types.= xml > > > = > > > diff --git a/docs/drvnodedev.html.in b/docs/drvnodedev.html.in > > > index 0823c1888d..d5191d6d93 100644 > > > --- a/docs/drvnodedev.html.in > > > +++ b/docs/drvnodedev.html.in > > > @@ -139,12 +139,13 @@ > > >

MDEV capability

> > >

> > > - A PCI device capable of creating mediated devices will include= a nested > > > + A device capable of creating mediated devices will include a n= ested > > > capability mdev_types which enumerates all suppo= rted mdev > > > types on the physical device, along with the type attributes = available > > > through sysfs. A detailed description of the XML format for t= he > > > mdev_types capability can be found > > > - here. > > > + here for PCI or > > > + here for CSS. > > = > > Both PCI and CSS mdev_types are just a pointer to the mdev_types XML el= ement. > > How about just fixing the href to MDEVTypesCap? > = > That is fine since from there one gets the list of devices as well. > But than let us cleanly rename the ids in docs/formatnode.html.in as > follows: > = > MDEVCap =3D> MDEVTypesCapPCI > MDEVCapCSS =3D> MDEVTypesCapCSS > MDevTypesCap =3D> MDEVTypesCap Okay, makes sense, but that should come to a trivial standalone patch. I'll let you quickly respin with that along with the other nits, I'll appro= ve and you can then apply what's necessary on Shalini's series :). Erik --===============2150985343618521584==--