pub fn update_data(&mut self, data: &[u8]) -> Result<()> {
        let launch_update_data = LaunchUpdateData::new(data);
        let mut cmd = Command::from(self.sev, &launch_update_data);

        KvmEncRegion::new(data).register(self.vm_fd)?;

        LAUNCH_UPDATE_DATA
            .ioctl(self.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;

        Ok(())
    }
/// Encrypt guest data with its VEK.
Encrypt guest data with its VEK.
Encrypt guest data with its VEK .
pub fn update_data(&mut self, data: &[u8]) -> Result<()> {
        let launch_update_data = LaunchUpdateData::new(data);
        let mut cmd = Command::from(self.sev, &launch_update_data);
        KvmEncRegion::new(data).register(self.vm_fd)?;
        LAUNCH_UPDATE_DATA
            .ioctl(self.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;
        Ok(())
    }
pub fn update_data ( & mut self , data : & [ u8 ] ) -> Result < ( ) > { let launch_update_data = LaunchUpdateData :: new ( data ) ; let mut cmd = Command :: from ( self . sev , & launch_update_data ) ; KvmEncRegion :: new ( data ) . register ( self . vm_fd ) ? ; LAUNCH_UPDATE_DATA . ioctl ( self . vm_fd , & mut cmd ) . map_err ( | e | cmd . encapsulate ( e ) ) ? ; Ok ( ( ) ) }
Encrypt guest data with its VEK.
Encrypt guest data with its VEK .
&mut self
data
&[u8]