|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Force RTC driver to fail to load in domU by preventing i
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 420db20e103c77ea0dbf443eb551db5d58371fdd
# Parent 446aa56ca4fee7d3ea2badfb59e8bb3540b507ae
Force RTC driver to fail to load in domU by preventing it
from binding to IRQ8.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r 446aa56ca4fe -r 420db20e103c
linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c Mon Oct 17 12:50:28 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c Mon Oct 17 13:02:36 2005
@@ -42,6 +42,7 @@
#include <asm-xen/xen-public/physdev.h>
#include <asm/hypervisor.h>
#include <asm-xen/evtchn.h>
+#include <linux/mc146818rtc.h> /* RTC_IRQ */
/*
* This lock protects updates to the following mapping and reference-count
@@ -744,6 +745,13 @@
{
irq_bindcount[pirq_to_irq(i)] = 1;
+#ifdef RTC_IRQ
+ /* If not domain 0, force our RTC driver to fail its probe. */
+ if ((i == RTC_IRQ) &&
+ !(xen_start_info->flags & SIF_INITDOMAIN))
+ continue;
+#endif
+
irq_desc[pirq_to_irq(i)].status = IRQ_DISABLED;
irq_desc[pirq_to_irq(i)].action = 0;
irq_desc[pirq_to_irq(i)].depth = 1;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Force RTC driver to fail to load in domU by preventing it,
Xen patchbot -unstable <=
|
Previous by Date: |
[Xen-changelog] Added a TRACE log level, for those versions of Python that do not have it, and, Xen patchbot -unstable |
Next by Date: |
[Xen-changelog] Replace xm vcpu-enable and xm vcpu-disable with one command, xm set-vcpus,, Xen patchbot -unstable |
Previous by Thread: |
[Xen-changelog] Added a TRACE log level, for those versions of Python that do not have it, and, Xen patchbot -unstable |
Next by Thread: |
[Xen-changelog] Replace xm vcpu-enable and xm vcpu-disable with one command, xm set-vcpus,, Xen patchbot -unstable |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|