pub fn new(nr_slots: u32) -> KvmMemoryListener {
        KvmMemoryListener {
            as_id: Arc::new(AtomicU32::new(0)),
            slots: Arc::new(Mutex::new(vec![MemSlot::default(); nr_slots as usize])),
        }
    }
/// Create a new KvmMemoryListener for a VM.
///
/// # Arguments
///
/// * `nr_slots` - Number of slots.
Create a new KvmMemoryListener for a VM.
Create a new KvmMemoryListener for a VM .
pub fn new(nr_slots: u32) -> KvmMemoryListener {
        KvmMemoryListener {
            as_id: Arc::new(AtomicU32::new(0)),
            slots: Arc::new(Mutex::new(vec![MemSlot::default(); nr_slots as usize])),
        }
    }
pub fn new ( nr_slots : u32 ) -> KvmMemoryListener { KvmMemoryListener { as_id : Arc :: new ( AtomicU32 :: new ( 0 ) ) , slots : Arc :: new ( Mutex :: new ( vec ! [ MemSlot default ( ) nr_slots as usize ] ) ) , } }
Create a new KvmMemoryListener for a VM.
Create a new KvmMemoryListener for a VM .
nr_slots
u32
nr_slots
u32