Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- arch/x86/kvm/regs.c
- arch/x86/kvm/smm.c
- arch/x86/kvm/svm/svm.c, line 2614
- arch/x86/kvm/vmx/vmx.c
- arch/x86/kvm/x86.c, line 5542
Smatch caller information:
arch/x86/kvm/regs.c kvm_lmsw() -> kvm_set_cr0()
| 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.nested_run_pending | 0 |
| PARAM_VALUE | 0 | vcpu->arch.regs_avail | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->kvm | 4096-ptr_max |
| DATA_SOURCE | 0 | vcpu | $0 |
arch/x86/kvm/x86.c emulator_set_cr() -> kvm_set_cr0()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vcpu | 4096-ptr_max |
arch/x86/kvm/svm/svm.c cr_interception() -> kvm_set_cr0()
| 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 | cr0 | 1 |
| CAPPED_DATA | 1 | cr0 | 1 |
| DATA_SOURCE | 0 | vcpu | $0 |
| DATA_SOURCE | 1 | cr0 | r kvm_register_read |
| USER_DATA | 0 | *vcpu->arch.emulate_ctxt->fetch.end | 0-255 |
| USER_DATA | 1 | cr0 | 0-u64max |
| USER_PTR | 0 | vcpu->arch.emulate_ctxt->fetch.end |
arch/x86/kvm/smm.c emulator_leave_smm() -> kvm_set_cr0()
| 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.mmu | 4096-ptr_max |
| PARAM_VALUE | 0 | vcpu->arch.pdptrs_from_userspace | 0 |
| PARAM_VALUE | 1 | cr0 | 0,2-u64max |
| CAPPED_DATA | 0 | vcpu->arch.mmu | 1 |
| CAPPED_DATA | 1 | cr0 | 1 |
| BIT_INFO | 1 | cr0 | 0x0,0xffffffff7ffffffe |
| 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_cr0()
| 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.pdptrs_from_userspace | 0 |
| PARAM_VALUE | 0 | vcpu->arch.regs_avail | 4096-ptr_max |
| 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 | cr0 | $1 |
| USER_DATA | 0 | *vcpu->arch.pdptrs | 0-u64max |
| USER_PTR | 0 | vcpu->arch.pdptrs |
arch/x86/kvm/vmx/vmx.c handle_set_cr0() -> kvm_set_cr0()
| 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 | cr0 | 1 |
| CAPPED_DATA | 1 | cr0 | 1 |
| DATA_SOURCE | 0 | vcpu | $0 |
| USER_DATA | 1 | cr0 | 0-u64max[c] |
arch/x86/kvm/vmx/vmx.c handle_set_cr0() -> kvm_set_cr0()
| 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 | cr0 | 1 |
| CAPPED_DATA | 1 | cr0 | 1 |
| DATA_SOURCE | 0 | vcpu | $0 |
| DATA_SOURCE | 1 | cr0 | $1 |
| USER_DATA | 1 | cr0 | 0-u64max[c] |