apply the swiotlb memory adjustment even for default size
Bug: 346770542
Test: TH
Change-Id: Ia2e24efe80dbd9cd31f30f0323930257ecde4a4b
diff --git a/virtualizationmanager/src/aidl.rs b/virtualizationmanager/src/aidl.rs
index 671a012..7d406d9 100644
--- a/virtualizationmanager/src/aidl.rs
+++ b/virtualizationmanager/src/aidl.rs
@@ -596,7 +596,12 @@
params: config.params.to_owned(),
protected: *is_protected,
debug_config,
- memory_mib: config.memoryMib.try_into().ok().and_then(NonZeroU32::new),
+ memory_mib: config
+ .memoryMib
+ .try_into()
+ .ok()
+ .and_then(NonZeroU32::new)
+ .unwrap_or(NonZeroU32::new(256).unwrap()),
cpus,
host_cpu_topology,
console_out_fd,