summary refs log tree commit diff
path: root/hypervisor/src/kvm/aarch64.rs
diff options
context:
space:
mode:
Diffstat (limited to 'hypervisor/src/kvm/aarch64.rs')
-rw-r--r--hypervisor/src/kvm/aarch64.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/hypervisor/src/kvm/aarch64.rs b/hypervisor/src/kvm/aarch64.rs
new file mode 100644
index 0000000..4f0398f
--- /dev/null
+++ b/hypervisor/src/kvm/aarch64.rs
@@ -0,0 +1,22 @@
+// Copyright 2020 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+use sys_util::Result;
+
+use super::{KvmVcpu, KvmVm};
+use crate::{VcpuAArch64, VmAArch64};
+
+impl VmAArch64 for KvmVm {
+    type Vcpu = KvmVcpu;
+
+    fn create_vcpu(&self, id: usize) -> Result<Self::Vcpu> {
+        self.create_kvm_vcpu(id)
+    }
+}
+
+impl VcpuAArch64 for KvmVcpu {
+    fn set_one_reg(&self, _reg_id: u64, _data: u64) -> Result<()> {
+        Ok(())
+    }
+}