[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH 0/3] Add trim/discard/unmap support
SCSIOP_UNMAP SRBs are not generated by Storport. Add a device upper filter (xendisk) to create SCSIOP_UNMAP requests from the appropriate IOCTL. Modify the SCSIOP_UNMAP handler in xenvbd to correctly translate SCSIOP_UNMAP requests into one or more BLKIF_OP_DISCARD requests for the ring. Trim, Discard and Unmap are different names for the same basic operation, which is flagging a number of sectors as unused, so that the disk hardware can reclaim the sectors in the best way for the disk hardware. Owen Smith (3): Decode SCSIOP_UNMAP correctly into BLKIF_OP_DISCARD requests Run XenCrsh sdv before XenVbd sdv Add XenDisk device upper filter build.py | 3 +- src/xendisk/assert.h | 220 ++++ src/xendisk/debug.h | 94 ++ src/xendisk/driver.c | 203 ++++ src/xendisk/driver.h | 68 ++ src/xendisk/fdo.c | 1863 ++++++++++++++++++++++++++++++ src/xendisk/fdo.h | 78 ++ src/xendisk/mutex.h | 113 ++ src/xendisk/pdo.c | 2126 +++++++++++++++++++++++++++++++++++ src/xendisk/pdo.h | 90 ++ src/xendisk/thread.c | 225 ++++ src/xendisk/thread.h | 74 ++ src/xendisk/types.h | 53 + src/xendisk/util.h | 222 ++++ src/xendisk/xendisk.rc | 56 + src/xenvbd.inf | 18 + src/xenvbd/pdo.c | 101 +- vs2012/package/package.vcxproj | 5 +- vs2012/xendisk/xendisk.vcxproj | 84 ++ vs2012/xendisk/xendisk.vcxproj.user | 8 + vs2012/xenvbd.sln | 30 +- vs2013/package/package.vcxproj | 5 +- vs2013/xendisk/xendisk.user | 8 + vs2013/xendisk/xendisk.vcxproj | 112 ++ vs2013/xenvbd.sln | 27 + 25 files changed, 5867 insertions(+), 19 deletions(-) create mode 100644 src/xendisk/assert.h create mode 100644 src/xendisk/debug.h create mode 100644 src/xendisk/driver.c create mode 100644 src/xendisk/driver.h create mode 100644 src/xendisk/fdo.c create mode 100644 src/xendisk/fdo.h create mode 100644 src/xendisk/mutex.h create mode 100644 src/xendisk/pdo.c create mode 100644 src/xendisk/pdo.h create mode 100644 src/xendisk/thread.c create mode 100644 src/xendisk/thread.h create mode 100644 src/xendisk/types.h create mode 100644 src/xendisk/util.h create mode 100644 src/xendisk/xendisk.rc create mode 100644 vs2012/xendisk/xendisk.vcxproj create mode 100644 vs2012/xendisk/xendisk.vcxproj.user create mode 100644 vs2013/xendisk/xendisk.user create mode 100644 vs2013/xendisk/xendisk.vcxproj -- 2.1.0 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |