Lines Matching refs:kvm_lapic
80 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_pending_eoi()
104 static inline int apic_enabled(struct kvm_lapic *apic) in apic_enabled()
116 static inline u8 kvm_xapic_id(struct kvm_lapic *apic) in kvm_xapic_id()
121 static inline u32 kvm_x2apic_id(struct kvm_lapic *apic) in kvm_x2apic_id()
127 u32 dest_id, struct kvm_lapic ***cluster, u16 *mask) { in kvm_apic_map_get_logical_dest()
179 sizeof(struct kvm_lapic *) * ((u64)max_id + 1), GFP_KERNEL); in recalculate_apic_map()
187 struct kvm_lapic *apic = vcpu->arch.apic; in recalculate_apic_map()
188 struct kvm_lapic **cluster; in recalculate_apic_map()
241 static inline void apic_set_spiv(struct kvm_lapic *apic, u32 val) in apic_set_spiv()
257 static inline void kvm_apic_set_xapic_id(struct kvm_lapic *apic, u8 id) in kvm_apic_set_xapic_id()
263 static inline void kvm_apic_set_ldr(struct kvm_lapic *apic, u32 id) in kvm_apic_set_ldr()
274 static inline void kvm_apic_set_x2apic_id(struct kvm_lapic *apic, u32 id) in kvm_apic_set_x2apic_id()
285 static inline int apic_lvt_enabled(struct kvm_lapic *apic, int lvt_type) in apic_lvt_enabled()
290 static inline int apic_lvt_vector(struct kvm_lapic *apic, int lvt_type) in apic_lvt_vector()
295 static inline int apic_lvtt_oneshot(struct kvm_lapic *apic) in apic_lvtt_oneshot()
300 static inline int apic_lvtt_period(struct kvm_lapic *apic) in apic_lvtt_period()
305 static inline int apic_lvtt_tscdeadline(struct kvm_lapic *apic) in apic_lvtt_tscdeadline()
317 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_version()
407 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_update_irr()
413 static inline int apic_search_irr(struct kvm_lapic *apic) in apic_search_irr()
418 static inline int apic_find_highest_irr(struct kvm_lapic *apic) in apic_find_highest_irr()
435 static inline void apic_clear_irr(int vec, struct kvm_lapic *apic) in apic_clear_irr()
454 static inline void apic_set_isr(int vec, struct kvm_lapic *apic) in apic_set_isr()
482 static inline int apic_find_highest_isr(struct kvm_lapic *apic) in apic_find_highest_isr()
501 static inline void apic_clear_isr(int vec, struct kvm_lapic *apic) in apic_clear_isr()
537 static int __apic_accept_irq(struct kvm_lapic *apic, int delivery_mode,
544 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_irq()
651 static int apic_has_interrupt_for_ppr(struct kvm_lapic *apic, u32 ppr) in apic_has_interrupt_for_ppr()
663 static bool __apic_update_ppr(struct kvm_lapic *apic, u32 *new_ppr) in __apic_update_ppr()
688 static void apic_update_ppr(struct kvm_lapic *apic) in apic_update_ppr()
703 static void apic_set_tpr(struct kvm_lapic *apic, u32 tpr) in apic_set_tpr()
709 static bool kvm_apic_broadcast(struct kvm_lapic *apic, u32 mda) in kvm_apic_broadcast()
715 static bool kvm_apic_match_physical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_physical_addr()
735 static bool kvm_apic_match_logical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_logical_addr()
780 struct kvm_lapic *source, struct kvm_lapic *target) in kvm_apic_mda()
791 bool kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source, in kvm_apic_match_dest()
794 struct kvm_lapic *target = vcpu->arch.apic; in kvm_apic_match_dest()
847 static bool kvm_apic_is_broadcast_dest(struct kvm *kvm, struct kvm_lapic **src, in kvm_apic_is_broadcast_dest()
874 struct kvm_lapic **src, struct kvm_lapic_irq *irq, in kvm_apic_map_get_dest_lapic()
875 struct kvm_apic_map *map, struct kvm_lapic ***dst, in kvm_apic_map_get_dest_lapic()
938 bool kvm_irq_delivery_to_apic_fast(struct kvm *kvm, struct kvm_lapic *src, in kvm_irq_delivery_to_apic_fast()
943 struct kvm_lapic **dst = NULL; in kvm_irq_delivery_to_apic_fast()
990 struct kvm_lapic **dst = NULL; in kvm_intr_is_single_vcpu_fast()
1017 static int __apic_accept_irq(struct kvm_lapic *apic, int delivery_mode, in __apic_accept_irq()
1129 static bool kvm_ioapic_handles_vector(struct kvm_lapic *apic, int vector) in kvm_ioapic_handles_vector()
1134 static void kvm_ioapic_send_eoi(struct kvm_lapic *apic, int vector) in kvm_ioapic_send_eoi()
1157 static int apic_set_eoi(struct kvm_lapic *apic) in apic_set_eoi()
1187 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_eoi_accelerated()
1196 static void apic_send_ipi(struct kvm_lapic *apic) in apic_send_ipi()
1227 static u32 apic_get_tmcct(struct kvm_lapic *apic) in apic_get_tmcct()
1252 static void __report_tpr_access(struct kvm_lapic *apic, bool write) in __report_tpr_access()
1262 static inline void report_tpr_access(struct kvm_lapic *apic, bool write) in report_tpr_access()
1268 static u32 __apic_read(struct kvm_lapic *apic, unsigned int offset) in __apic_read()
1301 static inline struct kvm_lapic *to_lapic(struct kvm_io_device *dev) in to_lapic()
1303 return container_of(dev, struct kvm_lapic, dev); in to_lapic()
1306 int kvm_lapic_reg_read(struct kvm_lapic *apic, u32 offset, int len, in kvm_lapic_reg_read()
1345 static int apic_mmio_in_range(struct kvm_lapic *apic, gpa_t addr) in apic_mmio_in_range()
1354 struct kvm_lapic *apic = to_lapic(this); in apic_mmio_read()
1374 static void update_divide_count(struct kvm_lapic *apic) in update_divide_count()
1387 static void limit_periodic_timer_frequency(struct kvm_lapic *apic) in limit_periodic_timer_frequency()
1408 static void apic_update_lvtt(struct kvm_lapic *apic) in apic_update_lvtt()
1426 static void apic_timer_expired(struct kvm_lapic *apic) in apic_timer_expired()
1456 struct kvm_lapic *apic = vcpu->arch.apic; in lapic_timer_int_injected()
1474 struct kvm_lapic *apic = vcpu->arch.apic; in wait_lapic_expire()
1497 static void start_sw_tscdeadline(struct kvm_lapic *apic) in start_sw_tscdeadline()
1527 static void update_target_expiration(struct kvm_lapic *apic, uint32_t old_divisor) in update_target_expiration()
1551 static bool set_target_expiration(struct kvm_lapic *apic) in set_target_expiration()
1584 static void advance_periodic_target_expiration(struct kvm_lapic *apic) in advance_periodic_target_expiration()
1605 static void start_sw_period(struct kvm_lapic *apic) in start_sw_period()
1634 static void cancel_hv_timer(struct kvm_lapic *apic) in cancel_hv_timer()
1642 static bool start_hv_timer(struct kvm_lapic *apic) in start_hv_timer()
1679 static void start_sw_timer(struct kvm_lapic *apic) in start_sw_timer()
1696 static void restart_apic_timer(struct kvm_lapic *apic) in restart_apic_timer()
1706 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_expired_hv_timer()
1733 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_switch_to_sw_timer()
1745 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_restart_hv_timer()
1751 static void start_apic_timer(struct kvm_lapic *apic) in start_apic_timer()
1762 static void apic_manage_nmi_watchdog(struct kvm_lapic *apic, u32 lvt0_val) in apic_manage_nmi_watchdog()
1777 int kvm_lapic_reg_write(struct kvm_lapic *apic, u32 reg, u32 val) in kvm_lapic_reg_write()
1921 struct kvm_lapic *apic = to_lapic(this); in apic_mmio_write()
1982 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_free_lapic()
2008 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_get_lapic_tscdeadline_msr()
2019 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_set_lapic_tscdeadline_msr()
2032 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_set_tpr()
2050 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_set_base()
2095 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_reset()
2168 static bool lapic_is_periodic(struct kvm_lapic *apic) in lapic_is_periodic()
2175 struct kvm_lapic *apic = vcpu->arch.apic; in apic_has_pending_timer()
2183 int kvm_apic_local_deliver(struct kvm_lapic *apic, int lvt_type) in kvm_apic_local_deliver()
2200 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_nmi_wd_deliver()
2214 struct kvm_lapic *apic = container_of(ktimer, struct kvm_lapic, lapic_timer); in apic_timer_fn()
2228 struct kvm_lapic *apic; in kvm_create_lapic()
2268 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_has_interrupt()
2293 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_inject_apic_timer_irqs()
2310 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_get_apic_interrupt()
2378 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_state()
2440 struct kvm_lapic *apic) in apic_sync_pv_eoi_from_guest()
2493 struct kvm_lapic *apic) in apic_sync_pv_eoi_to_guest()
2516 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_sync_to_vapic()
2554 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_x2apic_msr_write()
2571 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_x2apic_msr_read()
2595 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_hv_vapic_msr_write()
2608 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_hv_vapic_msr_read()
2639 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_accept_events()