aboutsummaryrefslogtreecommitdiff
path: root/contrib/plugins/hotpages.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/plugins/hotpages.c')
-rw-r--r--contrib/plugins/hotpages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/plugins/hotpages.c b/contrib/plugins/hotpages.c
index eacc678eac..bf53267532 100644
--- a/contrib/plugins/hotpages.c
+++ b/contrib/plugins/hotpages.c
@@ -122,7 +122,7 @@ static void vcpu_haddr(unsigned int cpu_index, qemu_plugin_meminfo_t meminfo,
}
} else {
if (hwaddr && !qemu_plugin_hwaddr_is_io(hwaddr)) {
- page = (uint64_t) qemu_plugin_hwaddr_device_offset(hwaddr);
+ page = (uint64_t) qemu_plugin_hwaddr_phys_addr(hwaddr);
} else {
page = vaddr;
}