linux/drivers/vdpa/vdpa_sim
Stefano Garzarella 899c4d187f vdpa_sim_blk: add support for vdpa management tool
Enable the user to create vDPA block simulator devices using the
vdpa management tool:

    # Show vDPA supported devices
    $ vdpa mgmtdev show
    vdpasim_blk:
      supported_classes block

    # Create a vDPA block device named as 'blk0' from the management
    # device vdpasim:
    $ vdpa dev add mgmtdev vdpasim_blk name blk0

    # Show the info of the 'blk0' device just created
    $ vdpa dev show blk0 -jp
    {
        "dev": {
            "blk0": {
                "type": "block",
                "mgmtdev": "vdpasim_blk",
                "vendor_id": 0,
                "max_vqs": 1,
                "max_vq_size": 256
            }
        }
    }

    # Delete the vDPA device after its use
    $ vdpa dev del blk0

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210315163450.254396-15-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2021-05-03 04:55:53 -04:00
..
Makefile vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -04:00
vdpa_sim_blk.c vdpa_sim_blk: add support for vdpa management tool 2021-05-03 04:55:53 -04:00
vdpa_sim_net.c vdpa_sim: Skip typecasting from void* 2021-03-14 04:37:36 -04:00
vdpa_sim.c vdpa: add get_config_size callback in vdpa_config_ops 2021-05-03 04:55:53 -04:00
vdpa_sim.h vdpa_sim: use iova module to allocate IOVA addresses 2021-05-03 04:55:52 -04:00