Skip to contentSkip to conversation

Dom0 IO handling

DISCUSSION maheen butt 2 participants 2 messages Oct 11, 2012 – Oct 19, 2012

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm investigating the source code of Xenified kernel. From documentations related to

Xen told me that all guest domains run in less privilege mode ( ring 1 in case of x86). Dom0 is also running in ring 1. But it can have direct access to IO devices. It means

Dom0 has a special bahaviour that it is running in ring1 but can directly access IO devices. How Dom0 access IO devices directly?
how can I relate this special way of Dom0 with its source code?

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

#1 lore raw

AFAIK dom0 is pv-domain.
All interrupts are handled by xen and passed down to dom0 via events (kinda internal xen interrupt-like stuff). PV kernel accepts them and process as normal interrupts.

Is Xen use IOMMU to protect itself from misbehave devices or not... I'm not sure.

Quoted 10 lines · maheen butt

Hi all,

I'm investigating the source code of Xenified kernel. From documentations related to Xen told me that all guest domains run in less privilege mode ( ring 1 in case of x86). Dom0 is also running in ring 1. But it can have direct access to IO devices. It means Dom0 has a special bahaviour that it is running in ring1 but can directly access IO devices. How Dom0 access IO devices directly?
how can I relate this special way of Dom0 with its source code?

Quoted 4 lines

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

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