tests: vfio: Add more checks on the Nvidia GPU from the guest

Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
Bo Chen
2026-04-11 04:42:44 +00:00
committed by Rob Bradford
parent 8b212aafc0
commit 6adc4f2c90

View File

@@ -8274,6 +8274,9 @@ mod vfio {
assert!(guest.get_total_memory().unwrap_or_default() > 3_840_000);
// Verify the VFIO device works before memory hotplug
guest.check_nvidia_gpu();
guest.enable_memory_hotplug();
// Add RAM to the VM
@@ -8447,6 +8450,9 @@ mod vfio {
.unwrap()
.contains("input address: 42 bits")
);
// Check the VFIO device works after boot
guest.check_nvidia_gpu();
});
let _ = child.kill();