Defined in 1 files as a function:
Referenced in 4 files:
- arch/x86/kvm/lapic.c
- arch/x86/kvm/msrs.c, line 913
- arch/x86/kvm/svm/avic.c
- arch/x86/kvm/x86.c, line 7886
Smatch caller information:
arch/x86/kvm/lapic.c apic_mmio_read() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| CAPPED_DATA | 0 | apic->base_address | 1 |
| DATA_SOURCE | 0 | apic | r to_lapic |
| BIT_INFO | 0 | apic | 0x65b25d897afdff8,0xffffffffffffffff |
| BIT_INFO | 0 | apic | 0x65b25d897afdff8,0xffffffffffffffff |
arch/x86/kvm/lapic.c apic_mmio_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| CAPPED_DATA | 0 | apic->base_address | 1 |
| DATA_SOURCE | 0 | apic | r to_lapic |
| BIT_INFO | 0 | apic | 0x65b25d897afdff8,0xffffffffffffffff |
| BIT_INFO | 0 | apic | 0x65b25d897afdff8,0xffffffffffffffff |
arch/x86/kvm/lapic.c kvm_apic_broadcast() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | apic->sipi_vector | 1-255[c] |
| HALF_LOCKED2 | &ioapic->lock | ||
| HALF_LOCKED2 | &vcpu->kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| HALF_LOCKED2 | rcu_read |
arch/x86/kvm/lapic.c kvm_apic_is_broadcast_dest() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 1-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &ioapic->lock | ||
| HALF_LOCKED2 | &kvm->irq_srcu | ||
| HALF_LOCKED2 | &kvm->irqfds.lock | ||
| HALF_LOCKED2 | &kvm->irqfds.resampler_lock | ||
| HALF_LOCKED2 | &kvm->srcu | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | irq |
arch/x86/kvm/lapic.c kvm_apic_match_logical_addr() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | apic->sipi_vector | 1-255[c] |
| HALF_LOCKED2 | &ioapic->lock | ||
| HALF_LOCKED2 | &vcpu->kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| HALF_LOCKED2 | rcu_read |
arch/x86/kvm/lapic.c kvm_apic_match_physical_addr() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | apic->sipi_vector | 1-255[c] |
| HALF_LOCKED2 | &ioapic->lock | ||
| HALF_LOCKED2 | &kvm->irqfds.lock | ||
| HALF_LOCKED2 | &vcpu->kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | irq | ||
| HALF_LOCKED2 | rcu_read |
arch/x86/kvm/lapic.c kvm_apic_mda() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | apic->sipi_vector | 1-255[c] |
| HALF_LOCKED2 | &ioapic->lock | ||
| HALF_LOCKED2 | &kvm->irqfds.lock | ||
| HALF_LOCKED2 | &vcpu->kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | irq | ||
| HALF_LOCKED2 | rcu_read |
arch/x86/kvm/lapic.c kvm_apic_state_fixup() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| LOCK2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |
arch/x86/kvm/lapic.c kvm_apic_write_nodecode() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|
arch/x86/kvm/lapic.c kvm_icr_to_lapic_irq() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_readable_reg_mask() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_read() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reg_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $0 |
arch/x86/kvm/lapic.c kvm_lapic_reset() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| CAPPED_DATA | 0 | apic->lapic_timer.timer.base | 1 |
| CAPPED_DATA | 0 | apic->nr_lvt_entries | 1 |
| CAPPED_DATA | 0 | &apic->lapic_timer.timer | 1 |
| PARAM_COMPARE | 0 | &apic->lapic_timer.timer | != $0->lapic_timer.timer.base->running |
| USER_DATA | 0 | apic->lapic_timer.expired_tscdeadline | 0-u64max |
| USER_DATA | 0 | apic->lapic_timer.tscdeadline | 0 |
| USER_DATA | 0 | apic->sipi_vector | 1-255[c] |
| HALF_LOCKED2 | &vcpu->kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex |
arch/x86/kvm/lapic.c kvm_lapic_reset() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| CAPPED_DATA | 0 | apic->lapic_timer.timer.base | 1 |
| CAPPED_DATA | 0 | apic->nr_lvt_entries | 1 |
| CAPPED_DATA | 0 | &apic->lapic_timer.timer | 1 |
| PARAM_COMPARE | 0 | &apic->lapic_timer.timer | != $0->lapic_timer.timer.base->running |
| USER_DATA | 0 | apic->lapic_timer.expired_tscdeadline | 0-u64max |
| USER_DATA | 0 | apic->lapic_timer.tscdeadline | 0 |
| USER_DATA | 0 | apic->sipi_vector | 1-255[c] |
| HALF_LOCKED2 | &vcpu->kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex |
arch/x86/kvm/lapic.c kvm_recalculate_logical_map() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| LOCK2 | &kvm->arch.apic_map_lock | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm_arch)->apic_map_lock |
arch/x86/kvm/lapic.c kvm_recalculate_logical_map() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| LOCK2 | &kvm->arch.apic_map_lock | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm_arch)->apic_map_lock |
arch/x86/kvm/lapic.c kvm_recalculate_phys_map() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| LOCK2 | &kvm->arch.apic_map_lock | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm_arch)->apic_map_lock |
arch/x86/kvm/lapic.c kvm_recalculate_phys_map() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| LOCK2 | &kvm->arch.apic_map_lock | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm_arch)->apic_map_lock |
arch/x86/kvm/lapic.c kvm_recalculate_phys_map() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| LOCK2 | &kvm->arch.apic_map_lock | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm_arch)->apic_map_lock |
arch/x86/kvm/lapic.c kvm_recalculate_phys_map() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| LOCK2 | &kvm->arch.apic_map_lock | ||
| HALF_LOCKED2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm_arch)->apic_map_lock |
arch/x86/kvm/lapic.c kvm_x2apic_msr_read() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|
arch/x86/kvm/lapic.c kvm_x2apic_msr_write() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|
arch/x86/kvm/x86.c kvm_vcpu_update_apicv() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| USER_DATA | 0 | apic->lapic_timer.expired_tscdeadline | 0-u64max |
| USER_DATA | 0 | apic->lapic_timer.tscdeadline | 0-u64max |
| USER_DATA | 0 | apic->sipi_vector | 1-255[c] |
| LOCK2 | &vcpu->kvm->srcu | ||
| LOCK2 | &vcpu->mutex | ||
| TYPE_LOCK | (struct kvm)->srcu | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |
arch/x86/kvm/msrs.c __handle_fastpath_wrmsr() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 0,4096-ptr_max |
arch/x86/kvm/svm/avic.c __avic_get_max_physical_id() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|
arch/x86/kvm/svm/avic.c avic_activate_vmcb() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|
arch/x86/kvm/svm/avic.c avic_handle_ldr_update() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
arch/x86/kvm/svm/avic.c avic_invalidate_logical_id_entry() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
arch/x86/kvm/svm/avic.c avic_kick_target_vcpus() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | apic | $1 |
arch/x86/kvm/svm/avic.c avic_kick_target_vcpus_fast() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $1 |
arch/x86/kvm/svm/avic.c avic_kick_target_vcpus_fast() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $1 |
arch/x86/kvm/svm/avic.c avic_kick_target_vcpus_fast() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $1 |
arch/x86/kvm/svm/avic.c avic_kick_target_vcpus_fast() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $1 |
arch/x86/kvm/svm/avic.c avic_kick_target_vcpus_fast() -> apic_x2apic_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | apic | 4096-ptr_max |
| PARAM_VALUE | 0 | apic->vcpu | 4096-ptr_max |
| DATA_SOURCE | 0 | apic | $1 |