commit | fa3d315a4ce2c0891cdde262562e710d95fba19e | [log] [tgz] |
---|---|---|
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | Sat May 07 16:35:38 2011 +0900 |
committer | Avi Kivity <avi@redhat.com> | Sun May 22 08:47:56 2011 -0400 |
tree | 79205998f6734b51628f92641124dbe4aaa9882f | |
parent | 12cb814f3bb35736420cc6bfc9fed7b6a9d3a828 [diff] |
KVM: Validate userspace_addr of memslot when registered This way, we can avoid checking the user space address many times when we read the guest memory. Although we can do the same for write if we check which slots are writable, we do not care write now: reading the guest memory happens more often than writing. [avi: change VERIFY_READ to VERIFY_WRITE] Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Avi Kivity <avi@redhat.com>