We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caaa894 commit fe2ba0fCopy full SHA for fe2ba0f
hv/examples/as.rs
@@ -28,10 +28,10 @@ const GUEST_RESULT_ADDR: usize = GUEST_ADDR + RESULT_OFFSET;
28
#[cfg(target_arch = "aarch64")]
29
use hv::arm64::{Reg, VcpuExt};
30
31
-use std::sync::Arc;
32
-
33
34
fn main() -> Result<(), hv::Error> {
+ use std::sync::Arc;
+
35
let load_addr = unsafe {
36
libc::mmap(
37
std::ptr::null_mut(),
hv/src/x86/mod.rs
@@ -45,6 +45,7 @@ impl Default for VmOptions {
45
#[cfg(feature = "hv_10_15")]
46
#[derive(Debug)]
47
pub struct Space {
48
+ #[allow(dead_code)] // Keep handle alive as long as `Space` exists.
49
vm: Arc<Vm>,
50
id: SpaceId,
51
}
0 commit comments