From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5fe0-0005uE-IC for qemu-devel@nongnu.org; Sun, 06 Dec 2015 15:10:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5fdx-0006Jr-HV for qemu-devel@nongnu.org; Sun, 06 Dec 2015 15:10:52 -0500 Received: from indium.canonical.com ([91.189.90.7]:58996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5fdx-0006JZ-Bw for qemu-devel@nongnu.org; Sun, 06 Dec 2015 15:10:49 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1a5fdw-0001Zs-Et for ; Sun, 06 Dec 2015 20:10:48 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A75BE2E80D2 for ; Sun, 6 Dec 2015 20:10:46 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2015 20:02:29 -0000 From: David Manouchehri Sender: bounces@canonical.com References: <20151206150708.14182.82430.malonedeb@wampee.canonical.com> Message-Id: <20151206200229.14796.6590.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1523246] Re: Cannot TRIM with VirtIO Reply-To: Bug 1523246 <1523246@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Attachment added: "2015-12-06-19:20:59-screenshot.png" https://bugs.launchpad.net/qemu/+bug/1523246/+attachment/4530556/+files/= 2015-12-06-19%3A20%3A59-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=3Dvirtio 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=3D0,grou= p_id=3D0,allow_other,blksize=3D4096) # fstrim /mnt/ fstrim: /mnt/: the discard operation is not supported Booting without model=3Dvirtio 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=3Dvirtio -net user -drive discard=3Dunmap,detect- zeroes=3Dunmap,cache=3Dnone,file=3Dvms/win10.hd.img.vmdk,format=3Dvmdk,if= =3Dvirtio To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1523246/+subscriptions