|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [pushed]set the capabilities of dom0
changeset: 9453:f02111af5ce8
user: jimix@xxxxxxxxxxxxxxxxxxxxx
date: Thu Mar 23 16:14:33 2006 -0500
summary: set the capabilities of dom0
diff -r 217c877d726c -r f02111af5ce8 xen/arch/ppc/domain_build.c
--- a/xen/arch/ppc/domain_build.c Thu Mar 23 16:13:30 2006 -0500
+++ b/xen/arch/ppc/domain_build.c Thu Mar 23 16:14:33 2006 -0500
@@ -22,6 +22,7 @@
#include <xen/sched.h>
#include <xen/init.h>
#include <xen/ctype.h>
+#include <xen/iocap.h>
#include <asm/processor.h>
#include <asm/papr.h>
@@ -289,5 +290,13 @@ int construct_dom0(struct domain *d,
set_bit(_VCPUF_initialised, &v->vcpu_flags);
+ rc = 0;
+
+ /* DOM0 is permitted full I/O capabilities. */
+ rc |= iomem_permit_access(dom0, 0UL, ~0UL);
+ rc |= irqs_permit_access(dom0, 0, NR_PIRQS-1);
+
+ BUG_ON(rc != 0);
+
return 0;
}
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [pushed]set the capabilities of dom0,
jimix <=
|
|
|
|
|