mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-10 05:46:48 +00:00
Fix the IOMMU enabling issue in the default EFI boot mode
This commit is contained in:
parent
a5b3a1d6dd
commit
32cf7a1e79
@ -58,11 +58,16 @@ COMMON_QEMU_ARGS="\
|
||||
"
|
||||
|
||||
if [ "$1" = "iommu" ]; then
|
||||
if [ "$OVMF" = "off" ]; then
|
||||
echo "Warning: OVMF is off, enabling it for IOMMU support." 1>&2
|
||||
OVMF="on"
|
||||
fi
|
||||
IOMMU_DEV_EXTRA=",iommu_platform=on,ats=on"
|
||||
IOMMU_EXTRA_ARGS="\
|
||||
-device intel-iommu,intremap=on,device-iotlb=on \
|
||||
-device ioh3420,id=pcie.0,chassis=1\
|
||||
-device ioh3420,id=pcie.0,chassis=1 \
|
||||
"
|
||||
# TODO: Add support for enabling IOMMU on AMD platforms
|
||||
fi
|
||||
|
||||
QEMU_ARGS="\
|
||||
|
Loading…
x
Reference in New Issue
Block a user