]> Git Repo - linux.git/commit
svm: Add mutex_lock to protect apic_access_page_done on AMD systems
authorWei Wang <[email protected]>
Mon, 12 Nov 2018 12:23:14 +0000 (12:23 +0000)
committerPaolo Bonzini <[email protected]>
Tue, 27 Nov 2018 11:49:39 +0000 (12:49 +0100)
commit30510387a5e45bfcf8190e03ec7aa15b295828e2
tree900b78639c8490d76590380358959afdb5d26c4c
parente97f852fd4561e77721bb9a4e0ea9d98305b1e93
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 <[email protected]>
Signed-off-by: Amadeusz Juskowiak <[email protected]>
Signed-off-by: Julian Stecklina <[email protected]>
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Reviewed-by: Joerg Roedel <[email protected]>
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/svm.c
This page took 0.04469 seconds and 4 git commands to generate.