pub fn update_topology(&self) -> Result<()> {
        let old_fv = self.flat_view.load();

        let addr_range = AddressRange::new(GuestAddress(0), self.root.size());
        let new_fv = self
            .root
            .generate_flatview(GuestAddress(0), addr_range)
            .chain_err(|| "Failed to generate new topology")?;

        self.update_topology_pass(&old_fv, &new_fv, false)
            .chain_err(|| "Failed to update topology (first pass)")?;
        self.update_topology_pass(&old_fv, &new_fv, true)
            .chain_err(|| "Failed to update topology (second pass)")?;

        self.flat_view.store(Arc::new(new_fv));
        self.update_ioeventfds()
            .chain_err(|| "Failed to generate and update ioeventfds")?;
        Ok(())
    }
/// Update the topology of memory.
Update the topology of memory.
Update the topology of memory .
pub fn update_topology(&self) -> Result<()> {
        let old_fv = self.flat_view.load();
        let addr_range = AddressRange::new(GuestAddress(0), self.root.size());
        let new_fv = self
            .root
            .generate_flatview(GuestAddress(0), addr_range)
            .chain_err(|| "Failed to generate new topology")?;
        self.update_topology_pass(&old_fv, &new_fv, false)
            .chain_err(|| "Failed to update topology (first pass)")?;
        self.update_topology_pass(&old_fv, &new_fv, true)
            .chain_err(|| "Failed to update topology (second pass)")?;
        self.flat_view.store(Arc::new(new_fv));
        self.update_ioeventfds()
            .chain_err(|| "Failed to generate and update ioeventfds")?;
        Ok(())
    }
pub fn update_topology ( & self ) -> Result < ( ) > { let old_fv = self . flat_view . load ( ) ; let addr_range = AddressRange :: new ( GuestAddress ( 0 ) , self . root . size ( ) ) ; let new_fv = self . root . generate_flatview ( GuestAddress ( 0 ) , addr_range ) . chain_err ( | | " " ) ? ; self . update_topology_pass ( & old_fv , & new_fv , false ) . chain_err ( | | " " ) ? ; self . update_topology_pass ( & old_fv , & new_fv , true ) . chain_err ( | | " " ) ? ; self . flat_view . store ( Arc :: new ( new_fv ) ) ; self . update_ioeventfds ( ) . chain_err ( | | " " ) ? ; Ok ( ( ) ) }
Update the topology of memory.
Update the topology of memory .
&self
&self