summary refs log tree commit diff
path: root/hypervisor/src/kvm/aarch64.rs
blob: 6e9f9f7e903a77340ec0b5d2c7e151478797c0d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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(())
    }
}