commit | 6d17c0d1e8a66f5508082cb0fecb8afb7e9a21e4 | [log] [tgz] |
---|---|---|
author | Sanjay Lal <sanjayl@kymasys.com> | Sat May 18 06:54:24 2013 -0700 |
committer | Gleb Natapov <gleb@redhat.com> | Wed May 22 11:44:09 2013 +0300 |
tree | eca5c93989a96bd5afff0e48178286861f8ce475 | |
parent | ba86e4dda700b3e696119c7f4fad945b90cf5c84 [diff] |
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: Sanjay Lal <sanjayl@kymasys.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>