pvmfw: Move aarch64 exceptions handling to new `arch` module

Due to incoming changes in libvmbase and pvmfw that will introduce new CPU architecture, there is necessary to separate code basing on platform. To achieve this new module/directory `arch` is introduced by this commit. This new module should be used as split point between architectures - new platform specific code should be only added behind `arch` module and exposed in platform independent way to the rest of the program.

Bug: 362733888
Test: m pvmfw

Change-Id: Ife352453563232d8313061a1ada844b01011a9bc
diff --git a/guest/pvmfw/src/arch.rs b/guest/pvmfw/src/arch.rs
new file mode 100644
index 0000000..b9ab3a8
--- /dev/null
+++ b/guest/pvmfw/src/arch.rs
@@ -0,0 +1,18 @@
+// Copyright 2024, The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! Module providing Low-level platform specific implementations
+
+#[cfg(target_arch = "aarch64")]
+mod aarch64;
diff --git a/guest/pvmfw/src/arch/aarch64.rs b/guest/pvmfw/src/arch/aarch64.rs
new file mode 100644
index 0000000..8e7126d
--- /dev/null
+++ b/guest/pvmfw/src/arch/aarch64.rs
@@ -0,0 +1,17 @@
+// Copyright 2024, The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! aarch64 platform specific code
+
+pub mod exceptions;
diff --git a/guest/pvmfw/src/exceptions.rs b/guest/pvmfw/src/arch/aarch64/exceptions.rs
similarity index 100%
rename from guest/pvmfw/src/exceptions.rs
rename to guest/pvmfw/src/arch/aarch64/exceptions.rs
diff --git a/guest/pvmfw/src/main.rs b/guest/pvmfw/src/main.rs
index afa64e0..9c67be8 100644
--- a/guest/pvmfw/src/main.rs
+++ b/guest/pvmfw/src/main.rs
@@ -19,13 +19,13 @@
 
 extern crate alloc;
 
+mod arch;
 mod bcc;
 mod bootargs;
 mod config;
 mod device_assignment;
 mod dice;
 mod entry;
-mod exceptions;
 mod fdt;
 mod gpt;
 mod instance;