[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1523246] Re: Virtio-blk does not support TRIM

From: Rustam Abdullaev
Subject: [Qemu-devel] [Bug 1523246] Re: Virtio-blk does not support TRIM
Date: Sat, 04 Mar 2017 13:50:51 -0000

> Virtio will never support discard requests.

 - what is that?

> Please use virtio-scsi.

 - in some tests, SCSI emulation appears 7 times slower than the
paravirtualized bus.

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  Virtio-blk does not support TRIM

Status in QEMU:

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 
  # 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-

To manage notifications about this bug go to:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]