Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- arch/loongarch/kvm/vcpu.c
- arch/x86/kvm/lapic.c
- arch/x86/kvm/msrs.c, line 1404
- arch/x86/kvm/vmx/nested.c
- arch/x86/kvm/x86.c, line 2076
- virt/kvm/kvm_main.c, line 3420
Smatch caller information:
arch/x86/kvm/vmx/nested.c handle_vmptrld() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 3 | len | 4096 |
| BUF_SIZE | 1 | ghc | 40 |
| USER_DATA | 2 | gpa | 0-u64max |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 2 | gpa | unit_byte |
arch/x86/kvm/vmx/nested.c nested_cache_shadow_vmcs12() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_advance_ns | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode_mask | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->srcu.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 2 | gpa | 0-18446744073709551614 |
| PARAM_VALUE | 3 | len | 4096 |
| BUF_SIZE | 1 | ghc | 40 |
| PARAM_COMPARE | 1 | ghc->gpa | != $2 |
| PARAM_COMPARE | 2 | gpa | != $1->gpa |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 2 | gpa | unit_byte |
arch/x86/kvm/vmx/nested.c nested_flush_cached_shadow_vmcs12() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_advance_ns | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode_mask | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->arch.apicv_update_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | kvm->arch.apicv_update_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 2 | gpa | 0-18446744073709551614 |
| PARAM_VALUE | 3 | len | 4096 |
| BUF_SIZE | 1 | ghc | 40 |
| PARAM_COMPARE | 1 | ghc->gpa | != $2 |
| PARAM_COMPARE | 2 | gpa | != $1->gpa |
| NO_OVERFLOW_SIMPLE | 0 | kvm->arch.split_page_header_cache.kmem_cache->sheaf_capacity | |
| NO_OVERFLOW_SIMPLE | 0 | kvm->arch.split_shadow_page_cache.kmem_cache->sheaf_capacity | |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 2 | gpa | unit_byte |
| HALF_LOCKED2 | &vcpu->mutex | ||
| HALF_LOCKED2 | 0 | &kvm->srcu |
arch/x86/kvm/vmx/nested.c nested_vmx_check_vmcs_link_ptr() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_advance_ns | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode | 0-4294967295 |
| PARAM_VALUE | 0 | kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode_mask | 0-4294967295 |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 2 | gpa | 0-18446744073709551614 |
| PARAM_VALUE | 3 | len | 4096 |
| BUF_SIZE | 1 | ghc | 40 |
| PARAM_COMPARE | 1 | ghc->gpa | != $2 |
| PARAM_COMPARE | 2 | gpa | != $1->gpa |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 2 | gpa | unit_byte |
arch/x86/kvm/lapic.c kvm_lapic_set_pv_eoi() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kvm->arch.xen.hvm_config.msr | 1-u32max |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 2 | gpa | 0,2-u64max |
| BUF_SIZE | 1 | ghc | 40 |
| CAPPED_DATA | 0 | kvm->arch.xen.hvm_config.msr | 1 |
| CAPPED_DATA | 2 | gpa | 1 |
| CAPPED_DATA | 2 | gpa | 1 |
| BIT_INFO | 2 | gpa | 0x0,0xfffffffffffffffc |
| BIT_INFO | 2 | gpa | 0x0,0xfffffffffffffffc |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 2 | gpa | unit_byte |
| UNITS | 3 | len | unit_byte |
arch/x86/kvm/lapic.c kvm_lapic_set_vapic_addr() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kvm | 4096-ptr_max |
| PARAM_VALUE | 0 | kvm->arch.kvmclock_update_rs.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kvm->arch.noncoherent_dma_count.counter | 0-1 |
| PARAM_VALUE | 0 | kvm->srcu.srcu_ctrp | 4096-ptr_max |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 2 | gpa | 1-u64max |
| PARAM_VALUE | 3 | len | 4 |
| CAPPED_DATA | 0 | kvm->srcu.srcu_ctrp | 1 |
| DATA_SOURCE | 2 | gpa | $1 |
| USER_DATA | 2 | gpa | 1-u64max |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 3 | len | unit_byte |
| LOCK2 | &vcpu->mutex | ||
| LOCK2 | 0 | &kvm->srcu | |
| TYPE_LOCK | (struct kvm)->srcu | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |
arch/x86/kvm/x86.c record_steal_time() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kvm | 4096-ptr_max |
| PARAM_VALUE | 0 | kvm->arch.apicv_update_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | kvm->arch.apicv_update_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | kvm->arch.irqchip_mode | 0,2-u32max |
| PARAM_VALUE | 0 | kvm->arch.kvmclock_update_rs.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kvm->arch.kvmclock_update_rs.lock.owner | (-1) |
| PARAM_VALUE | 0 | kvm->arch.kvmclock_update_rs.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | kvm->srcu.srcu_ctrp | 4096-ptr_max |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 2 | gpa | 0,64-u64max |
| PARAM_VALUE | 3 | len | 64 |
| BUF_SIZE | 1 | ghc | 40 |
| CAPPED_DATA | 0 | kvm->mm | 1 |
| CAPPED_DATA | 0 | kvm->srcu.srcu_ctrp | 1 |
| CAPPED_DATA | 2 | gpa | 1 |
| CAPPED_DATA | 2 | gpa | 1 |
| BIT_INFO | 2 | gpa | 0x0,0xffffffffffffffc0 |
| BIT_INFO | 2 | gpa | 0x0,0xffffffffffffffc0 |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 2 | gpa | unit_byte |
| UNITS | 3 | len | unit_byte |
| LOCK2 | &vcpu->mutex | ||
| LOCK2 | 0 | &kvm->srcu | |
| TYPE_LOCK | (struct kvm)->srcu | ||
| TYPE_LOCK | (struct kvm_vcpu)->mutex |
arch/x86/kvm/msrs.c kvm_pv_enable_async_pf() -> kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kvm->arch.xen.hvm_config.msr | 1-u32max |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 2 | gpa | 0,64-u64max |
| PARAM_VALUE | 3 | len | 8 |
| CAPPED_DATA | 0 | kvm->arch.xen.hvm_config.msr | 1 |
| BIT_INFO | 2 | gpa | 0x0,0xffffffffffffffc0 |
| BIT_INFO | 2 | gpa | 0x0,0xffffffffffffffc0 |
| UNITS | 0 | kvm | unit_byte |
| UNITS | 3 | len | unit_byte |