devices: add snapshot/restore to IrqChip riscv64

Add missing snapshot/restore function to Irqchip for riscv64

BUG=N/A
TEST=presubmit

Change-Id: Ic73c71be6104bc4724225039588500bf9107ab68
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4553718
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Auto-Submit: Elie Kheirallah <khei@google.com>
Commit-Queue: Elie Kheirallah <khei@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
diff --git a/devices/src/irqchip/riscv64.rs b/devices/src/irqchip/riscv64.rs
index fe6d1b5..1e4eb48 100644
--- a/devices/src/irqchip/riscv64.rs
+++ b/devices/src/irqchip/riscv64.rs
@@ -21,4 +21,13 @@
 
     /// Returns the number of ids and sources supported by this IrqChip(assuming it's AIA).
     fn get_num_ids_sources(&self) -> (usize, usize);
+
+    // Snapshot irqchip.
+    fn snapshot(&self, _cpus_num: usize) -> anyhow::Result<serde_json::Value> {
+        Err(anyhow!("Snapshot not yet implemented for RiskV64"))
+    }
+
+    fn restore(&mut self, _data: serde_json::Value, _vcpus_num: usize) -> anyhow::Result<()> {
+        Err(anyhow!("Restore not yet implemented for RiskV64"))
+    }
 }