mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
geniezone: Require static swiotlb allocation
Bug: 278959491 Test: tools/presubmit --all Signed-off-by: Jerry Wang <ze-yu.wang@mediatek.com> Signed-off-by: Yi-De Wu <yi-de.wu@mediatek.com> Change-Id: Ic8f19783dca1da8771c0500a56de3eaae73fb710 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4413736 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Frederick Mayle <fmayle@google.com>
This commit is contained in:
parent
27dff281ae
commit
75931cd608
1 changed files with 8 additions and 4 deletions
|
@ -574,10 +574,14 @@ impl Hypervisor for Geniezone {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_capability(&self, cap: HypervisorCap) -> bool {
|
fn check_capability(&self, cap: HypervisorCap) -> bool {
|
||||||
matches!(
|
match cap {
|
||||||
cap,
|
HypervisorCap::UserMemory => true,
|
||||||
HypervisorCap::UserMemory | HypervisorCap::ImmediateExit
|
HypervisorCap::ArmPmuV3 => false,
|
||||||
)
|
HypervisorCap::ImmediateExit => true,
|
||||||
|
HypervisorCap::StaticSwiotlbAllocationRequired => true,
|
||||||
|
HypervisorCap::HypervisorInitializedBootContext => false,
|
||||||
|
HypervisorCap::S390UserSigp | HypervisorCap::TscDeadlineTimer => false,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue