Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
interrupts_and_traps.c File Reference
#include <linux/uaccess.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/sched.h>
#include "lg.h"

Go to the source code of this file.

Functions

 module_param (syscall_vector, uint, 0444)
 
unsigned int interrupt_pending (struct lg_cpu *cpu, bool *more)
 
void try_deliver_interrupt (struct lg_cpu *cpu, unsigned int irq, bool more)
 
void set_interrupt (struct lg_cpu *cpu, unsigned int irq)
 
bool check_syscall_vector (struct lguest *lg)
 
int init_interrupts (void)
 
void free_interrupts (void)
 
bool deliver_trap (struct lg_cpu *cpu, unsigned int num)
 
void pin_stack_pages (struct lg_cpu *cpu)
 
void guest_set_stack (struct lg_cpu *cpu, u32 seg, u32 esp, unsigned int pages)
 
void load_guest_idt_entry (struct lg_cpu *cpu, unsigned int num, u32 lo, u32 hi)
 
void setup_default_idt_entries (struct lguest_ro_state *state, const unsigned long *def)
 
void copy_traps (const struct lg_cpu *cpu, struct desc_struct *idt, const unsigned long *def)
 
void guest_set_clockevent (struct lg_cpu *cpu, unsigned long delta)
 
void init_clockdev (struct lg_cpu *cpu)
 

Function Documentation

bool check_syscall_vector ( struct lguest lg)

Definition at line 288 of file interrupts_and_traps.c.

void copy_traps ( const struct lg_cpu cpu,
struct desc_struct idt,
const unsigned long def 
)

Definition at line 567 of file interrupts_and_traps.c.

bool deliver_trap ( struct lg_cpu cpu,
unsigned int  num 
)

Definition at line 331 of file interrupts_and_traps.c.

void free_interrupts ( void  )

Definition at line 314 of file interrupts_and_traps.c.

void guest_set_clockevent ( struct lg_cpu cpu,
unsigned long  delta 
)

Definition at line 613 of file interrupts_and_traps.c.

void guest_set_stack ( struct lg_cpu cpu,
u32  seg,
u32  esp,
unsigned int  pages 
)

Definition at line 438 of file interrupts_and_traps.c.

void init_clockdev ( struct lg_cpu cpu)

Definition at line 643 of file interrupts_and_traps.c.

int init_interrupts ( void  )

Definition at line 298 of file interrupts_and_traps.c.

unsigned int interrupt_pending ( struct lg_cpu cpu,
bool more 
)

Definition at line 158 of file interrupts_and_traps.c.

void load_guest_idt_entry ( struct lg_cpu cpu,
unsigned int  num,
u32  lo,
u32  hi 
)

Definition at line 499 of file interrupts_and_traps.c.

module_param ( syscall_vector  ,
uint  ,
0444   
)
void pin_stack_pages ( struct lg_cpu cpu)

Definition at line 410 of file interrupts_and_traps.c.

void set_interrupt ( struct lg_cpu cpu,
unsigned int  irq 
)

Definition at line 256 of file interrupts_and_traps.c.

void setup_default_idt_entries ( struct lguest_ro_state state,
const unsigned long def 
)

Definition at line 553 of file interrupts_and_traps.c.

void try_deliver_interrupt ( struct lg_cpu cpu,
unsigned int  irq,
bool  more 
)

Definition at line 187 of file interrupts_and_traps.c.