From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1WBd-00051S-Oa for qemu-devel@nongnu.org; Tue, 23 Jul 2013 02:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1WBc-0001zw-Lo for qemu-devel@nongnu.org; Tue, 23 Jul 2013 02:35:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1WBc-0001x2-FJ for qemu-devel@nongnu.org; Tue, 23 Jul 2013 02:35:04 -0400 Message-ID: <51EE2409.7030501@redhat.com> Date: Tue, 23 Jul 2013 08:34:49 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <5D9ACBBCF6B270468D615C4719A59BE363DFE97F@szxeml548-mbx.china.huawei.com> In-Reply-To: <5D9ACBBCF6B270468D615C4719A59BE363DFE97F@szxeml548-mbx.china.huawei.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] trim in windows guest witch virtio List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Libaiqing Cc: "qemu-devel@nongnu.org" Il 23/07/2013 03:05, Libaiqing ha scritto: > Hi paolo, > Recently I test trim function,and it works well in linux guest with ext4 fs. > > How to test it in windows guest? I got some info like this: > 1 windows7 can send discard command when the storage device is ssd; > 2 find a tool like 'fstrim', 'TRIM' the volume manually. I think it only works with IDE and AHCI on Windows. You need a filter driver to send it on SCSI disks. Paolo