mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: enable more test cases for MSHV
MSHV now supports movable pages i.e VA backed guest. Also with more features and stability in the MSHV Kernel drives MSHV now supports more test scenario. This patch enables more integration test cases. Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
08b197bbc1
commit
e7e850bbdd
@@ -2849,7 +2849,6 @@ mod common_parallel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_user_defined_memory_regions() {
|
fn test_user_defined_memory_regions() {
|
||||||
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
||||||
let guest = Guest::new(Box::new(focal));
|
let guest = Guest::new(Box::new(focal));
|
||||||
@@ -2917,7 +2916,6 @@ mod common_parallel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_guest_numa_nodes() {
|
fn test_guest_numa_nodes() {
|
||||||
_test_guest_numa_nodes(false);
|
_test_guest_numa_nodes(false);
|
||||||
}
|
}
|
||||||
@@ -3914,13 +3912,11 @@ mod common_parallel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_virtio_fs_multi_segment_hotplug() {
|
fn test_virtio_fs_multi_segment_hotplug() {
|
||||||
_test_virtio_fs(&prepare_virtiofsd, true, Some(15))
|
_test_virtio_fs(&prepare_virtiofsd, true, Some(15))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_virtio_fs_multi_segment() {
|
fn test_virtio_fs_multi_segment() {
|
||||||
_test_virtio_fs(&prepare_virtiofsd, false, Some(15))
|
_test_virtio_fs(&prepare_virtiofsd, false, Some(15))
|
||||||
}
|
}
|
||||||
@@ -5107,7 +5103,6 @@ mod common_parallel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_virtio_mem() {
|
fn test_virtio_mem() {
|
||||||
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
||||||
let guest = Guest::new(Box::new(focal));
|
let guest = Guest::new(Box::new(focal));
|
||||||
@@ -5181,7 +5176,6 @@ mod common_parallel {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
// Test both vCPU and memory resizing together
|
// Test both vCPU and memory resizing together
|
||||||
fn test_resize() {
|
fn test_resize() {
|
||||||
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
||||||
@@ -5809,7 +5803,6 @@ mod common_parallel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_virtio_balloon_free_page_reporting() {
|
fn test_virtio_balloon_free_page_reporting() {
|
||||||
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string());
|
||||||
let guest = Guest::new(Box::new(focal));
|
let guest = Guest::new(Box::new(focal));
|
||||||
@@ -7887,7 +7880,6 @@ mod common_sequential {
|
|||||||
// through each ssh command. There's no need to perform a dedicated test to
|
// through each ssh command. There's no need to perform a dedicated test to
|
||||||
// verify the migration went well for virtio-net.
|
// verify the migration went well for virtio-net.
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_snapshot_restore_hotplug_virtiomem() {
|
fn test_snapshot_restore_hotplug_virtiomem() {
|
||||||
_test_snapshot_restore(true);
|
_test_snapshot_restore(true);
|
||||||
}
|
}
|
||||||
@@ -11164,25 +11156,21 @@ mod live_migration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_live_migration_numa() {
|
fn test_live_migration_numa() {
|
||||||
_test_live_migration_numa(false, false)
|
_test_live_migration_numa(false, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_live_migration_numa_local() {
|
fn test_live_migration_numa_local() {
|
||||||
_test_live_migration_numa(false, true)
|
_test_live_migration_numa(false, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_live_upgrade_numa() {
|
fn test_live_upgrade_numa() {
|
||||||
_test_live_migration_numa(true, false)
|
_test_live_migration_numa(true, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "mshv"))]
|
|
||||||
fn test_live_upgrade_numa_local() {
|
fn test_live_upgrade_numa_local() {
|
||||||
_test_live_migration_numa(true, true)
|
_test_live_migration_numa(true, true)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user