mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
arch: Refactor GIC code to seperate KVM specific code
Shrink GICDevice trait to contain hypervisor agnostic API's only, which are used in generating FDT. Move all KVM specific logic into KvmGICDevice trait. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
6e8c8991d9
commit
e3e771727a
@@ -395,7 +395,7 @@ pub mod kvm {
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use arch::aarch64::gic::create_gic;
|
||||
use arch::aarch64::gic::kvm::create_gic;
|
||||
|
||||
#[test]
|
||||
fn test_create_gic() {
|
||||
|
||||
@@ -1493,7 +1493,7 @@ mod tests {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use arch::aarch64::fdt::create_fdt;
|
||||
use arch::aarch64::gic::create_gic;
|
||||
use arch::aarch64::gic::kvm::create_gic;
|
||||
use arch::aarch64::{layout, DeviceInfoForFDT};
|
||||
use arch::DeviceType;
|
||||
use vm_memory::{GuestAddress, GuestMemoryMmap};
|
||||
|
||||
Reference in New Issue
Block a user