Can we have the slot name and path for PCI NVMe devices on Virtual machine same as KVM host ?

General support questions
Post Reply
pharthiphan
Posts: 35
Joined: 2018/02/20 05:01:28

Can we have the slot name and path for PCI NVMe devices on Virtual machine same as KVM host ?

Post by pharthiphan » 2018/02/20 05:08:36

Can we have the slot name and path for PCI NVMe devices on Virtual machine same as KVM host ?

NVMe disk available on KVM Host

Code: Select all

# virsh nodedev-dumpxml pci_0000_01_00_0
<device>
  <name>pci_0000_01_00_0</name>
  [b]<path>/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0</path>[/b]
  <parent>pci_0000_00_01_0</parent>
  <driver>
    <name>vfio-pci</name>
  </driver>
  <capability type='pci'>
    <domain>0</domain>
    <bus>1</bus>
    <slot>0</slot>
    <function>0</function>
    <product id='0x0953'>PCIe Data Center SSD</product>
    <vendor id='0x8086'>Intel Corporation</vendor>
    <iommuGroup number='28'>
      <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </iommuGroup>
    <numa node='0'/>
    <pci-express>
      <link validity='cap' port='0' speed='8' width='4'/>
      <link validity='sta' speed='8' width='4'/>
    </pci-express>
  </capability>
</device>
NVMe Device assigned to Virtual Machine

Code: Select all

virsh dumpxml ime140-01
.....
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev1'/>
      [color=#FF0000]<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>[/color]
    </hostdev>
.....

Post Reply