diff options
author | Michal Luczaj <[email protected]> | 2022-10-13 21:12:24 +0000 |
---|---|---|
committer | David Woodhouse <[email protected]> | 2022-11-30 19:25:23 +0000 |
commit | 8c82a0b3ba1a411b84af5d43a4cc5994efa897ec (patch) | |
tree | b7305a994d35882a01e9514207160bcd7cd0f408 /lib/mpi/mpi-mod.c | |
parent | 214b0a88c46d5f32d80abe0d1bc2eea1cbd38f11 (diff) |
KVM: Store immutable gfn_to_pfn_cache properties
Move the assignment of immutable properties @kvm, @vcpu, and @usage to
the initializer. Make _activate() and _deactivate() use stored values.
Note, @len is also effectively immutable for most cases, but not in the
case of the Xen runstate cache, which may be split across two pages and
the length of the first segment will depend on its address.
Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Michal Luczaj <[email protected]>
[sean: handle @len in a separate patch]
Signed-off-by: Sean Christopherson <[email protected]>
[dwmw2: acknowledge that @len can actually change for some use cases]
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions