Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6d17c0d1 authored by Sanjay Lal's avatar Sanjay Lal Committed by Gleb Natapov
Browse files

KVM/MIPS32: Wrap calls to gfn_to_pfn() with srcu_read_lock/unlock()



- As suggested by Gleb, wrap calls to gfn_to_pfn() with srcu_read_lock/unlock().
  Memory slots should be acccessed from a SRCU read section.
- kvm_mips_map_page() now returns an error code to it's callers, instead of
  calling panic() if it cannot find a mapping for a particular gfn.

Signed-off-by: default avatarSanjay Lal <sanjayl@kymasys.com>
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
parent ba86e4dd
Loading
Loading
Loading
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