On Wed, May 10, 2017 at 06:40:30PM +0800, Chen Hanxiao wrote: > From: Chen Hanxiao <chenhanxiao@xxxxxxxxx> > > We could turn on/off multifunction of hostdev > in page details. > > Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxx> > --- > 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
Attachment:
signature.asc
Description: Digital signature
_______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list