Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
arch/x86/kvm/../../../virt/kvm/kvm_main.c kvm_gfn_to_hva_cache_init() -> __kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| BUF_SIZE | 1 | ghc | (-1),40 |
| BUF_SIZE | 1 | ghc | (-1),40 |
| DATA_SOURCE | 0 | slots | r kvm_memslots |
| DATA_SOURCE | 1 | ghc | $1 |
| DATA_SOURCE | 2 | gpa | $2 |
| DATA_SOURCE | 3 | len | $3 |
| USER_DATA | 2 | gpa | 0-u64max |
| UNITS | 2 | gpa | unit_byte |
| UNITS | 3 | len | unit_byte |
| HALF_LOCKED2 | &kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex |
arch/x86/kvm/../../../virt/kvm/kvm_main.c kvm_read_guest_offset_cached() -> __kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slots | 4096-ptr_max |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 1 | ghc->len | 1-u64max |
| PARAM_VALUE | 3 | len | 1-u64max |
| BUF_SIZE | 1 | ghc | (-1),40 |
| BUF_SIZE | 1 | ghc | (-1),40 |
| CAPPED_DATA | 1 | ghc->len | 1 |
| CAPPED_DATA | 3 | len | 1 |
| CAPPED_DATA | 3 | len | 1 |
| DATA_SOURCE | 0 | slots | r kvm_memslots |
| DATA_SOURCE | 1 | ghc | $1 |
| PARAM_COMPARE | 1 | ghc->generation | != $0->generation |
| PREEMPT_ADD | |||
| USER_DATA | 1 | ghc->hva | 1-18446612682070036478[c][u] |
| UNITS | 2 | gpa | unit_byte |
| UNITS | 3 | len | unit_byte |
arch/x86/kvm/../../../virt/kvm/kvm_main.c kvm_write_guest_offset_cached() -> __kvm_gfn_to_hva_cache_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slots | 4096-ptr_max |
| PARAM_VALUE | 1 | ghc | 4096-ptr_max |
| PARAM_VALUE | 1 | ghc->len | 1-u64max |
| PARAM_VALUE | 3 | len | 1-u64max |
| BUF_SIZE | 1 | ghc | (-1),40 |
| BUF_SIZE | 1 | ghc | (-1),40 |
| CAPPED_DATA | 1 | ghc->len | 1 |
| CAPPED_DATA | 3 | len | 1 |
| CAPPED_DATA | 3 | len | 1 |
| DATA_SOURCE | 0 | slots | r kvm_memslots |
| DATA_SOURCE | 1 | ghc | $1 |
| PARAM_COMPARE | 1 | ghc->generation | != $0->generation |
| PREEMPT_ADD | |||
| USER_DATA | 1 | ghc->hva | 1-18446612682070036478[c][u] |
| UNITS | 2 | gpa | unit_byte |
| UNITS | 3 | len | unit_byte |
| HALF_LOCKED2 | &kvm->srcu | ||
| HALF_LOCKED2 | &vcpu->mutex |