mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-23 11:52:21 +00:00
tests: Test virtio-fs with virtio-mmio
Now that virtio-mmio transport has support for SHM regions we should be able to test virtio-fs against it. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
642b890b0f
commit
22dd49d0b5
@ -1752,27 +1752,22 @@ mod tests {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(feature = "mmio"), test)]
|
|
||||||
fn test_virtio_fs_dax_on_default_cache_size() {
|
fn test_virtio_fs_dax_on_default_cache_size() {
|
||||||
test_virtio_fs(true, None, "none", &prepare_virtiofsd)
|
test_virtio_fs(true, None, "none", &prepare_virtiofsd)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(feature = "mmio"), test)]
|
|
||||||
fn test_virtio_fs_dax_on_cache_size_1_gib() {
|
fn test_virtio_fs_dax_on_cache_size_1_gib() {
|
||||||
test_virtio_fs(true, Some(0x4000_0000), "none", &prepare_virtiofsd)
|
test_virtio_fs(true, Some(0x4000_0000), "none", &prepare_virtiofsd)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(feature = "mmio"), test)]
|
|
||||||
fn test_virtio_fs_dax_off() {
|
fn test_virtio_fs_dax_off() {
|
||||||
test_virtio_fs(false, None, "none", &prepare_virtiofsd)
|
test_virtio_fs(false, None, "none", &prepare_virtiofsd)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(feature = "mmio"), test)]
|
|
||||||
fn test_virtio_fs_dax_on_default_cache_size_w_vhost_user_fs_daemon() {
|
fn test_virtio_fs_dax_on_default_cache_size_w_vhost_user_fs_daemon() {
|
||||||
test_virtio_fs(true, None, "none", &prepare_vhost_user_fs_daemon)
|
test_virtio_fs(true, None, "none", &prepare_vhost_user_fs_daemon)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(feature = "mmio"), test)]
|
|
||||||
fn test_virtio_fs_dax_on_cache_size_1_gib_w_vhost_user_fs_daemon() {
|
fn test_virtio_fs_dax_on_cache_size_1_gib_w_vhost_user_fs_daemon() {
|
||||||
test_virtio_fs(
|
test_virtio_fs(
|
||||||
true,
|
true,
|
||||||
@ -1782,7 +1777,6 @@ mod tests {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg_attr(not(feature = "mmio"), test)]
|
|
||||||
fn test_virtio_fs_dax_off_w_vhost_user_fs_daemon() {
|
fn test_virtio_fs_dax_off_w_vhost_user_fs_daemon() {
|
||||||
test_virtio_fs(false, None, "none", &prepare_vhost_user_fs_daemon)
|
test_virtio_fs(false, None, "none", &prepare_vhost_user_fs_daemon)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user