* direct PIO/MMIO access
@ 2013-02-15 16:31 Gábor PÉK
2013-02-15 16:51 ` Jan Beulich
0 siblings, 1 reply; 2+ messages in thread
From: Gábor PÉK @ 2013-02-15 16:31 UTC (permalink / raw)
To: xen-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: direct PIO/MMIO access
2013-02-15 16:31 direct PIO/MMIO access Gábor PÉK
@ 2013-02-15 16:51 ` Jan Beulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2013-02-15 16:51 UTC (permalink / raw)
To: Gábor PÉK; +Cc: xen-devel
>>> On 15.02.13 at 17:31, Gábor PÉK<pek@crysys.hu> wrote:
> 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.
> 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.
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.
> /*
> * Port 0xcf8 (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
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-15 16:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-15 16:31 direct PIO/MMIO access Gábor PÉK
2013-02-15 16:51 ` Jan Beulich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.