Lines Matching refs:VirtualMachineConfig
43 VirtualMachineConfig::VirtualMachineConfig,
215 config: &VirtualMachineConfig, in createVm() argument
379 config: &VirtualMachineConfig, in create_vm_internal() argument
426 VirtualMachineConfig::RawConfig(config) => (false, BorrowedOrOwned::Borrowed(config)), in create_vm_internal()
427 VirtualMachineConfig::AppConfig(config) => { in create_vm_internal()
634 fn is_custom_config(config: &VirtualMachineConfig) -> bool { in is_custom_config()
637 VirtualMachineConfig::RawConfig(_) => true, in is_custom_config()
638 VirtualMachineConfig::AppConfig(config) => { in is_custom_config()
662 fn extract_vendor_hashtree_digest(config: &VirtualMachineConfig) -> Result<Option<Vec<u8>>> { in extract_vendor_hashtree_digest()
663 let VirtualMachineConfig::AppConfig(config) = config else { in extract_vendor_hashtree_digest() localVariable
689 config: &VirtualMachineConfig, in maybe_create_device_tree_overlay() argument
886 fn uses_gki_kernel(config: &VirtualMachineConfig) -> bool { in uses_gki_kernel()
891 VirtualMachineConfig::RawConfig(_) => false, in uses_gki_kernel()
892 VirtualMachineConfig::AppConfig(config) => config.osName.starts_with("microdroid_gki-"), in uses_gki_kernel()
1406 fn is_protected(config: &VirtualMachineConfig) -> bool { in is_protected()
1408 VirtualMachineConfig::RawConfig(config) => config.protectedVm, in is_protected()
1409 VirtualMachineConfig::AppConfig(config) => config.protectedVm, in is_protected()
1413 fn check_gdb_allowed(config: &VirtualMachineConfig) -> binder::Result<()> { in check_gdb_allowed()
1427 fn extract_instance_id(config: &VirtualMachineConfig) -> [u8; 64] { in extract_instance_id()
1429 VirtualMachineConfig::RawConfig(config) => config.instanceId,
1430 VirtualMachineConfig::AppConfig(config) => config.instanceId,
1434 fn extract_want_updatable(config: &VirtualMachineConfig) -> bool { in extract_want_updatable()
1436 VirtualMachineConfig::RawConfig(_) => true, in extract_want_updatable()
1437 VirtualMachineConfig::AppConfig(config) => { in extract_want_updatable()
1444 fn extract_gdb_port(config: &VirtualMachineConfig) -> Option<NonZeroU16> { in extract_gdb_port()
1446 VirtualMachineConfig::RawConfig(config) => NonZeroU16::new(config.gdbPort as u16), in extract_gdb_port()
1447 VirtualMachineConfig::AppConfig(config) => { in extract_gdb_port()
1453 fn check_no_vendor_modules(config: &VirtualMachineConfig) -> binder::Result<()> { in check_no_vendor_modules()
1454 let VirtualMachineConfig::AppConfig(config) = config else { return Ok(()) }; in check_no_vendor_modules() localVariable
1464 fn check_no_devices(config: &VirtualMachineConfig) -> binder::Result<()> { in check_no_devices()
1465 let VirtualMachineConfig::AppConfig(config) = config else { return Ok(()) }; in check_no_devices() localVariable
1475 fn check_no_extra_apks(config: &VirtualMachineConfig) -> binder::Result<()> { in check_no_extra_apks()
1476 let VirtualMachineConfig::AppConfig(config) = config else { return Ok(()) }; in check_no_extra_apks() localVariable
1485 fn check_config_features(config: &VirtualMachineConfig) -> binder::Result<()> { in check_config_features()