Skip to content
Snippets Groups Projects
Commit 8919c66a authored by Avi Kivity's avatar Avi Kivity
Browse files

mmu: fix map_file() deadlock

map_file() takes the vm lock, then calls read() to pre-fault the data.
However read() may cause allocations, which then require the vm lock as well.

Fix by faulting in the data after dropping the lock.
parent 1ea5672f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment