Page MenuHomeFreeBSD

hyperv/storvsc: Enable TRIM support for Win2012R2
ClosedPublic

Authored by honzhan_microsoft.com on Aug 3 2016, 5:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 2 2024, 1:38 AM
Unknown Object (File)
Mar 19 2024, 3:21 AM
Unknown Object (File)
Mar 19 2024, 3:07 AM
Unknown Object (File)
Feb 10 2024, 2:32 PM
Unknown Object (File)
Jan 12 2024, 2:30 AM
Unknown Object (File)
Jan 9 2024, 10:15 PM
Unknown Object (File)
Dec 20 2023, 10:02 AM
Unknown Object (File)
Dec 20 2023, 1:36 AM

Details

Summary

On win8 and win2012 the inquiry response indicates the device is SPC-2, but in fact it is SPC-3.
This is a host issue and has fixed on win2016. FreeBSD VM has to manually set SCSI version to SPC-3 to support TRIM.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

honzhan_microsoft.com retitled this revision from to hyperv/storvsc: Enable TRIM support for Win2012R2.
honzhan_microsoft.com updated this object.
sepherosa_gmail.com edited edge metadata.

Fix the comment. Rest looks fine.

sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
2162

UNMAP?

This revision is now accepted and ready to land.Aug 3 2016, 5:27 AM
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
2162

yes, UNMAP is the formal command.

This revision now requires review to proceed.Aug 3 2016, 5:35 AM
This revision is now accepted and ready to land.Aug 3 2016, 5:49 AM
This revision was automatically updated to reflect the committed changes.