Lines Matching defs:vcpu
144 u64 kvm_get_apic_base(struct kvm_vcpu *vcpu) in kvm_get_apic_base()
153 void kvm_set_apic_base(struct kvm_vcpu *vcpu, u64 data) in kvm_set_apic_base()
163 void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr) in kvm_queue_exception()
172 void kvm_inject_page_fault(struct kvm_vcpu *vcpu, unsigned long addr, in kvm_inject_page_fault()
192 void kvm_inject_nmi(struct kvm_vcpu *vcpu) in kvm_inject_nmi()
198 void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code) in kvm_queue_exception_e()
208 static void __queue_exception(struct kvm_vcpu *vcpu) in __queue_exception()
218 int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3) in load_pdptrs()
247 static bool pdptrs_changed(struct kvm_vcpu *vcpu) in pdptrs_changed()
265 void kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0) in kvm_set_cr0()
326 void kvm_lmsw(struct kvm_vcpu *vcpu, unsigned long msw) in kvm_lmsw()
335 void kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) in kvm_set_cr4()
369 void kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) in kvm_set_cr3()
422 void kvm_set_cr8(struct kvm_vcpu *vcpu, unsigned long cr8) in kvm_set_cr8()
436 unsigned long kvm_get_cr8(struct kvm_vcpu *vcpu) in kvm_get_cr8()
468 static void set_efer(struct kvm_vcpu *vcpu, u64 efer) in set_efer()
504 int kvm_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data) in kvm_set_msr()
512 static int do_set_msr(struct kvm_vcpu *vcpu, unsigned index, u64 *data) in do_set_msr()
593 struct kvm_vcpu_arch *vcpu = &v->arch; in kvm_write_guest_time() local
656 static int set_msr_mtrr(struct kvm_vcpu *vcpu, u32 msr, u64 data) in set_msr_mtrr()
693 int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data) in kvm_set_msr_common()
778 int kvm_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) in kvm_get_msr()
783 static int get_msr_mtrr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in get_msr_mtrr()
819 int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) in kvm_get_msr_common()
891 static int __msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs *msrs, in __msr_io()
893 int (*do_msr)(struct kvm_vcpu *vcpu, in __msr_io()
916 static int msr_io(struct kvm_vcpu *vcpu, struct kvm_msrs __user *user_msrs, in msr_io()
917 int (*do_msr)(struct kvm_vcpu *vcpu, in msr_io()
1064 void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) in kvm_arch_vcpu_load()
1070 void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_put()
1084 static void cpuid_fix_nx_cap(struct kvm_vcpu *vcpu) in cpuid_fix_nx_cap()
1104 static int kvm_vcpu_ioctl_set_cpuid(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_set_cpuid()
1144 static int kvm_vcpu_ioctl_set_cpuid2(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_set_cpuid2()
1164 static int kvm_vcpu_ioctl_get_cpuid2(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_get_cpuid2()
1347 static int kvm_vcpu_ioctl_get_lapic(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_get_lapic()
1357 static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_set_lapic()
1368 static int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu, in kvm_vcpu_ioctl_interrupt()
1385 static int kvm_vcpu_ioctl_nmi(struct kvm_vcpu *vcpu) in kvm_vcpu_ioctl_nmi()
1394 static int vcpu_ioctl_tpr_access_reporting(struct kvm_vcpu *vcpu, in vcpu_ioctl_tpr_access_reporting()
1406 struct kvm_vcpu *vcpu = filp->private_data; in kvm_arch_vcpu_ioctl() local
1935 static struct kvm_io_device *vcpu_find_pervcpu_dev(struct kvm_vcpu *vcpu, in vcpu_find_pervcpu_dev()
1950 static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, in vcpu_find_mmio_dev()
1966 struct kvm_vcpu *vcpu) in emulator_read_std()
1999 struct kvm_vcpu *vcpu) in emulator_read_emulated()
2043 int emulator_write_phys(struct kvm_vcpu *vcpu, gpa_t gpa, in emulator_write_phys()
2058 struct kvm_vcpu *vcpu) in emulator_write_emulated_onepage()
2102 struct kvm_vcpu *vcpu) in emulator_write_emulated()
2124 struct kvm_vcpu *vcpu) in emulator_cmpxchg_emulated()
2164 static unsigned long get_segment_base(struct kvm_vcpu *vcpu, int seg) in get_segment_base()
2169 int emulate_invlpg(struct kvm_vcpu *vcpu, gva_t address) in emulate_invlpg()
2175 int emulate_clts(struct kvm_vcpu *vcpu) in emulate_clts()
2184 struct kvm_vcpu *vcpu = ctxt->vcpu; in emulator_get_dr() local
2209 void kvm_report_emulation_failure(struct kvm_vcpu *vcpu, const char *context) in kvm_report_emulation_failure()
2234 static void cache_all_regs(struct kvm_vcpu *vcpu) in cache_all_regs()
2242 int emulate_instruction(struct kvm_vcpu *vcpu, in emulate_instruction()
2330 static void free_pio_guest_pages(struct kvm_vcpu *vcpu) in free_pio_guest_pages()
2341 static int pio_copy_data(struct kvm_vcpu *vcpu) in pio_copy_data()
2366 int complete_pio(struct kvm_vcpu *vcpu) in complete_pio()
2418 struct kvm_vcpu *vcpu, in kernel_pio()
2436 struct kvm_vcpu *vcpu) in pio_string_write()
2452 static struct kvm_io_device *vcpu_find_pio_dev(struct kvm_vcpu *vcpu, in vcpu_find_pio_dev()
2459 int kvm_emulate_pio(struct kvm_vcpu *vcpu, struct kvm_run *run, int in, in kvm_emulate_pio()
2497 int kvm_emulate_pio_string(struct kvm_vcpu *vcpu, struct kvm_run *run, int in, in kvm_emulate_pio_string()
2635 int kvm_emulate_halt(struct kvm_vcpu *vcpu) in kvm_emulate_halt()
2649 static inline gpa_t hc_gpa(struct kvm_vcpu *vcpu, unsigned long a0, in hc_gpa()
2658 int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) in kvm_emulate_hypercall()
2696 int kvm_fix_hypercall(struct kvm_vcpu *vcpu) in kvm_fix_hypercall()
2723 void realmode_lgdt(struct kvm_vcpu *vcpu, u16 limit, unsigned long base) in realmode_lgdt()
2730 void realmode_lidt(struct kvm_vcpu *vcpu, u16 limit, unsigned long base) in realmode_lidt()
2737 void realmode_lmsw(struct kvm_vcpu *vcpu, unsigned long msw, in realmode_lmsw()
2744 unsigned long realmode_get_cr(struct kvm_vcpu *vcpu, int cr) in realmode_get_cr()
2775 void realmode_set_cr(struct kvm_vcpu *vcpu, int cr, unsigned long val, in realmode_set_cr()
2803 static int move_to_next_stateful_cpuid_entry(struct kvm_vcpu *vcpu, int i) in move_to_next_stateful_cpuid_entry()
2835 void kvm_emulate_cpuid(struct kvm_vcpu *vcpu) in kvm_emulate_cpuid()
2884 static int dm_request_for_irq_injection(struct kvm_vcpu *vcpu, in dm_request_for_irq_injection()
2893 static void post_kvm_run_save(struct kvm_vcpu *vcpu, in post_kvm_run_save()
2907 static void vapic_enter(struct kvm_vcpu *vcpu) in vapic_enter()
2920 static void vapic_exit(struct kvm_vcpu *vcpu) in vapic_exit()
2933 static int vcpu_enter_guest(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in vcpu_enter_guest()
3046 static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in __vcpu_run()
3106 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) in kvm_arch_vcpu_ioctl_run()
3166 int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) in kvm_arch_vcpu_ioctl_get_regs()
3203 int kvm_arch_vcpu_ioctl_set_regs(struct kvm_vcpu *vcpu, struct kvm_regs *regs) in kvm_arch_vcpu_ioctl_set_regs()
3238 void kvm_get_segment(struct kvm_vcpu *vcpu, in kvm_get_segment()
3244 void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) in kvm_get_cs_db_l_bits()
3254 int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu, in kvm_arch_vcpu_ioctl_get_sregs()
3304 int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu, in kvm_arch_vcpu_ioctl_get_mpstate()
3313 int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu, in kvm_arch_vcpu_ioctl_set_mpstate()
3322 static void kvm_set_segment(struct kvm_vcpu *vcpu, in kvm_set_segment()
3356 static void get_segment_descriptor_dtable(struct kvm_vcpu *vcpu, in get_segment_descriptor_dtable()
3376 static int load_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector, in load_guest_segment_descriptor()
3395 static int save_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector, in save_guest_segment_descriptor()
3411 static u32 get_tss_base_addr(struct kvm_vcpu *vcpu, in get_tss_base_addr()
3423 static u16 get_segment_selector(struct kvm_vcpu *vcpu, int seg) in get_segment_selector()
3431 static int load_segment_descriptor_to_kvm_desct(struct kvm_vcpu *vcpu, in load_segment_descriptor_to_kvm_desct()
3443 static int kvm_load_realmode_segment(struct kvm_vcpu *vcpu, u16 selector, int seg) in kvm_load_realmode_segment()
3463 int kvm_load_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector, in kvm_load_segment_descriptor()
3483 static void save_state_to_tss32(struct kvm_vcpu *vcpu, in save_state_to_tss32()
3507 static int load_state_from_tss32(struct kvm_vcpu *vcpu, in load_state_from_tss32()
3547 static void save_state_to_tss16(struct kvm_vcpu *vcpu, in save_state_to_tss16()
3569 static int load_state_from_tss16(struct kvm_vcpu *vcpu, in load_state_from_tss16()
3600 static int kvm_task_switch_16(struct kvm_vcpu *vcpu, u16 tss_selector, in kvm_task_switch_16()
3629 static int kvm_task_switch_32(struct kvm_vcpu *vcpu, u16 tss_selector, in kvm_task_switch_32()
3658 int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason) in kvm_task_switch()
3732 int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, in kvm_arch_vcpu_ioctl_set_sregs()
3814 int kvm_arch_vcpu_ioctl_debug_guest(struct kvm_vcpu *vcpu, in kvm_arch_vcpu_ioctl_debug_guest()
3852 int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, in kvm_arch_vcpu_ioctl_translate()
3871 int kvm_arch_vcpu_ioctl_get_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) in kvm_arch_vcpu_ioctl_get_fpu()
3891 int kvm_arch_vcpu_ioctl_set_fpu(struct kvm_vcpu *vcpu, struct kvm_fpu *fpu) in kvm_arch_vcpu_ioctl_set_fpu()
3911 void fx_init(struct kvm_vcpu *vcpu) in fx_init()
3940 void kvm_load_guest_fpu(struct kvm_vcpu *vcpu) in kvm_load_guest_fpu()
3951 void kvm_put_guest_fpu(struct kvm_vcpu *vcpu) in kvm_put_guest_fpu()
3963 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_free()
3974 int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_setup()
3996 void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_destroy()
4005 int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_reset()
4038 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_init()
4080 void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_uninit()
4106 static void kvm_unload_vcpu_mmu(struct kvm_vcpu *vcpu) in kvm_unload_vcpu_mmu()
4214 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) in kvm_arch_vcpu_runnable()
4224 struct kvm_vcpu *vcpu = (struct kvm_vcpu *)info; in vcpu_kick_intr() local
4229 void kvm_vcpu_kick(struct kvm_vcpu *vcpu) in kvm_vcpu_kick()