neel 9d0b530c89 Fix a bug in libvmmapi 'vm_copy_setup()' where it would return success even if
the 'gpa' was in the guest MMIO region. This would manifest as a segmentation
fault in 'vm_map_copyin()' or 'vm_map_copyout()' because 'vm_map_gpa()' would
return NULL for this 'gpa'.

Fix this by calling 'vm_map_gpa()' in 'vm_copy_setup' and returning a failure
if the 'gpa' cannot be mapped. This matches the behavior of 'vm_copy_setup()'
in vmm.ko.

MFC after:	1 week
2015-01-19 06:51:04 +00:00
..
2014-11-25 11:07:26 +00:00
2014-12-23 10:43:35 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-27 08:22:58 +00:00
2014-01-21 21:13:13 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-29 21:52:32 +00:00
2014-11-25 11:07:26 +00:00
2014-12-25 21:56:56 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2015-01-06 22:29:12 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-29 21:59:44 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:08:58 +00:00
2014-07-07 00:27:09 +00:00
2014-11-29 00:45:09 +00:00
2014-11-25 11:07:26 +00:00
2014-12-27 08:31:52 +00:00
2015-01-19 02:22:03 +00:00
2014-12-29 13:50:59 +00:00
2014-12-27 21:11:42 +00:00