Home
last modified time | relevance | path

Searched hist:"17 b9f93e15e2a77cc868288072ac4d39c33fff3b" (Results 1 – 1 of 1) sorted by relevance

/kvm-unit-tests/lib/
H A Dvmalloc.c17b9f93e15e2a77cc868288072ac4d39c33fff3b Mon Jun 22 16:21:41 UTC 2020 Claudio Imbrenda <imbrenda@linux.ibm.com> lib/vmalloc: add locking and a check for initialization

Make sure init_alloc_vpage is never called when vmalloc is in use.

Get both init_alloc_vpage and setup_vm to use the lock.

For setup_vm we only check at the end because at least on some
architectures setup_mmu can call init_alloc_vpage, which would cause
a deadlock.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20200622162141.279716-9-imbrenda@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>