Skip to contentSkip to conversation

PCI passthrough: when does Xen map device's BARs to guest?

question cody 2 participants 4 messages Mar 8, 2012 – Mar 12, 2012

lore
Share & tools
lore

cody

author
#0 lore raw

Hi,

I checked the assign_device code path but seems only found IOMMU mapping table setup code in there. When does Xen map device's BARs to guest? Where's related code? Thanks.

-cody

author
#1 lore raw

Does anyone know this? Or it is not handled by Xen? Thanks for help.

-cody

Quoted 5 lines · cody

Hi,

I checked the assign_device code path but seems only found IOMMU mapping table setup code in there. When does Xen map device's BARs to guest? Where's related code? Thanks.

-cody

author
#2 lore raw
In reply to cody

Does anyone know this? Or it is not handled by Xen? Thanks for help.

-cody

Quoted 5 lines · cody

Hi,

I checked the assign_device code path but seems only found IOMMU mapping table setup code in there. When does Xen map device's BARs to guest? Where's related code? Thanks.

-cody

#3 lore raw

It is handled by Xen eventually, but the caller is in qemu-dm. Please refer to pass-through.c for your answer. Thanks! Xiantao

Quoted 25 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of cody
Sent: Saturday, March 10, 2012 12:45 AM
To: [email protected]
Subject: Re: [Xen-devel] [question] PCI passthrough: when does Xen map device's BARs to guest?

Does anyone know this? Or it is not handled by Xen? Thanks for help.

-cody

Quoted 7 lines · cody

Hi,

I checked the assign_device code path but seems only found IOMMU mapping table setup code in there. When does Xen map device's BARs to guest? Where's related code? Thanks.

-cody

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel