qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1523246] [NEW] Cannot TRIM with VirtIO
@ 2015-12-06 15:07 David Manouchehri
  2015-12-06 20:02 ` [Qemu-devel] [Bug 1523246] " David Manouchehri
                   ` (16 more replies)
  0 siblings, 17 replies; 21+ messages in thread
From: David Manouchehri @ 2015-12-06 15:07 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

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

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: trim virtio windows

** Attachment added: "2015-12-06-14:04:03-screenshot.png"
   https://bugs.launchpad.net/bugs/1523246/+attachment/4530502/+files/2015-12-06-14%3A04%3A03-screenshot.png

-- 
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:
  Cannot TRIM with VirtIO

Status in QEMU:
  New

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-12-13  8:21 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).