[vulkan] Initial implementation of mapped memory

bug: 111137294
bug: 119255176

vkMapMemory: returns offset into already allocated buffer.
performs a check to see if the mapping would fit.

vkUnmapMemory: does nothing (vkFreeMemory should free the buffer)

TODO: Have way to communicate that device local memory
need not be allocated in guest RAM and is fine to
remain on host.

TODO: This becomes more interesting after goldfish_address_space, where
we would want to retrieve the host side pointer instead of using
aligned_buf_alloc.

Change-Id: I861fdaef54b837cd46bf8b61adac78dd7d2c0277
2 files changed