direct PIO/MMIO access
Hi all,
I would like to access the configuration registers of my passthrough device from my HVM guest under Xen 4.2 via MMIO/PIO directly. Is there any option for this in the config file of the guest? I know about the ioports=[''] option for PIO accesses, but is there any way to do the same with MMIO BAR registers? As far as I know the permissive flag works only for PV guests. Does the ioports option allow direct access to config space (0xcf8-0xcfc)? According to in xen/arch/x86/trap.c it is not allowed.
/*
* Port 0xcf8 (CONFIG_ADDRESS) is only visible for DWORD accesses.
* We never permit direct access to that register.
*/
What about Dom0?
Thank you!
-gabor
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Gábor PÉK
I would like to access the configuration registers of my passthrough device from my HVM guest under Xen 4.2 via MMIO/PIO directly. Is there any option for this in the config file of the guest? I know about the ioports=[''] option for PIO accesses, but is there any way to do the same with MMIO BAR registers?
For a PCI device, no extra option should be needed for either IO ports or MMIO regions.
Quoted 4 lines
As far as I know the permissive flag works
only for PV guests. Does the ioports option allow direct access to config space (0xcf8-0xcfc)? According to inxen/arch/x86/trap.cit is not allowed.
Correct, albeit that code doesn't control HVM guests. But if you gave HVM guests access to these _physical_ ports, they could at once control all other PCI devices. So I'm sure you don't want to do that.
Quoted 6 lines
/*
* Port0xcf8(CONFIG_ADDRESS) is only visible for DWORD accesses.
* We never permit direct access to that register.
*/What about Dom0?
Not even Dom0. This gets emulated in Xen.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel