Closed russell-islam closed 1 week ago
@NunoDasNeves PTAL
Test:
cloud@dom0-2408-27-0-ci-105867774 [ ~/cloud-hypervisor/russell-islam/mshv ]$ cargo test test_run_code Compiling mshv-ioctls v0.3.0 (/home/cloud/cloud-hypervisor/russell-islam/mshv/mshv-ioctls) Finished
test` profile [unoptimized + debuginfo] target(s) in 1.18s
Running unittests src/lib.rs (target/debug/deps/mshv_bindings-67b07de978aee5fe)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 361 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/mshv_ioctls-12bde8a5f3083285)
running 2 tests test ioctls::vcpu::tests::test_run_code_mmap ... ok test ioctls::vcpu::tests::test_run_code ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 37 filtered out; finished in 0.04s
cloud@dom0-2408-27-0-ci-105867774 [ ~/cloud-hypervisor/russell-islam/mshv ]$ `
Add a new test case to test the vp_run method that uses mapped registers page and hv_message page.
Before submitting your PR, please make sure you addressed the following requirements:
git commit -s
), and the commit message has max 60 characters for the summary and max 75 characters for each description line.unsafe
code is properly documented.