fn create(vm: &VmFd, vcpu_count: u64) -> Result<Box<dyn GICDevice>>
    where
        Self: Sized,
    {
        let vgic_fd = Self::init_device(vm)?;

        let device = Self::create_device(vgic_fd, vcpu_count);

        Self::init_device_attributes(device.as_ref())?;

        Self::finalize_device(device.as_ref())?;

        Ok(device)
    }
/// Method to initialize the GIC device
Method to initialize the GIC device
Method to initialize the GIC device
fn create(vm: &VmFd, vcpu_count: u64) -> Result<Box<dyn GICDevice>>
    where
        Self: Sized,
    {
        let vgic_fd = Self::init_device(vm)?;
        let device = Self::create_device(vgic_fd, vcpu_count);
        Self::init_device_attributes(device.as_ref())?;
        Self::finalize_device(device.as_ref())?;
        Ok(device)
    }
fn create ( vm : & VmFd , vcpu_count : u64 ) -> Result < Box < dyn GICDevice > > where Self : Sized , { let vgic_fd = Self :: init_device ( vm ) ? ; let device = Self :: create_device ( vgic_fd , vcpu_count ) ; Self :: init_device_attributes ( device . as_ref ( ) ) ? ; Self :: finalize_device ( device . as_ref ( ) ) ? ; Ok ( device ) }
Method to initialize the GIC device
Method to initialize the GIC device
vm
&VmFd
vcpu_count
u64
vm
&VmFd
vcpu_count
u64