qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About VFIO Device Pass-through on Qemu.


From: tugouxp
Subject: About VFIO Device Pass-through on Qemu.
Date: Fri, 5 Jul 2024 17:08:49 +0800 (CST)

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]