fn address_space_init() -> Arc<AddressSpace> {
        let root = Region::init_container_region(1 << 36);
        let sys_space = AddressSpace::new(root).unwrap();
        let host_mmap = Arc::new(
            HostMemMapping::new(
                GuestAddress(0),
                None,
                SYSTEM_SPACE_SIZE,
                None,
                false,
                false,
                false,
            )
            .unwrap(),
        );
        sys_space
            .root()
            .add_subregion(
                Region::init_ram_region(host_mmap.clone()),
                host_mmap.start_address().raw_value(),
            )
            .unwrap();
        sys_space
    }
// build dummy address space of vm
build dummy address space of vm
build dummy address space of vm
fn address_space_init() -> Arc<AddressSpace> {
        let root = Region::init_container_region(1 << 36);
        let sys_space = AddressSpace::new(root).unwrap();
        let host_mmap = Arc::new(
            HostMemMapping::new(
                GuestAddress(0),
                None,
                SYSTEM_SPACE_SIZE,
                None,
                false,
                false,
                false,
            )
            .unwrap(),
        );
        sys_space
            .root()
            .add_subregion(
                Region::init_ram_region(host_mmap.clone()),
                host_mmap.start_address().raw_value(),
            )
            .unwrap();
        sys_space
    }
fn address_space_init ( ) -> Arc < AddressSpace > { let root = Region :: init_container_region ( 1 << 36 ) ; let sys_space = AddressSpace :: new ( root ) . unwrap ( ) ; let host_mmap = Arc :: new ( HostMemMapping :: new ( GuestAddress ( 0 ) , None , SYSTEM_SPACE_SIZE , None , false , false , false , ) . unwrap ( ) , ) ; sys_space . root ( ) . add_subregion ( Region :: init_ram_region ( host_mmap . clone ( ) ) , host_mmap . start_address ( ) . raw_value ( ) , ) . unwrap ( ) ; sys_space }
build dummy address space of vm
build dummy address space of vm