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:
Yi-De Wu 2023-03-31 11:45:00 +08:00 committed by crosvm LUCI
parent 27dff281ae
commit 75931cd608

View file

@ -574,10 +574,14 @@ impl Hypervisor for Geniezone {
}
fn check_capability(&self, cap: HypervisorCap) -> bool {
matches!(
cap,
HypervisorCap::UserMemory | HypervisorCap::ImmediateExit
)
match cap {
HypervisorCap::UserMemory => true,
HypervisorCap::ArmPmuV3 => false,
HypervisorCap::ImmediateExit => true,
HypervisorCap::StaticSwiotlbAllocationRequired => true,
HypervisorCap::HypervisorInitializedBootContext => false,
HypervisorCap::S390UserSigp | HypervisorCap::TscDeadlineTimer => false,
}
}
}