Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7382

Supporting vDPA block in libvirt

    • rhel-sst-virtualization-storage
    • ssg_virtualization
    • 13
    • 23
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Developer Preview
    • Hide
      .Developer preview: vDPA block devices

      As a Developer preview, it is now possible to use a virtio datapath accelerator (vDPA) block device as a disk in a virtual machine (VM). To configure a vDPA block device, use the <disk> sub-element in the device XML configuration:

      ----
      <disk type="vhostvdpa" device="disk">
        <driver name="qemu" type="raw" cache="none"/>
        <source dev="/dev/vhost-vdpa-0"/>
        <target dev="vdb" bus="virtio"/>
      </disk>
      ----

      To work properly with a vDPA block device, the VM must be configured with shared memory:
      ----
      <memoryBacking>
        <access mode='shared'/>
      </memoryBacking>
      ----

      To test and debug a vDPA block device, you can use the `vdpa-sim-blk` kernel module to allocate a 128 MB ramdisk:
      ----
      # modprobe -a vhost-vdpa vdpa-sim-blk
      # vdpa dev add mgmtdev vdpasim_blk name blk0
      # ls /sys/bus/vdpa/devices/blk0/ | grep vhost
        vhost-vdpa-0
      ----
      Show
      .Developer preview: vDPA block devices As a Developer preview, it is now possible to use a virtio datapath accelerator (vDPA) block device as a disk in a virtual machine (VM). To configure a vDPA block device, use the <disk> sub-element in the device XML configuration: ---- <disk type="vhostvdpa" device="disk">   <driver name="qemu" type="raw" cache="none"/>   <source dev="/dev/vhost-vdpa-0"/>   <target dev="vdb" bus="virtio"/> </disk> ---- To work properly with a vDPA block device, the VM must be configured with shared memory: ---- <memoryBacking>   <access mode='shared'/> </memoryBacking> ---- To test and debug a vDPA block device, you can use the `vdpa-sim-blk` kernel module to allocate a 128 MB ramdisk: ---- # modprobe -a vhost-vdpa vdpa-sim-blk # vdpa dev add mgmtdev vdpasim_blk name blk0 # ls /sys/bus/vdpa/devices/blk0/ | grep vhost   vhost-vdpa-0 ----
    • In Progress
    • x86_64
    • 9.8.0
    • None

      This bug was initially created as a copy of Bug #1886123

      I am copying this bug because:

      We will add the support of vDPA block devices in QEMU and we need to manage them through libvirt.

      vDPA block will support both hardware and software vDPA implementations, exposing a virtio block device to the guest, that can use the standard virtio-blk device driver to access both of them.

      The host kernel should provides a management API (netlink, devlink) to configure the vDPA block devices (both hardware and software).

              jjongsma@redhat.com Jonathon Jongsma
              sgarzare Stefano Garzarella
              Yingshun Cui
              Fangge Jin Fangge Jin
              Jiří Herrmann Jiří Herrmann
              Votes:
              0 Vote for this issue
              Watchers:
              26 Start watching this issue

                Created:
                Updated:
                Resolved: