blob: 4f0398fd7029d656a93a22b2e82f7eb9c6de74cb (
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(())
}
}
|