Re: [PATCH v4 4/6] Documentation/vfio-mediated-device.txt: Update for vfio/mdev aggregation support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 26 Nov 2018 16:48:54 +0800
Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx> wrote:

> Update vfio/mdev doc on new "aggregate" create parameter, new "aggregation"
> attribute and "aggregated_instances" attribute for mdev device.
> 
> Cc: Kirti Wankhede <kwankhede@xxxxxxxxxx>
> Cc: Alex Williamson <alex.williamson@xxxxxxxxxx>
> Cc: Kevin Tian <kevin.tian@xxxxxxxxx>
> Cc: Cornelia Huck <cohuck@xxxxxxxxxx>
> Signed-off-by: Zhenyu Wang <zhenyuw@xxxxxxxxxxxxxxx>
> ---
>  Documentation/vfio-mediated-device.txt | 44 ++++++++++++++++++++++----
>  1 file changed, 38 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/vfio-mediated-device.txt b/Documentation/vfio-mediated-device.txt
> index c3f69bcaf96e..cf4849a34c9f 100644
> --- a/Documentation/vfio-mediated-device.txt
> +++ b/Documentation/vfio-mediated-device.txt
> @@ -211,12 +211,20 @@ Directories and files under the sysfs for Each Physical Device
>    |     |   |--- description
>    |     |   |--- [devices]
>    |     |--- [<type-id>]
> -  |          |--- create
> -  |          |--- name
> -  |          |--- available_instances
> -  |          |--- device_api
> -  |          |--- description
> -  |          |--- [devices]
> +  |     |    |--- create
> +  |     |    |--- name
> +  |     |    |--- available_instances
> +  |     |    |--- device_api
> +  |     |    |--- description
> +  |     |    |--- [devices]
> +  |     |--- [<type-id>]
> +  |     |    |--- create
> +  |     |    |--- name
> +  |     |    |--- available_instances
> +  |     |    |--- device_api
> +  |     |    |--- description
> +  |     |    |--- <aggregation>
> +  |     |    |--- [devices]
>  
>  * [mdev_supported_types]
>  
> @@ -260,6 +268,23 @@ Directories and files under the sysfs for Each Physical Device
>    This attribute should show brief features/description of the type. This is
>    optional attribute.
>  
> +* <aggregation>
> +
> +  <aggregation> is an optional attributes to show max number that the
> +  instance resources of [<type-id>] can be aggregated to be assigned
> +  for one mdev device.

What about
"<aggregation> is an optional attribute showing the maximum number of
instance resources of [<type-id>] that can be aggregated to be assigned
to one mdev device."
?

> No <aggregation> attribute means driver doesn't

s/means/means that the/

> +  support to aggregate instance resoures for one mdev device.

s/to aggregate resoures/aggregation of resources/

> +  <aggregation> may be less than available_instances which depends on
> +  driver. <aggregation> number can't exceed available_instances.
> +
> +  Set number of instances by appending "aggregate=N" parameter for
> +  create attribute. By default without "aggregate=N" parameter it
> +  will create one instance as normal.
> +
> +Example::
> +
> +	# echo "<uuid>,aggregate=N" > create
> +
>  Directories and Files Under the sysfs for Each mdev Device
>  ----------------------------------------------------------
>  
> @@ -268,6 +293,7 @@ Directories and Files Under the sysfs for Each mdev Device
>    |- [parent phy device]
>    |--- [$MDEV_UUID]
>           |--- remove
> +	 |--- <aggregated_instances>
>           |--- mdev_type {link to its type}
>           |--- vendor-specific-attributes [optional]
>  
> @@ -281,6 +307,12 @@ Example::
>  
>  	# echo 1 > /sys/bus/mdev/devices/$mdev_UUID/remove
>  
> +* <aggregated_instances> (read only)
> +
> +For mdev created with aggregate parameter, this shows number of
> +instances assigned for this mdev. For normal type this attribute will
> +not exist.
> +
>  Mediated device Hot plug
>  ------------------------
>  




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux