Hi folks:
I have a questions about device vfio pass-through usage snarios, PCI device pass-throug for example. did the GPA that host physical memory mapped to Guest vcpu through MMU must be identical with the IOVA that host physical memory mapped to gust device thourgh iommu? if so, that will be convenient for driver developer, because then can share data physical address between device and share memory. but is this true? is this the
pass-through user manner?
my thought: it will be very convent for driver developer if GPA == IOVA. because theuy are all "physical" on Guest, will offer a consistent view of memory resource for vCPU and vDevice, but is this true?
VCPU:
GVA----(MMU)----GPA-------(+offset)----->HVA------>(MMU)----->HPA.
Device in Guest:
IOVA---->(IOMMU)---->HPA
Thankyou !
BRs
zlcao.