Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 09:52, Libaiqing ha scritto: > Hi paolo, > With -M pc,trim works well in windows guest with ide device and ahci bus. > > About the filter driver,you mean do something in windows virtio-scsi > driver,let it send unmap command to qemu? Yes, it must trap the IOCTL_STORAGE_MA

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-24 Thread Libaiqing
Hi paolo, With -M pc,trim works well in windows guest with ide device and ahci bus. About the filter driver,you mean do something in windows virtio-scsi driver,let it send unmap command to qemu? Thanks baiqing. > -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-23 Thread Paolo Bonzini
Il 24/07/2013 02:53, Libaiqing ha scritto: > Hi paolo, > > I test window guest with ide device with the following config,trim with > ide drive failed. > > 1 The host fs is ext4 with discard option: >/dev/sdb1 on /home/sdb type ext4 (rw,relatime,discard,data=ordered) > >

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-23 Thread Libaiqing
Hi paolo, I test window guest with ide device with the following config,trim with ide drive failed. 1 The host fs is ext4 with discard option: /dev/sdb1 on /home/sdb type ext4 (rw,relatime,discard,data=ordered) 2 qemu config : ide drive with discard open x86_64-softmm

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-22 Thread Paolo Bonzini
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 fi

[Qemu-devel] trim in windows guest witch virtio

2013-07-22 Thread Libaiqing
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.