[virt-tools-list] [virt-manager PATCH v2] virtManager: UI: add support enable setting multifunction on hostdev

Pavel Hrdina phrdina at redhat.com
Wed May 10 10:57:37 UTC 2017


On Wed, May 10, 2017 at 06:40:30PM +0800, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao at gmail.com>
> 
>   We could turn on/off multifunction of hostdev
>   in page details.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao at gmail.com>
> ---
> v2: drop irrelevant cli part
> 
>  ui/details.ui          | 74 ++++++++++++++++++++++++++++++--------------------
>  virtManager/details.py | 11 +++++++-
>  virtManager/domain.py  |  8 +++++-
>  3 files changed, 62 insertions(+), 31 deletions(-)

Remove the unrelated changes to the UI file.  It's caused by newer
Glade that uses different order of the elements.  You can use
"git add -p" to select only the relevant hunks before committing
the changes instead of "git commit -a".

Adding only the "multifunction" check-box isn't good enough to
help users to configure GPU device assignment.  Like I wrote,
we need to expose UI bits to configure the PCI address as well
not only the "multifunction" attribute or create the address somehow
automatically.  Enabling only "multifunction" would still require
to manually edit the domain XML.

There might be another option, add a feature into libvirt where we
would somehow tell libvirt, that some group of devices should be
grouped together as a different functions and libvirt would handle
the PCI address generation correctly.  Virt-manager would simply
tell libvirt what devices should be assigned the same PCI address
with different function.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20170510/362a0fab/attachment.sig>


More information about the virt-tools-list mailing list