Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
lapic.h File Reference
#include "iodev.h"
#include <linux/kvm_host.h>

Go to the source code of this file.

Data Structures

struct  kvm_timer
 
struct  kvm_lapic
 

Functions

int kvm_create_lapic (struct kvm_vcpu *vcpu)
 
void kvm_free_lapic (struct kvm_vcpu *vcpu)
 
int kvm_apic_has_interrupt (struct kvm_vcpu *vcpu)
 
int kvm_apic_accept_pic_intr (struct kvm_vcpu *vcpu)
 
int kvm_get_apic_interrupt (struct kvm_vcpu *vcpu)
 
void kvm_lapic_reset (struct kvm_vcpu *vcpu)
 
u64 kvm_lapic_get_cr8 (struct kvm_vcpu *vcpu)
 
void kvm_lapic_set_tpr (struct kvm_vcpu *vcpu, unsigned long cr8)
 
void kvm_lapic_set_eoi (struct kvm_vcpu *vcpu)
 
void kvm_lapic_set_base (struct kvm_vcpu *vcpu, u64 value)
 
u64 kvm_lapic_get_base (struct kvm_vcpu *vcpu)
 
void kvm_apic_set_version (struct kvm_vcpu *vcpu)
 
int kvm_apic_match_physical_addr (struct kvm_lapic *apic, u16 dest)
 
int kvm_apic_match_logical_addr (struct kvm_lapic *apic, u8 mda)
 
int kvm_apic_set_irq (struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq)
 
int kvm_apic_local_deliver (struct kvm_lapic *apic, int lvt_type)
 
bool kvm_irq_delivery_to_apic_fast (struct kvm *kvm, struct kvm_lapic *src, struct kvm_lapic_irq *irq, int *r)
 
u64 kvm_get_apic_base (struct kvm_vcpu *vcpu)
 
void kvm_set_apic_base (struct kvm_vcpu *vcpu, u64 data)
 
void kvm_apic_post_state_restore (struct kvm_vcpu *vcpu, struct kvm_lapic_state *s)
 
int kvm_lapic_find_highest_irr (struct kvm_vcpu *vcpu)
 
u64 kvm_get_lapic_tscdeadline_msr (struct kvm_vcpu *vcpu)
 
void kvm_set_lapic_tscdeadline_msr (struct kvm_vcpu *vcpu, u64 data)
 
void kvm_lapic_set_vapic_addr (struct kvm_vcpu *vcpu, gpa_t vapic_addr)
 
void kvm_lapic_sync_from_vapic (struct kvm_vcpu *vcpu)
 
void kvm_lapic_sync_to_vapic (struct kvm_vcpu *vcpu)
 
int kvm_x2apic_msr_write (struct kvm_vcpu *vcpu, u32 msr, u64 data)
 
int kvm_x2apic_msr_read (struct kvm_vcpu *vcpu, u32 msr, u64 *data)
 
int kvm_hv_vapic_msr_write (struct kvm_vcpu *vcpu, u32 msr, u64 data)
 
int kvm_hv_vapic_msr_read (struct kvm_vcpu *vcpu, u32 msr, u64 *data)
 
int kvm_lapic_enable_pv_eoi (struct kvm_vcpu *vcpu, u64 data)
 
void kvm_lapic_init (void)
 

Variables

struct static_key kvm_no_apic_vcpu
 
struct static_key_deferred apic_hw_disabled
 
struct static_key_deferred apic_sw_disabled
 

Function Documentation

int kvm_apic_accept_pic_intr ( struct kvm_vcpu vcpu)

Definition at line 1520 of file lapic.c.

int kvm_apic_has_interrupt ( struct kvm_vcpu vcpu)

Definition at line 1504 of file lapic.c.

int kvm_apic_local_deliver ( struct kvm_lapic apic,
int  lvt_type 
)

Definition at line 1404 of file lapic.c.

int kvm_apic_match_logical_addr ( struct kvm_lapic apic,
u8  mda 
)

Definition at line 1878 of file kvm-ia64.c.

int kvm_apic_match_physical_addr ( struct kvm_lapic apic,
u16  dest 
)

Definition at line 1873 of file kvm-ia64.c.

void kvm_apic_post_state_restore ( struct kvm_vcpu vcpu,
struct kvm_lapic_state s 
)

Definition at line 1560 of file lapic.c.

int kvm_apic_set_irq ( struct kvm_vcpu vcpu,
struct kvm_lapic_irq irq 
)

Definition at line 1868 of file kvm-ia64.c.

void kvm_apic_set_version ( struct kvm_vcpu vcpu)

Definition at line 281 of file lapic.c.

int kvm_create_lapic ( struct kvm_vcpu vcpu)

Definition at line 1460 of file lapic.c.

void kvm_free_lapic ( struct kvm_vcpu vcpu)

Definition at line 1215 of file lapic.c.

u64 kvm_get_apic_base ( struct kvm_vcpu vcpu)

Definition at line 247 of file x86.c.

int kvm_get_apic_interrupt ( struct kvm_vcpu vcpu)

Definition at line 1546 of file lapic.c.

u64 kvm_get_lapic_tscdeadline_msr ( struct kvm_vcpu vcpu)

Definition at line 1242 of file lapic.c.

int kvm_hv_vapic_msr_read ( struct kvm_vcpu vcpu,
u32  msr,
u64 data 
)

Definition at line 1756 of file lapic.c.

int kvm_hv_vapic_msr_write ( struct kvm_vcpu vcpu,
u32  msr,
u64  data 
)

Definition at line 1743 of file lapic.c.

bool kvm_irq_delivery_to_apic_fast ( struct kvm kvm,
struct kvm_lapic src,
struct kvm_lapic_irq irq,
int r 
)

Definition at line 580 of file lapic.c.

int kvm_lapic_enable_pv_eoi ( struct kvm_vcpu vcpu,
u64  data 
)

Definition at line 1774 of file lapic.c.

int kvm_lapic_find_highest_irr ( struct kvm_vcpu vcpu)

Definition at line 386 of file lapic.c.

u64 kvm_lapic_get_base ( struct kvm_vcpu vcpu)
u64 kvm_lapic_get_cr8 ( struct kvm_vcpu vcpu)

Definition at line 1277 of file lapic.c.

void kvm_lapic_init ( void  )

Definition at line 1787 of file lapic.c.

void kvm_lapic_reset ( struct kvm_vcpu vcpu)

Definition at line 1326 of file lapic.c.

void kvm_lapic_set_base ( struct kvm_vcpu vcpu,
u64  value 
)

Definition at line 1289 of file lapic.c.

void kvm_lapic_set_eoi ( struct kvm_vcpu vcpu)

Definition at line 1208 of file lapic.c.

void kvm_lapic_set_tpr ( struct kvm_vcpu vcpu,
unsigned long  cr8 
)

Definition at line 1266 of file lapic.c.

void kvm_lapic_set_vapic_addr ( struct kvm_vcpu vcpu,
gpa_t  vapic_addr 
)

Definition at line 1702 of file lapic.c.

void kvm_lapic_sync_from_vapic ( struct kvm_vcpu vcpu)

Definition at line 1632 of file lapic.c.

void kvm_lapic_sync_to_vapic ( struct kvm_vcpu vcpu)

Definition at line 1676 of file lapic.c.

void kvm_set_apic_base ( struct kvm_vcpu vcpu,
u64  data 
)

Definition at line 253 of file x86.c.

void kvm_set_lapic_tscdeadline_msr ( struct kvm_vcpu vcpu,
u64  data 
)

Definition at line 1253 of file lapic.c.

int kvm_x2apic_msr_read ( struct kvm_vcpu vcpu,
u32  msr,
u64 data 
)

Definition at line 1725 of file lapic.c.

int kvm_x2apic_msr_write ( struct kvm_vcpu vcpu,
u32  msr,
u64  data 
)

Definition at line 1711 of file lapic.c.

Variable Documentation

struct static_key_deferred apic_hw_disabled
struct static_key_deferred apic_sw_disabled
struct static_key kvm_no_apic_vcpu