vmbase: Abstract CPU arch in write_volatile_u8()

Move write_volatile_u8() to the arch-agnostic import vmbase::arch, using
cfg_if to conditionally select the body of the function. Future
functions moved to this submodule will follow the same pattern, allowing
client code (including the rest of this crate) to become arch agnostic.

Test: m pvmfw_bin
Bug: 377276983
Change-Id: I52afb6642e494d6f0d1bf54a5b9712c460ca30d0
diff --git a/libs/libvmbase/Android.bp b/libs/libvmbase/Android.bp
index 206c4cb..c4e8385 100644
--- a/libs/libvmbase/Android.bp
+++ b/libs/libvmbase/Android.bp
@@ -79,6 +79,7 @@
     rustlibs: [
         "libaarch64_paging",
         "libbuddy_system_allocator",
+        "libcfg_if",
         "libcstr",
         "liblibfdt_nostd",
         "liblog_rust_nostd",