ia64/xen-unstable

view xen/common/softirq.c @ 6832:5959fae4722a

Set NE bit for VMX guest CR0. VMCS guest CR0.NE bit must
be set, else it will cause "vm-entry failed".

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Sep 14 13:37:50 2005 +0000 (2005-09-14)
parents a01199a95070
children 3838105ab03b
line source
1 /******************************************************************************
2 * common/softirq.c
3 *
4 * Softirqs in Xen are only executed in an outermost activation (e.g., never
5 * within an interrupt activation). This simplifies some things and generally
6 * seems a good thing.
7 *
8 * Copyright (c) 2003, K A Fraser
9 * Copyright (c) 1992, Linus Torvalds
10 */
12 #include <xen/config.h>
13 #include <xen/init.h>
14 #include <xen/mm.h>
15 #include <xen/sched.h>
16 #include <xen/softirq.h>
18 #ifndef __ARCH_IRQ_STAT
19 irq_cpustat_t irq_stat[NR_CPUS];
20 #endif
22 static softirq_handler softirq_handlers[NR_SOFTIRQS];
24 asmlinkage void do_softirq()
25 {
26 unsigned int i, pending, cpu = smp_processor_id();
28 pending = softirq_pending(cpu);
29 ASSERT(pending != 0);
31 do {
32 i = find_first_set_bit(pending);
33 clear_bit(i, &softirq_pending(cpu));
34 (*softirq_handlers[i])();
35 } while ( (pending = softirq_pending(cpu)) != 0 );
36 }
38 void open_softirq(int nr, softirq_handler handler)
39 {
40 softirq_handlers[nr] = handler;
41 }
43 /*
44 * Local variables:
45 * mode: C
46 * c-set-style: "BSD"
47 * c-basic-offset: 4
48 * tab-width: 4
49 * indent-tabs-mode: nil
50 * End:
51 */