From: Paolo Bonzini <bonzini@gnu.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1523246] Re: Cannot TRIM with VirtIO
Date: Mon, 02 Jan 2017 08:22:13 -0000 [thread overview]
Message-ID: <20170102082215.3340.77828.launchpad@gac.canonical.com> (raw)
In-Reply-To: 20151206150708.14182.82430.malonedeb@wampee.canonical.com
** Changed in: qemu
Status: New => Confirmed
** Changed in: qemu
Importance: Undecided => Wishlist
** Summary changed:
- Cannot TRIM with VirtIO
+ VirtIO does not support TRIM
** Summary changed:
- VirtIO does not support TRIM
+ Virtio-blk does not support TRIM
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1523246
Title:
Virtio-blk does not support TRIM
Status in QEMU:
Confirmed
Bug description:
When model=virtio is used, TRIM is not supported.
# mount -o discard /dev/vda4 /mnt
# mount | tail -1
/dev/vda4 on /mnt type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
# fstrim /mnt/
fstrim: /mnt/: the discard operation is not supported
Booting without model=virtio allows using TRIM (in Windows as well).
Full QEMU line:
qemu-system-x86_64 -enable-kvm -cpu host -bios
/usr/share/ovmf/ovmf_x64.bin -smp 2 -m 7G -vga qxl -usbdevice tablet
-net nic,model=virtio -net user -drive discard=unmap,detect-
zeroes=unmap,cache=none,file=vms/win10.hd.img.vmdk,format=vmdk,if=virtio
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1523246/+subscriptions
next prev parent reply other threads:[~2017-01-02 8:34 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-06 15:07 [Qemu-devel] [Bug 1523246] [NEW] Cannot TRIM with VirtIO David Manouchehri
2015-12-06 20:02 ` [Qemu-devel] [Bug 1523246] " David Manouchehri
2015-12-06 20:02 ` David Manouchehri
2016-12-24 19:16 ` Коренберг Марк
2017-01-02 8:22 ` Paolo Bonzini [this message]
2017-03-04 13:50 ` [Qemu-devel] [Bug 1523246] Re: Virtio-blk does not support TRIM Rustam Abdullaev
2017-04-19 12:05 ` Mike Mol
2017-04-19 12:08 ` Mike Mol
2017-04-19 13:15 ` Jack Wang
2017-04-19 12:21 ` Mike Mol
2019-01-12 3:12 ` James Harvey
2019-01-14 9:30 ` Stefan Hajnoczi
2019-04-12 6:57 ` Thomas Huth
2019-04-12 6:57 ` Thomas Huth
2019-04-24 6:01 ` Thomas Huth
2019-04-24 6:01 ` Thomas Huth
2022-12-12 9:43 ` mohammadreza nasrabadi
2022-12-12 10:25 ` Thomas Huth
2022-12-12 12:59 ` mohammadreza nasrabadi
2022-12-12 13:33 ` Thomas Huth
2022-12-13 8:14 ` mohammadreza nasrabadi
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=20170102082215.3340.77828.launchpad@gac.canonical.com \
--to=bonzini@gnu.org \
--cc=1523246@bugs.launchpad.net \
--cc=qemu-devel@nongnu.org \
/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).