]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: Fix initialisation of gfn caches for Xen shared pages xenpv-post-5
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 21 Jan 2021 11:28:42 +0000 (11:28 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 21 Jan 2021 11:31:49 +0000 (11:31 +0000)
commit3eadbaba08f380d0b870928f19a40e9a1f6e826c
tree24cdc492daf25e485486827f6bb4a6dcfd054941
parent2bf712670abfdd509eecc1192a2b3502f741d3f8
KVM: x86/xen: Fix initialisation of gfn caches for Xen shared pages

When kvm_gfn_to_hva_cache_init() is used to cache the address of the
guest pages which KVM needs to access, it uses kvm_memslots(). For
which an RCU read lock is required. Add that around the whole of
the kvm_xen_hvm_set_attr() function.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kvm/xen.c