numam-spdk/test
Jim Harris 3faf457f56 bdev/nvme: do not use DSM to emulate write zeroes
We cannot rely on DSM/DEALLOCATE as a write zeroes
alternative, even if DLFEAT reports that deallocated
blocks will be read as all zeroes.  DEALLOCATE is
advisory, meaning that blocks may not actually be
deallocated.  In cases where they are not deallocated,
they will not be read back later as zeroes.

QEMU 6.0 started reporting DLFEAT as returning zeroes
for deallocated blocks but for some of our write
zeroes tests, blocks aren't actually deallocated.

We may be able to add quirks in the future if we know
that a controller reliably deallocates blocks, but
for now we need to revert this completely.

Note that since bdev/nvme module now does not support
write zeroes in any cases, we need to disable the
write zeroes call in the unit tests.

Fixes issue #1932.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I79f0673774b621a9ffcc46891728cc7719e34cdb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7723
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2021-05-07 11:32:23 +00:00
..
accel_engine accel_engine test: Add the test case for accel_engine. 2021-01-21 15:49:40 +00:00
app lib/iscsi: Pass the range (offset and length) to iscsi_conn_read_data_segment() 2021-02-23 08:52:20 +00:00
bdev test/bdev: Switch to rpc_cmd() 2021-04-02 08:22:42 +00:00
blobfs rocksdb: Change absolut SPDK path in RocksDB build to relative path 2021-03-09 08:50:27 +00:00
blobstore scheduler: Change main core frequency dynamically 2021-01-22 18:31:25 +00:00
common test/nvme_tcp: cases for connecting sock and sending icreq 2021-04-30 09:49:44 +00:00
compress script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
config_converter scripts/config_converter: skip sections not present in legacy config 2021-01-15 08:32:10 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dd test/dd: Lower the number of block size tests 2020-08-20 09:27:21 +00:00
dpdk_memory_utility build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
env Revert "env: Register external memory with DPDK" 2021-04-15 20:22:26 +00:00
event perf: remove unused g_tsc_us_rate. 2021-04-15 11:25:21 +00:00
external_code include: remove util.h include from queue_extras.h 2021-04-14 07:25:21 +00:00
ftl scripts: replace PCI_WHITELIST with PCI_ALLOWED 2020-12-03 09:41:07 +00:00
fuzz test/iscsi: remove VPP tests 2020-08-17 08:19:46 +00:00
interrupt test: add functional test for reactor_set_intr 2021-04-29 07:10:26 +00:00
ioat build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
iscsi_tgt script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
json_config autotest.sh: call rdma_device_init only for RDMA tests 2021-03-29 07:34:38 +00:00
lvol test/lvol: rename lvol test script 2020-10-20 08:54:53 +00:00
make so_ver: reenable test preventing increasing SO version 2021-04-30 07:06:12 +00:00
nvme examples/pmr_persistence: Add PMR example application 2021-04-22 20:10:21 +00:00
nvmf test/nvmf: add remove non-existent subsystem listener test 2021-05-05 13:33:11 +00:00
ocf ocf/rpc: Add bdev_ocf_set_cache_mode method 2021-03-18 14:39:09 +00:00
openstack test/openstack: retry git clone when failed 2021-03-08 10:48:36 +00:00
pmem build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
rpc_client build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
rpc_plugins autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
scheduler autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
setup test/setup: fix failure in allowed() when there is only one device 2021-04-27 08:36:35 +00:00
spdkcli autotest.sh: call rdma_device_init only for RDMA tests 2021-03-29 07:34:38 +00:00
unit bdev/nvme: do not use DSM to emulate write zeroes 2021-05-07 11:32:23 +00:00
vhost test/vhost: Fix typo 2021-04-21 08:25:08 +00:00
vmd test: replace VMD_WHITELIST with VMD_ALLOWED 2020-12-03 09:41:07 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00