请教在 qemu+kvm 虚拟化的场景下,如果VM中gpa到hpa还没有建立映射,DMA该如何处理呢? #23
Unanswered
zevorn
asked this question in
QEMU | Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
各位大佬,请教一个问题:
在qemu+kvm虚拟化的场景下,VM驱动侧让设备发起了一个DMA请求,比如将GPU显存中的数据DMA到内存的某个位置,该设备是直通到VM中的。此时如果驱动侧执行了一系列前置操作,如dma_alloc_coherent分配接收内存等,然后启动了DMA,但是如果VM中gpa到hpa还没有建立映射,iommu在翻译的时候是不是就报错了呢?或者说存在这种未映射的情况吗?
Beta Was this translation helpful? Give feedback.
All reactions