[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v4 3/9] block: Add VFIO based NVMe driver
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [PATCH v4 3/9] block: Add VFIO based NVMe driver |
Date: |
Wed, 10 Jan 2018 08:44:36 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 01/10/2018 03:18 AM, Fam Zheng wrote:
> This is a new protocol driver that exclusively opens a host NVMe
> controller through VFIO. It achieves better latency than linux-aio by
> completely bypassing host kernel vfs/block layer.
>
> +static BlockDriver bdrv_nvme = {
> + .format_name = "nvme",
> + .protocol_name = "nvme",
> + .instance_size = sizeof(BDRVNVMeState),
> +
> + .bdrv_parse_filename = nvme_parse_filename,
> + .bdrv_file_open = nvme_file_open,
> + .bdrv_close = nvme_close,
> + .bdrv_getlength = nvme_getlength,
> +
> + .bdrv_co_preadv = nvme_co_preadv,
> + .bdrv_co_pwritev = nvme_co_pwritev,
> + .bdrv_co_flush_to_disk = nvme_co_flush,
> + .bdrv_reopen_prepare = nvme_reopen_prepare,
> +
> + .bdrv_co_get_block_status = nvme_co_get_block_status,
Semantic conflict with my pending patches to switch to byte-based block
status in the drivers.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH v4 1/9] stubs: Add stubs for ram block API, (continued)
- [Qemu-block] [PATCH v4 1/9] stubs: Add stubs for ram block API, Fam Zheng, 2018/01/10
- [Qemu-block] [PATCH v4 2/9] util: Introduce vfio helpers, Fam Zheng, 2018/01/10
- [Qemu-block] [PATCH v4 3/9] block: Add VFIO based NVMe driver, Fam Zheng, 2018/01/10
- [Qemu-block] [PATCH v4 4/9] block: Introduce buf register API, Fam Zheng, 2018/01/10
- [Qemu-block] [PATCH v4 5/9] block/nvme: Implement .bdrv_(un)register_buf, Fam Zheng, 2018/01/10
- [Qemu-block] [PATCH v4 6/9] qemu-img: Map bench buffer, Fam Zheng, 2018/01/10