summaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
authorPeter Maydell2016-06-13 13:18:17 +0200
committerPeter Maydell2016-06-13 13:18:17 +0200
commit8fdf038722a00693e68b4f76a66d39781572c3ec (patch)
treeff10c2adca12a51dda06fa5ace47f8eaa816f250 /exec.c
parentMerge remote-tracking branch 'remotes/rth/tags/pull-tcg-20160611' into staging (diff)
parentIntroduce "xen-load-devices-state" (diff)
downloadqemu-8fdf038722a00693e68b4f76a66d39781572c3ec.tar.gz
qemu-8fdf038722a00693e68b4f76a66d39781572c3ec.tar.xz
qemu-8fdf038722a00693e68b4f76a66d39781572c3ec.zip
Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20160613-tag' into staging
Xen 2016/06/13 # gpg: Signature made Mon 13 Jun 2016 11:53:18 BST # gpg: using RSA key 0x894F8F4870E1AE90 # gpg: Good signature from "Stefano Stabellini <stefano.stabellini@eu.citrix.com>" # Primary key fingerprint: D04E 33AB A51F 67BA 07D3 0AEA 894F 8F48 70E1 AE90 * remotes/sstabellini/tags/xen-20160613-tag: Introduce "xen-load-devices-state" exec: Fix qemu_ram_block_from_host for Xen Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index a9d465b289..4f3818c561 100644
--- a/exec.c
+++ b/exec.c
@@ -1935,7 +1935,7 @@ RAMBlock *qemu_ram_block_from_host(void *ptr, bool round_offset,
ram_addr = xen_ram_addr_from_mapcache(ptr);
block = qemu_get_ram_block(ram_addr);
if (block) {
- *offset = (host - block->host);
+ *offset = ram_addr - block->offset;
}
rcu_read_unlock();
return block;