Skip to content

Commit b29d023

Browse files
vmm_tests: broaden nested reboot test registration
Remove the Linux-only guard from the nested-enabled reboot test. Note when the MSHV scrub capability probe can be removed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Muminul Islam <muminul.islam@microsoft.com>
1 parent 53918f2 commit b29d023

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

  • openvmm/openvmm_hypervisors/src
  • vmm_tests/vmm_tests/tests/tests

‎openvmm/openvmm_hypervisors/src/lib.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ pub fn kvm_nested_state_available() -> bool {
7777
}
7878

7979
/// Returns whether MSHV supports partition scrub on this machine.
80+
/// TODO: Remove when dom0 Kernel ships with this IOCTL
8081
pub fn mshv_partition_scrub_available() -> bool {
8182
#[cfg(all(target_os = "linux", feature = "virt_mshv", guest_is_native))]
8283
{

‎vmm_tests/vmm_tests/tests/tests/nested.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pub(crate) async fn vm_host_mshv(
4848
}
4949

5050
/// Run the L2 test before and after an L1 reboot to exercise used nested state.
51-
#[cfg(target_os = "linux")]
5251
async fn reboot_l1(config: PetriVmBuilder<OpenVmmPetriBackend>) -> anyhow::Result<()> {
5352
let (mut vm, mut agent) = config
5453
.with_nested_virt()
@@ -92,7 +91,6 @@ async fn reboot_l1(config: PetriVmBuilder<OpenVmmPetriBackend>) -> anyhow::Resul
9291
/// Reboot a two-VP Linux L1 three times with nesting enabled and VMBus disabled.
9392
/// Check changed boot IDs, connectivity, and VMX/SVM exposure on both VPs.
9493
/// This does not launch an L2; `reboot_l2` separately exercises an L2 reboot.
95-
#[cfg(target_os = "linux")]
9694
#[vmm_test_macros::vmm_test_with(
9795
openvmm,
9896
requires(nested_virt, nested_reset),

0 commit comments

Comments
 (0)