From 7805fe58e2053dac84d04e14a293fd58107640a0 Mon Sep 17 00:00:00 2001 From: Anirudh Rayabharam Date: Wed, 18 Jan 2023 21:05:03 +0530 Subject: [PATCH] tests: disable test_memory_mergeable_on for mshv KSM doesn't work with MSHV stack since guest memory is pinned (`pin_user_pages`) and pinned pages cannot be merged. So, don't run the test for mshv. Signed-off-by: Anirudh Rayabharam --- tests/integration.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index 02e899a02..6d4594c91 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -6731,9 +6731,11 @@ mod common_parallel { } mod common_sequential { + #[cfg(not(feature = "mshv"))] use crate::*; #[test] + #[cfg(not(feature = "mshv"))] fn test_memory_mergeable_on() { test_memory_mergeable(true) }