pub fn new(vm_fd: U, sev: V) -> Result<Self> {
        let mut launcher = Launcher {
            vm_fd,
            sev,
            state: PhantomData::default(),
        };

        let init = SnpInit::default();

        let mut cmd = Command::from(&mut launcher.sev, &init);
        SNP_INIT
            .ioctl(&mut launcher.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;

        Ok(launcher)
    }
/// Begin the SEV-SNP launch process by creating a Launcher and issuing the
/// KVM_SNP_INIT ioctl.
Begin the SEV-SNP launch process by creating a Launcher and issuing the
KVM_SNP_INIT ioctl.
Begin the SEV - SNP launch process by creating a Launcher and issuing the KVM_SNP_INIT ioctl .
pub fn new(vm_fd: U, sev: V) -> Result<Self> {
        let mut launcher = Launcher {
            vm_fd,
            sev,
            state: PhantomData::default(),
        };
        let init = SnpInit::default();
        let mut cmd = Command::from(&mut launcher.sev, &init);
        SNP_INIT
            .ioctl(&mut launcher.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;
        Ok(launcher)
    }
pub fn new ( vm_fd : U , sev : V ) -> Result < Self > { let mut launcher = Launcher { vm_fd , sev , state : PhantomData :: default ( ) , } ; let init = SnpInit :: default ( ) ; let mut cmd = Command :: from ( & mut launcher . sev , & init ) ; SNP_INIT . ioctl ( & mut launcher . vm_fd , & mut cmd ) . map_err ( | e | cmd . encapsulate ( e ) ) ? ; Ok ( launcher ) }
Begin the SEV-SNP launch process by creating a Launcher and issuing the
KVM_SNP_INIT ioctl.
Begin the SEV - SNP launch process by creating a Launcher and issuing the KVM_SNP_INIT ioctl .
vm_fd
U
sev
V