diff options
author | 2018-11-12 12:23:14 +0000 | |
---|---|---|
committer | 2018-11-27 12:49:39 +0100 | |
commit | 30510387a5e45bfcf8190e03ec7aa15b295828e2 (patch) | |
tree | 900b78639c8490d76590380358959afdb5d26c4c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: X86: Fix scan ioapic use-before-initialization (diff) | |
download | linux-dev-30510387a5e45bfcf8190e03ec7aa15b295828e2.tar.xz linux-dev-30510387a5e45bfcf8190e03ec7aa15b295828e2.zip |
svm: Add mutex_lock to protect apic_access_page_done on AMD systems
There is a race condition when accessing kvm->arch.apic_access_page_done.
Due to it, x86_set_memory_region will fail when creating the second vcpu
for a svm guest.
Add a mutex_lock to serialize the accesses to apic_access_page_done.
This lock is also used by vmx for the same purpose.
Signed-off-by: Wei Wang <wawei@amazon.de>
Signed-off-by: Amadeusz Juskowiak <ajusk@amazon.de>
Signed-off-by: Julian Stecklina <jsteckli@amazon.de>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions