vhost: fix incorrect userspace address
authorAvi Kivity <avi@redhat.com>
Mon, 9 Jan 2012 11:09:40 +0000 (13:09 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jan 2012 11:09:40 +0000 (13:09 +0200)
commitd743c382861eaa1e13f503b05aba5a382a7e7f7c
tree5c0665f1a2b2cd8bdf585c40773cc636f5a65bc7
parente7f929028cc11a439ee7bbdf40724d87016361fa
vhost: fix incorrect userspace address

MemoryListener::region_add() gives us a slice of a MemoryRegion, not a
region.  Adjust the userspace address to reflect that.

Signed-off-by: Avi Kivity <avi@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/vhost.c