Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- arch/x86/kvm/regs.c, line 441
- arch/x86/kvm/smm.c
- arch/x86/kvm/svm/svm.c, line 2623
- arch/x86/kvm/vmx/vmx.c
- arch/x86/kvm/x86.c, line 5551
Smatch caller information:
arch/x86/kvm/x86.c emulator_set_cr() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
arch/x86/kvm/svm/svm.c cr_interception() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.emulate_ctxt->ops->get_cr | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->run->hypercall.ret | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 0 | *vcpu->arch.emulate_ctxt->dst.valptr | 0-255 |
| PARAM_VALUE | 0 | *vcpu->arch.emulate_ctxt->fetch.data | 0-255 |
| PARAM_VALUE | 0 | *vcpu->arch.emulate_ctxt->src.valptr | 0-255 |
| PARAM_VALUE | 0 | *vcpu->arch.emulate_ctxt->src2.valptr | 0-255 |
| BUF_SIZE | 0 | vcpu | (-1),7720 |
| BUF_SIZE | 0 | vcpu | (-1),7720 |
| CAPPED_DATA | 1 | cr4 | 1 |
| CAPPED_DATA | 1 | cr4 | 1 |
| DATA_SOURCE | 0 | vcpu | $0 |
| DATA_SOURCE | 1 | cr4 | r kvm_register_read |
| USER_DATA | 0 | *vcpu->arch.emulate_ctxt->fetch.end | 0-255 |
| USER_DATA | 1 | cr4 | 0-u64max |
| USER_PTR | 0 | vcpu->arch.emulate_ctxt->fetch.end |
arch/x86/kvm/smm.c emulator_leave_smm() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.cr0_guest_owned_bits | 65536-u64max |
| PARAM_VALUE | 0 | vcpu->arch.cr4_guest_owned_bits | 2-u64max |
| PARAM_VALUE | 0 | vcpu->arch.guest_mmu->pae_root | 0 |
| PARAM_VALUE | 0 | vcpu->arch.gva_walk.fmt->permissions | 0-u16max |
| PARAM_VALUE | 0 | vcpu->arch.mmio_gva | 0 |
| PARAM_VALUE | 0 | vcpu->arch.mmu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.pdptrs_from_userspace | 0 |
| PARAM_VALUE | 0 | vcpu->arch.root_mmu.fmt->permissions | 0-u16max |
| PARAM_VALUE | 0 | vcpu->arch.root_mmu.page_fault | 4654005377237938176,6604280681433620480,6624689191963803648,6795630133462265856 |
| PARAM_VALUE | 0 | vcpu->arch.root_mmu.sync_spte | 0,799230455575592960,7721480187534942208 |
| PARAM_VALUE | 0 | vcpu->kvm->mmu_lock.owner | (-1) |
| PARAM_VALUE | 0 | vcpu->kvm->mmu_lock.raw_lock.wlocked | 0 |
| CAPPED_DATA | 0 | vcpu->arch.mmu | 1 |
| CAPPED_DATA | 1 | cr4 | 1 |
| BIT_INFO | 1 | cr4 | 0x0,0xfffffffffffdffff |
| NOCHECK_CALL |
arch/x86/kvm/smm.c emulator_leave_smm() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.cr0_guest_owned_bits | 65536-u64max |
| PARAM_VALUE | 0 | vcpu->arch.cr4_guest_owned_bits | 2-u64max |
| PARAM_VALUE | 0 | vcpu->arch.mmu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.pdptrs_from_userspace | 0 |
| CAPPED_DATA | 0 | vcpu->arch.mmu | 1 |
| CAPPED_DATA | 1 | cr4 | 1 |
| BIT_INFO | 1 | cr4 | 0x0,0xffffffffffffffdf |
| NOCHECK_CALL | |||
| USER_DATA | 0 | *vcpu->arch.pdptrs | 0-u64max |
| USER_PTR | 0 | vcpu->arch.pdptrs |
arch/x86/kvm/smm.c rsm_enter_protected_mode() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.apic->lapic_timer.timer_mode_mask | 131072,393216 |
| PARAM_VALUE | 0 | vcpu->arch.apic->vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode | 0,131072-393216 |
| PARAM_VALUE | 0 | vcpu->arch.dr6 | 4294838256-4295030783 |
| PARAM_VALUE | 0 | vcpu->arch.dr7 | 1024-4294914047 |
| PARAM_VALUE | 0 | vcpu->arch.mmio_gva | 0 |
| PARAM_VALUE | 0 | vcpu->arch.pdptrs_from_userspace | 0 |
| PARAM_VALUE | 0 | vcpu->arch.regs_avail | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.root_mmu->pae_root | 0 |
| PARAM_VALUE | 0 | vcpu->arch.root_mmu.root.hpa | u64max |
| PARAM_VALUE | 0 | vcpu->arch.root_mmu.root.pgd | 0 |
| PARAM_VALUE | 0 | vcpu->arch.smbase | 0-u32max |
| PARAM_VALUE | 0 | vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_advance_ns | 0-5000 |
| PARAM_VALUE | 0 | vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode | 0,131072-393216 |
| PARAM_VALUE | 0 | vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode_mask | 131072,393216 |
| PARAM_VALUE | 0 | vcpu->last_used_slot | 0,4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->last_used_slot_gen | 0-2,9223372034707292161-9223372036854775809,18446744071562067968-u64max |
| PARAM_VALUE | 0 | vcpu->run->hyperv.type | 1-3 |
| DATA_SOURCE | 0 | vcpu | $0 |
| BIT_INFO | 1 | cr4 | 0x0,0xfffffffffffdffff |
| USER_DATA | 0 | *vcpu->arch.pdptrs | 0-u64max |
| USER_PTR | 0 | vcpu->arch.pdptrs |
arch/x86/kvm/smm.c rsm_enter_protected_mode() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.apic->lapic_timer.timer_mode_mask | 131072,393216 |
| PARAM_VALUE | 0 | vcpu->arch.apic->vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode | 0,131072-393216 |
| PARAM_VALUE | 0 | vcpu->arch.dr6 | 4294838256-4295030783 |
| PARAM_VALUE | 0 | vcpu->arch.dr7 | 1024-4294914047 |
| PARAM_VALUE | 0 | vcpu->arch.guest_mmu.root.hpa | u64max |
| PARAM_VALUE | 0 | vcpu->arch.guest_mmu.root.pgd | 0 |
| PARAM_VALUE | 0 | vcpu->arch.gva_walk.get_guest_pgd | 7025673116383887360 |
| PARAM_VALUE | 0 | vcpu->arch.gva_walk.get_pdptr | 1352091245017460736 |
| PARAM_VALUE | 0 | vcpu->arch.gva_walk.gva_to_gpa | 3025047059327504384,4917861297175281664,8823471726512275456 |
| PARAM_VALUE | 0 | vcpu->arch.gva_walk.inject_page_fault | 1875070358975434752 |
| PARAM_VALUE | 0 | vcpu->arch.pdptrs_from_userspace | 0 |
| PARAM_VALUE | 0 | vcpu->arch.regs_avail | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.root_mmu.fmt.bad_mt_xwr | 0,18398423101764228180 |
| PARAM_VALUE | 0 | vcpu->arch.smbase | 0-u32max |
| PARAM_VALUE | 0 | vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_advance_ns | 0-5000 |
| PARAM_VALUE | 0 | vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode | 0,131072-393216 |
| PARAM_VALUE | 0 | vcpu->kvm->arch.apic_map->xapic_flat_map->lapic_timer.timer_mode_mask | 131072,393216 |
| PARAM_VALUE | 0 | vcpu->last_used_slot | 0,4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->last_used_slot_gen | 0-2,9223372034707292161-9223372036854775809,18446744071562067968-u64max |
| PARAM_VALUE | 0 | vcpu->run->hyperv.type | 1-3 |
| DATA_SOURCE | 0 | vcpu | $0 |
| DATA_SOURCE | 1 | cr4 | $3 |
| BIT_INFO | 1 | cr4 | 0x20000,0xffffffffffffffff |
| BIT_INFO | 1 | cr4 | 0x20000,0xffffffffffffffff |
| USER_DATA | 0 | *vcpu->arch.pdptrs | 0-u64max |
| USER_PTR | 0 | vcpu->arch.pdptrs |
arch/x86/kvm/vmx/vmx.c handle_set_cr4() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.nested_run_pending | 0 |
| PARAM_VALUE | 0 | vcpu->arch.regs_avail | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->kvm | 4096-ptr_max |
| CAPPED_DATA | 1 | cr4 | 1 |
| CAPPED_DATA | 1 | cr4 | 1 |
| DATA_SOURCE | 0 | vcpu | $0 |
| USER_DATA | 1 | cr4 | 0-u64max[c] |
arch/x86/kvm/vmx/vmx.c handle_set_cr4() -> kvm_set_cr4()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.nested_run_pending | 0 |
| PARAM_VALUE | 0 | vcpu->arch.regs_avail | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->kvm | 4096-ptr_max |
| CAPPED_DATA | 1 | cr4 | 1 |
| CAPPED_DATA | 1 | cr4 | 1 |
| DATA_SOURCE | 0 | vcpu | $0 |
| DATA_SOURCE | 1 | cr4 | $1 |
| USER_DATA | 1 | cr4 | 0-u64max[c] |