Fix vts to use correct instance IDs

Vendor VMs must use instance IDs starting with 0xFFFFFFFF.

Flag: EXEMPT Bugfix

Bug: 405935413
Test: atest vts_libavf_test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a6e566b27f4ade9abd42c45745f0eddd956754f9)
Merged-In: Id5cb1b1f01baf11406409ca07df8efacef020fce
Change-Id: Id5cb1b1f01baf11406409ca07df8efacef020fce
diff --git a/tests/vts/src/vts_libavf_test.rs b/tests/vts/src/vts_libavf_test.rs
index c13b510..e15228d 100644
--- a/tests/vts/src/vts_libavf_test.rs
+++ b/tests/vts/src/vts_libavf_test.rs
@@ -84,12 +84,17 @@
 
     info!("raw config created");
 
+    // The first 4 bytes of an instance ID for a vendor VM must be 0xFFFFFFFF
+    let mut instance_id: [u8; 64] = [0; 64];
+    instance_id[0..4].copy_from_slice(&[0xFF, 0xFF, 0xFF, 0xFF]);
+
     // SAFETY: config is the only reference to a valid object
     unsafe {
         AVirtualMachineRawConfig_setName(config, c"vts_libavf_test_rialto".as_ptr());
         AVirtualMachineRawConfig_setKernel(config, kernel_fd);
         AVirtualMachineRawConfig_setProtectedVm(config, protected_vm);
         AVirtualMachineRawConfig_setMemoryMiB(config, VM_MEMORY_MB);
+        AVirtualMachineRawConfig_setInstanceId(config, instance_id.as_ptr(), instance_id.len());
     }
 
     let mut vm = std::ptr::null_mut();