aboutsummaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorGravatar Paolo Bonzini <pbonzini@redhat.com> 2021-08-04 12:48:41 -0400
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2021-08-05 03:31:40 -0400
commit319afe68567b923e25140e744e7f05e3e5d889c1 (patch)
tree532621d701e4777a892a98fdc7a31d9f39b5ce7e /virt/kvm
parentKVM: x86/pmu: Introduce pmc->is_paused to reduce the call time of perf interf... (diff)
downloadlinux-319afe68567b923e25140e744e7f05e3e5d889c1.tar.gz
linux-319afe68567b923e25140e744e7f05e3e5d889c1.tar.bz2
linux-319afe68567b923e25140e744e7f05e3e5d889c1.zip
KVM: xen: do not use struct gfn_to_hva_cache
gfn_to_hva_cache is not thread-safe, so it is usually used only within a vCPU (whose code is protected by vcpu->mutex). The Xen interface implementation has such a cache in kvm->arch, but it is not really used except to store the location of the shared info page. Replace shinfo_set and shinfo_cache with just the value that is passed via KVM_XEN_ATTR_TYPE_SHARED_INFO; the only complication is that the initialization value is not zero anymore and therefore kvm_xen_init_vm needs to be introduced. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions