From: yadong.qi@intel.com
To: qemu-block@nongnu.org, kwolf@redhat.com, hreitz@redhat.com,
stefanha@redhat.com, fam@euphon.net, mst@redhat.com
Cc: kai.z.wang@intel.com, yadong.qi@intel.com, luhai.chen@intel.com,
qemu-devel@nongnu.org
Subject: [PATCH 0/2] support BLKSECDISCARD
Date: Mon, 15 Nov 2021 12:51:58 +0800 [thread overview]
Message-ID: <20211115045200.3567293-1-yadong.qi@intel.com> (raw)
From: Yadong Qi <yadong.qi@intel.com>
Support BLKSECDISCARD passthrough for raw host_device backend.
For virtio-blk device:
Add new virtio feature: VIRTIO_BLK_F_SECDISCARD.
Add new virtio command: VIRTIO_BLK_T_SECDISCARD.
Usage:
qemu-system-x86_64 \
... \
-drive file=/dev/mmcblk0p2,if=none,format=raw,discard=on,secdiscard=on,id=sd0 \
-device virtio-blk-pci,drive=sd0,id=sd0_vblk \
...
Yadong Qi (2):
block:hdev: support BLKSECDISCARD
virtio-blk: support BLKSECDISCARD
block.c | 46 +++++++++++++++++++
block/blkdebug.c | 5 ++-
block/blklogwrites.c | 6 ++-
block/blkreplay.c | 5 ++-
block/block-backend.c | 15 ++++---
block/copy-before-write.c | 5 ++-
block/copy-on-read.c | 5 ++-
block/coroutines.h | 6 ++-
block/file-posix.c | 50 ++++++++++++++++++---
block/filter-compress.c | 5 ++-
block/io.c | 5 ++-
block/mirror.c | 5 ++-
block/nbd.c | 3 +-
block/nvme.c | 3 +-
block/preallocate.c | 5 ++-
block/qcow2-refcount.c | 4 +-
block/qcow2.c | 3 +-
block/raw-format.c | 5 ++-
block/throttle.c | 5 ++-
hw/block/virtio-blk.c | 24 ++++++++--
hw/ide/core.c | 1 +
hw/nvme/ctrl.c | 3 +-
hw/scsi/scsi-disk.c | 2 +-
include/block/block.h | 13 +++++-
include/block/block_int.h | 2 +-
include/block/raw-aio.h | 4 +-
include/standard-headers/linux/virtio_blk.h | 4 ++
include/sysemu/block-backend.h | 1 +
tests/unit/test-block-iothread.c | 9 ++--
29 files changed, 195 insertions(+), 54 deletions(-)
--
2.25.1
next reply other threads:[~2021-11-15 4:56 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-15 4:51 yadong.qi [this message]
2021-11-15 4:51 ` [PATCH 1/2] block:hdev: support BLKSECDISCARD yadong.qi
2021-11-15 12:40 ` Kevin Wolf
2021-11-16 1:54 ` Qi, Yadong
2021-11-15 14:12 ` Stefan Hajnoczi
2021-11-16 2:03 ` Qi, Yadong
2021-11-16 10:58 ` Stefan Hajnoczi
2021-11-17 5:53 ` Christoph Hellwig
2021-11-17 10:32 ` Stefan Hajnoczi
2021-11-18 1:13 ` Qi, Yadong
2021-11-15 4:52 ` [PATCH 2/2] virtio-blk: " yadong.qi
2021-11-15 10:00 ` Stefano Garzarella
2021-11-16 1:26 ` Qi, Yadong
2021-11-15 10:57 ` Michael S. Tsirkin
2021-11-16 1:33 ` Qi, Yadong
2021-11-15 14:26 ` Stefan Hajnoczi
2021-11-16 2:13 ` Qi, Yadong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211115045200.3567293-1-yadong.qi@intel.com \
--to=yadong.qi@intel.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=kai.z.wang@intel.com \
--cc=kwolf@redhat.com \
--cc=luhai.chen@intel.com \
--cc=mst@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).