qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v7 0/4] Add Mediated device support


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v7 0/4] Add Mediated device support
Date: Fri, 2 Sep 2016 23:48:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0


On 02/09/2016 20:33, Kirti Wankhede wrote:
> <Alex> We could even do:
>> >
>> > echo $UUID1:$GROUPA > create
>> >
>> > where $GROUPA is the group ID of a previously created mdev device into
>> > which $UUID1 is to be created and added to the same group.
> </Alex>

>From the point of view of libvirt, I think I prefer Alex's idea.
<group> could be an additional element in the nodedev-create XML:

    <device>
      <name>my-vgpu</name>
      <parent>pci_0000_86_00_0</parent>
      <capability type='mdev'>
        <type id='11'/>
        <uuid>0695d332-7831-493f-9e71-1c85c8911a08</uuid>
        <group>group1</group>
      </capability>
    </device>

(should group also be a UUID?)

Since John brought up the topic of minimal XML, in this case it will be
like this:

    <device>
      <name>my-vgpu</name>
      <parent>pci_0000_86_00_0</parent>
      <capability type='mdev'>
        <type id='11'/>
      </capability>
    </device>

The uuid will be autogenerated by libvirt and if there's no <group> (as
is common for VMs with only 1 vGPU) it will be a single-device group.

Thanks,

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]