/xen/xen/arch/x86/ |
A D | i387.c | 24 static inline void fpu_xrstor(struct vcpu *v, uint64_t mask) in fpu_xrstor() 41 static inline void fpu_fxrstor(struct vcpu *v) in fpu_fxrstor() 114 static inline uint64_t vcpu_xsave_mask(const struct vcpu *v) in vcpu_xsave_mask() 135 static inline void fpu_xsave(struct vcpu *v) in fpu_xsave() 154 static inline void fpu_fxsave(struct vcpu *v) in fpu_fxsave() 207 void vcpu_restore_fpu_nonlazy(struct vcpu *v, bool need_stts) in vcpu_restore_fpu_nonlazy() 250 void vcpu_restore_fpu_lazy(struct vcpu *v) in vcpu_restore_fpu_lazy() 275 static bool _vcpu_save_fpu(struct vcpu *v) in _vcpu_save_fpu() 295 void vcpu_save_fpu(struct vcpu *v) in vcpu_save_fpu() 308 int vcpu_init_fpu(struct vcpu *v) in vcpu_init_fpu() [all …]
|
A D | vm_event.c | 28 struct vcpu *v; in vm_event_init_domain() local 50 struct vcpu *v; in vm_event_cleanup_domain() local 61 void vm_event_toggle_singlestep(struct domain *d, struct vcpu *v, in vm_event_toggle_singlestep() 79 void vm_event_register_write_resume(struct vcpu *v, vm_event_response_t *rsp) in vm_event_register_write_resume() 116 void vm_event_set_registers(struct vcpu *v, vm_event_response_t *rsp) in vm_event_set_registers() 124 void vm_event_monitor_next_interrupt(struct vcpu *v) in vm_event_monitor_next_interrupt() 129 void vm_event_sync_event(struct vcpu *v, bool value) in vm_event_sync_event() 257 void vm_event_emulate_check(struct vcpu *v, vm_event_response_t *rsp) in vm_event_emulate_check()
|
/xen/xen/include/asm-x86/ |
A D | atomic.h | 90 static inline int atomic_read(const atomic_t *v) in atomic_read() 95 static inline int _atomic_read(atomic_t v) in _atomic_read() 100 static inline void atomic_set(atomic_t *v, int i) in atomic_set() 105 static inline void _atomic_set(atomic_t *v, int i) in _atomic_set() 115 static inline void atomic_add(int i, atomic_t *v) in atomic_add() 128 static inline void atomic_sub(int i, atomic_t *v) in atomic_sub() 154 static inline void atomic_inc(atomic_t *v) in atomic_inc() 162 static inline int atomic_inc_return(atomic_t *v) in atomic_inc_return() 180 static inline void atomic_dec(atomic_t *v) in atomic_dec() 188 static inline int atomic_dec_return(atomic_t *v) in atomic_dec_return() [all …]
|
/xen/xen/arch/x86/hvm/vmx/ |
A D | vvmx.c | 203 struct vcpu *v; in nvmx_domain_relinquish_resources() local 407 struct vcpu *v = current; in decode_vmx_inst() local 486 struct vcpu *v = current; in vmfail_valid() local 497 struct vcpu *v = current; in vmfail_invalid() local 1203 struct vcpu *v = current; in virtual_vmentry() local 1431 struct vcpu *v = current; in virtual_vmexit() local 1505 struct vcpu *v = current; in nvmx_switch_guest() local 1542 struct vcpu *v=current; in nvmx_handle_vmxon() local 1594 struct vcpu *v=current; in nvmx_handle_vmxoff() local 1693 struct vcpu *v = current; in nvmx_handle_vmresume() local [all …]
|
A D | vmx.c | 105 static void vmx_vcpu_block(struct vcpu *v) in vmx_vcpu_block() 321 struct vcpu *v; in vmx_pi_hooks_assign() local 358 struct vcpu *v; in vmx_pi_hooks_deassign() local 594 int vmx_guest_x86_mode(struct vcpu *v) in vmx_guest_x86_mode() 1731 struct vcpu *v = current; in vmx_inject_extint() local 1751 struct vcpu *v = current; in vmx_inject_nmi() local 2094 struct vcpu *v; in vmx_enable_msr_interception() local 2615 struct vcpu *v = current; in vmx_dr_access() local 3170 struct vcpu *v = current; in vmx_msr_write_intercept() local 3512 struct vcpu *v = current; in vmx_enter_realmode() local [all …]
|
A D | vmcs.c | 581 struct vcpu *v = info; in __vmx_clear_vmcs() local 631 void vmx_vmcs_reload(struct vcpu *v) in vmx_vmcs_reload() 791 struct vcpu *v; member 832 void vmx_vmcs_enter(struct vcpu *v) in vmx_vmcs_enter() 839 void vmx_vmcs_exit(struct vcpu *v) in vmx_vmcs_exit() 1717 struct vcpu *v; in vmx_domain_enable_pml() local 1748 struct vcpu *v; in vmx_domain_disable_pml() local 1767 struct vcpu *v; in vmx_domain_flush_pml_buffers() local 1792 struct vcpu *v; in vmx_domain_update_eptp() local 1855 struct vcpu *v = current; in vmx_do_resume() local [all …]
|
/xen/xen/arch/x86/hvm/ |
A D | vpt.c | 81 struct vcpu *v = pt->vcpu; in pt_irq_vector() local 110 struct vcpu *v = pt->vcpu; in pt_irq_masked() local 156 static void pt_vcpu_lock(struct vcpu *v) in pt_vcpu_lock() 162 static void pt_vcpu_unlock(struct vcpu *v) in pt_vcpu_unlock() 203 static void pt_freeze_time(struct vcpu *v) in pt_freeze_time() 211 static void pt_thaw_time(struct vcpu *v) in pt_thaw_time() 223 void pt_save_timer(struct vcpu *v) in pt_save_timer() 242 void pt_restore_timer(struct vcpu *v) in pt_restore_timer() 313 int pt_update_irq(struct vcpu *v) in pt_update_irq() 429 struct vcpu *v, struct hvm_intack intack) in is_pt_irq() [all …]
|
A D | vlapic.c | 322 struct vcpu *v; in vlapic_init_sipi_action() local 392 struct vcpu *v; in vlapic_lowest_prio() local 418 struct vcpu *v = vlapic_vcpu(vlapic); in vlapic_EOI_set() local 462 struct vcpu *v = vlapic_vcpu(vlapic); in vlapic_handle_EOI() local 540 struct vcpu *v; in vlapic_ipi() local 1187 struct vcpu *v = vlapic_vcpu(vlapic); in vlapic_tdt_msr_set() local 1287 struct vcpu *v; in vlapic_adjust_i8259_target() local 1531 struct vcpu *v; in lapic_load_hidden() local 1565 struct vcpu *v; in lapic_load_regs() local 1603 int vlapic_init(struct vcpu *v) in vlapic_init() [all …]
|
A D | nestedhvm.c | 31 nestedhvm_vcpu_in_guestmode(struct vcpu *v) in nestedhvm_vcpu_in_guestmode() 37 nestedhvm_vcpu_reset(struct vcpu *v) in nestedhvm_vcpu_reset() 65 nestedhvm_vcpu_initialise(struct vcpu *v) in nestedhvm_vcpu_initialise() 81 nestedhvm_vcpu_destroy(struct vcpu *v) in nestedhvm_vcpu_destroy() 90 struct vcpu *v = current; in nestedhvm_flushtlb_ipi() local
|
/xen/xen/arch/x86/hvm/svm/ |
A D | nestedsvm.c | 35 nestedsvm_vcpu_clgi(struct vcpu *v) in nestedsvm_vcpu_clgi() 43 nestedsvm_vcpu_stgi(struct vcpu *v) in nestedsvm_vcpu_stgi() 98 int nsvm_vcpu_initialise(struct vcpu *v) in nsvm_vcpu_initialise() 128 void nsvm_vcpu_destroy(struct vcpu *v) in nsvm_vcpu_destroy() 163 int nsvm_vcpu_reset(struct vcpu *v) in nsvm_vcpu_reset() 850 uint64_t nsvm_vcpu_hostcr3(struct vcpu *v) in nsvm_vcpu_hostcr3() 1185 nsvm_vmcb_hap_enabled(struct vcpu *v) in nsvm_vmcb_hap_enabled() 1220 enum hvm_intblk nsvm_intr_blocked(struct vcpu *v) in nsvm_intr_blocked() 1329 nestedsvm_vmexit_defer(struct vcpu *v, in nestedsvm_vmexit_defer() 1498 struct vcpu *v = current; in nsvm_vcpu_switch() local [all …]
|
A D | svm.c | 170 struct vcpu *v; in svm_enable_msr_interception() local 176 static void svm_save_dr(struct vcpu *v) in svm_save_dr() 246 static void svm_restore_dr(struct vcpu *v) in svm_restore_dr() 398 static void svm_fpu_enter(struct vcpu *v) in svm_fpu_enter() 408 static void svm_fpu_leave(struct vcpu *v) in svm_fpu_leave() 992 struct vcpu *v = current; in svm_do_resume() local 1743 struct vcpu *v = current; in svm_fpu_dirty_intercept() local 1790 struct vcpu *v = current; in svm_msr_read_intercept() local 1958 struct vcpu *v = current; in svm_msr_write_intercept() local 2318 struct vcpu *v = current; in svm_is_erratum_383() local [all …]
|
/xen/xen/include/asm-arm/ |
A D | atomic.h | 153 static inline int atomic_read(const atomic_t *v) in atomic_read() 158 static inline int _atomic_read(atomic_t v) in _atomic_read() 163 static inline void atomic_set(atomic_t *v, int i) in atomic_set() 168 static inline void _atomic_set(atomic_t *v, int i) in _atomic_set() 186 static inline void atomic_inc(atomic_t *v) in atomic_inc() 191 static inline int atomic_inc_return(atomic_t *v) in atomic_inc_return() 196 static inline int atomic_inc_and_test(atomic_t *v) in atomic_inc_and_test() 201 static inline void atomic_dec(atomic_t *v) in atomic_dec() 206 static inline int atomic_dec_return(atomic_t *v) in atomic_dec_return() 211 static inline int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test() [all …]
|
/xen/xen/include/asm-x86/hvm/ |
A D | hvm.h | 358 #define hvm_paging_enabled(v) \ argument 360 #define hvm_wp_enabled(v) \ argument 362 #define hvm_pcid_enabled(v) \ argument 364 #define hvm_pae_enabled(v) \ argument 366 #define hvm_smep_enabled(v) \ argument 368 #define hvm_smap_enabled(v) \ argument 370 #define hvm_nx_enabled(v) \ argument 372 #define hvm_pku_enabled(v) \ argument 387 hvm_guest_x86_mode(struct vcpu *v) in hvm_guest_x86_mode() 440 hvm_get_cpl(struct vcpu *v) in hvm_get_cpl() [all …]
|
A D | nestedhvm.h | 48 #define nestedhvm_vcpu_enter_guestmode(v) \ argument 50 #define nestedhvm_vcpu_exit_guestmode(v) \ argument 72 #define nestedhvm_paging_mode_hap(v) (!!nhvm_vmcx_hap_enabled(v)) argument 73 #define nestedhvm_vmswitch_in_progress(v) \ argument 78 static inline bool nestedhvm_is_n2(struct vcpu *v) in nestedhvm_is_n2() 88 static inline void nestedhvm_set_cr(struct vcpu *v, unsigned int cr, in nestedhvm_set_cr() 96 static inline bool vvmcx_valid(const struct vcpu *v) in vvmcx_valid()
|
/xen/xen/arch/x86/pv/ |
A D | domain.c | 119 static int setup_compat_l4(struct vcpu *v) in setup_compat_l4() 144 static void release_compat_l4(struct vcpu *v) in release_compat_l4() 187 unsigned long pv_make_cr4(const struct vcpu *v) in pv_make_cr4() 223 struct vcpu *v; in switch_compat() local 266 static int pv_create_gdt_ldt_l1tab(struct vcpu *v) in pv_create_gdt_ldt_l1tab() 274 static void pv_destroy_gdt_ldt_l1tab(struct vcpu *v) in pv_destroy_gdt_ldt_l1tab() 280 void pv_vcpu_destroy(struct vcpu *v) in pv_vcpu_destroy() 292 int pv_vcpu_initialise(struct vcpu *v) in pv_vcpu_initialise() 413 static void _toggle_guest_pt(struct vcpu *v) in _toggle_guest_pt() 444 void toggle_guest_mode(struct vcpu *v) in toggle_guest_mode() [all …]
|
/xen/stubdom/vtpmmgr/ |
A D | endian_int.h | 24 static inline uint16_t be16_native(be16_t v) in be16_native() 29 static inline uint32_t le32_native(le32_t v) in le32_native() 34 static inline uint32_t be32_native(be32_t v) in be32_native() 39 static inline uint64_t be64_native(be64_t v) in be64_native() 44 static inline be16_t native_be16(uint16_t v) in native_be16() 51 static inline le32_t native_le32(uint32_t v) in native_le32() 58 static inline be32_t native_be32(uint32_t v) in native_be32() 65 static inline be64_t native_be64(uint64_t v) in native_be64()
|
/xen/xen/arch/arm/ |
A D | gic-vgic.c | 69 void gic_remove_from_lr_pending(struct vcpu *v, struct pending_irq *p) in gic_remove_from_lr_pending() 76 void gic_raise_inflight_irq(struct vcpu *v, unsigned int virtual_irq) in gic_raise_inflight_irq() 109 static unsigned int gic_find_unused_lr(struct vcpu *v, in gic_find_unused_lr() 136 void gic_raise_guest_irq(struct vcpu *v, unsigned int virtual_irq, in gic_raise_guest_irq() 163 static void gic_update_one_lr(struct vcpu *v, int i) in gic_update_one_lr() 252 void vgic_sync_from_lrs(struct vcpu *v) in vgic_sync_from_lrs() 277 static void gic_restore_pending_irqs(struct vcpu *v) in gic_restore_pending_irqs() 334 void gic_clear_pending_irqs(struct vcpu *v) in gic_clear_pending_irqs() 355 int vgic_vcpu_pending_irq(struct vcpu *v) in vgic_vcpu_pending_irq() 405 void gic_dump_vgic_info(struct vcpu *v) in gic_dump_vgic_info() [all …]
|
A D | vgic.c | 50 struct vgic_irq_rank *vgic_rank_offset(struct vcpu *v, int b, int n, in vgic_rank_offset() 58 struct vgic_irq_rank *vgic_rank_irq(struct vcpu *v, unsigned int irq) in vgic_rank_irq() 205 int vcpu_vgic_init(struct vcpu *v) in vcpu_vgic_init() 229 int vcpu_vgic_free(struct vcpu *v) in vcpu_vgic_free() 235 struct vcpu *vgic_get_target_vcpu(struct vcpu *v, unsigned int virq) in vgic_get_target_vcpu() 307 void arch_move_irqs(struct vcpu *v) in arch_move_irqs() 336 void vgic_disable_irqs(struct vcpu *v, uint32_t r, int n) in vgic_disable_irqs() 386 void vgic_enable_irqs(struct vcpu *v, uint32_t r, int n) in vgic_enable_irqs() 507 void vgic_clear_pending_irqs(struct vcpu *v) in vgic_clear_pending_irqs() 600 bool vgic_evtchn_irq_pending(struct vcpu *v) in vgic_evtchn_irq_pending() [all …]
|
A D | vtimer.c | 98 int vcpu_vtimer_init(struct vcpu *v) in vcpu_vtimer_init() 128 void vcpu_timer_destroy(struct vcpu *v) in vcpu_timer_destroy() 137 void virt_timer_save(struct vcpu *v) in virt_timer_save() 152 void virt_timer_restore(struct vcpu *v) in virt_timer_restore() 167 struct vcpu *v = current; in vtimer_cntp_ctl() local 203 struct vcpu *v = current; in vtimer_cntp_tval() local 237 struct vcpu *v = current; in vtimer_cntp_cval() local 349 static void vtimer_update_irq(struct vcpu *v, struct vtimer *vtimer, in vtimer_update_irq() 378 void vtimer_update_irqs(struct vcpu *v) in vtimer_update_irqs()
|
A D | domain.c | 372 void sync_vcpu_execstate(struct vcpu *v) in sync_vcpu_execstate() 493 struct vcpu *v = current; in startup_cpu_idle_loop() local 538 struct vcpu *v; in alloc_vcpu_struct() local 553 void free_vcpu_struct(struct vcpu *v) in free_vcpu_struct() 558 int arch_vcpu_create(struct vcpu *v) in arch_vcpu_create() 606 void arch_vcpu_destroy(struct vcpu *v) in arch_vcpu_destroy() 868 struct vcpu *v, vcpu_guest_context_u c) in arch_set_info_guest() 922 int arch_vcpu_reset(struct vcpu *v) in arch_vcpu_reset() 1065 void arch_dump_vcpu_info(struct vcpu *v) in arch_dump_vcpu_info() 1071 void vcpu_mark_events_pending(struct vcpu *v) in vcpu_mark_events_pending() [all …]
|
/xen/xen/common/ |
A D | domain.c | 87 struct vcpu *v; in __domain_finalise_shutdown() local 140 struct vcpu *v; in vcpu_create() local 703 struct vcpu *v; in domain_kill() local 778 struct vcpu *v; in domain_shutdown() local 825 struct vcpu *v; in domain_resume() local 875 struct vcpu *v; in complete_domain_destroy() local 1026 struct vcpu *v; in do_domain_pause() local 1049 struct vcpu *v; in domain_unpause() local 1156 struct vcpu *v; in domain_soft_reset() local 1191 int vcpu_reset(struct vcpu *v) in vcpu_reset() [all …]
|
/xen/xen/arch/x86/hvm/viridian/ |
A D | synic.c | 27 void viridian_apic_assist_set(const struct vcpu *v) in viridian_apic_assist_set() 47 bool viridian_apic_assist_completed(const struct vcpu *v) in viridian_apic_assist_completed() 65 void viridian_apic_assist_clear(const struct vcpu *v) in viridian_apic_assist_clear() 77 int viridian_synic_wrmsr(struct vcpu *v, uint32_t idx, uint64_t val) in viridian_synic_wrmsr() 277 int viridian_synic_vcpu_init(const struct vcpu *v) in viridian_synic_vcpu_init() 301 void viridian_synic_vcpu_deinit(const struct vcpu *v) in viridian_synic_vcpu_deinit() 313 void viridian_synic_poll(struct vcpu *v) in viridian_synic_poll() 369 bool viridian_synic_is_auto_eoi_sint(const struct vcpu *v, in viridian_synic_is_auto_eoi_sint() 383 void viridian_synic_ack_sint(const struct vcpu *v, unsigned int vector) in viridian_synic_ack_sint() 395 void viridian_synic_save_vcpu_ctxt(const struct vcpu *v, in viridian_synic_save_vcpu_ctxt() [all …]
|
/xen/xen/arch/x86/cpu/mcheck/ |
A D | vmce.c | 55 void vmce_init_vcpu(struct vcpu *v) in vmce_init_vcpu() 74 int vmce_restore_vcpu(struct vcpu *v, const struct hvm_vmce_vcpu *ctxt) in vmce_restore_vcpu() 104 static int bank_mce_rdmsr(const struct vcpu *v, uint32_t msr, uint64_t *val) in bank_mce_rdmsr() 240 static int bank_mce_wrmsr(struct vcpu *v, uint32_t msr, uint64_t val) in bank_mce_wrmsr() 356 static int vmce_save_vcpu_ctxt(struct vcpu *v, hvm_domain_context_t *h) in vmce_save_vcpu_ctxt() 371 struct vcpu *v; in vmce_load_vcpu_ctxt() local 402 struct vcpu *v; in inject_vmce() local 436 static int vcpu_fill_mc_msrs(struct vcpu *v, uint64_t mcg_status, in vcpu_fill_mc_msrs() 466 struct vcpu *v = d->vcpu[0]; in fill_vmsr_data() local 548 struct vcpu *v; in vmce_enable_mca_cap() local
|
/xen/xen/include/asm-arm/arm64/ |
A D | io.h | 106 #define writeb_relaxed(v,c) ((void)__raw_writeb((v),(c))) argument 107 #define writew_relaxed(v,c) ((void)__raw_writew((__force u16)cpu_to_le16(v),(c))) argument 108 #define writel_relaxed(v,c) ((void)__raw_writel((__force u32)cpu_to_le32(v),(c))) argument 109 #define writeq_relaxed(v,c) ((void)__raw_writeq((__force u64)cpu_to_le64(v),(c))) argument 121 #define writeb(v,c) ({ __iowmb(); writeb_relaxed((v),(c)); }) argument 122 #define writew(v,c) ({ __iowmb(); writew_relaxed((v),(c)); }) argument 123 #define writel(v,c) ({ __iowmb(); writel_relaxed((v),(c)); }) argument 124 #define writeq(v,c) ({ __iowmb(); writeq_relaxed((v),(c)); }) argument 144 #define outb(v, c) ( emulate_write(c) ) argument 145 #define outw(v, c) ( emulate_write(c) ) argument [all …]
|
/xen/xen/arch/x86/cpu/ |
A D | vpmu.c | 340 struct vcpu *v = arg; in vpmu_save_force() local 356 void vpmu_save(struct vcpu *v) in vpmu_save() 488 static void get_vpmu(struct vcpu *v) in get_vpmu() 511 static void put_vpmu(struct vcpu *v) in put_vpmu() 532 void vpmu_initialise(struct vcpu *v) in vpmu_initialise() 550 static void vpmu_arch_destroy(struct vcpu *v) in vpmu_arch_destroy() 585 static void vpmu_cleanup(struct vcpu *v) in vpmu_cleanup() 608 void vpmu_destroy(struct vcpu *v) in vpmu_destroy() 617 struct vcpu *v; in pvpmu_init() local 668 struct vcpu *v; in pvpmu_finish() local [all …]
|