service_vm_manager: Reduce VM_MEMORY_MB to 6 MiB
Rialto only maps its code region (up to 2 MiB), data scratch region (up
to 2 MiB), and VMM-provided device tree region (up to 2 MiB) so it
doesn't need more than 6 MiB.
Test: atest rialto_test # currently doesn't pass with the ancestors
Change-Id: Iec100ce8006bd10be48f993c0a25ef6d6466c1c8
diff --git a/libs/libservice_vm_manager/src/lib.rs b/libs/libservice_vm_manager/src/lib.rs
index 8564c51..d3d86e9 100644
--- a/libs/libservice_vm_manager/src/lib.rs
+++ b/libs/libservice_vm_manager/src/lib.rs
@@ -38,7 +38,7 @@
use vsock::{VsockListener, VsockStream, VMADDR_CID_HOST};
/// Size of virtual memory allocated to the Service VM.
-pub const VM_MEMORY_MB: i32 = 8;
+pub const VM_MEMORY_MB: i32 = 6;
const VIRT_DATA_DIR: &str = "/data/misc/apexdata/com.android.virt";
const RIALTO_PATH: &str = "/apex/com.android.virt/etc/rialto.bin";