aboutsummaryrefslogtreecommitdiff
path: root/xen-hvm.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-08-04 11:17:24 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-08-04 11:17:24 +0100
commit7b13ff3f156b98c3183dfa30edfd6473e8660374 (patch)
treeb5ff0ee807688f810025a540129de130c61f2d81 /xen-hvm.c
parentc79805802ba0463713c253307d99ebef56436b8c (diff)
parentb33a5bbfbaab6c1ce653a8e3665a18ca67de1456 (diff)
downloadqemu-arm-7b13ff3f156b98c3183dfa30edfd6473e8660374.tar.gz
Merge remote-tracking branch 'remotes/sstabellini/xen-20140801' into staging
* remotes/sstabellini/xen-20140801: qemu: support xen hvm direct kernel boot tap-bsd: implement a FreeBSD only version of tap_open xen: fix usage of ENODATA Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'xen-hvm.c')
-rw-r--r--xen-hvm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xen-hvm.c b/xen-hvm.c
index a2486cfd7e..91de2e230b 100644
--- a/xen-hvm.c
+++ b/xen-hvm.c
@@ -513,11 +513,14 @@ static void xen_sync_dirty_bitmap(XenIOState *state,
start_addr >> TARGET_PAGE_BITS, npages,
bitmap);
if (rc < 0) {
- if (rc != -ENODATA) {
+#ifndef ENODATA
+#define ENODATA ENOENT
+#endif
+ if (errno == ENODATA) {
memory_region_set_dirty(framebuffer, 0, size);
DPRINTF("xen: track_dirty_vram failed (0x" TARGET_FMT_plx
", 0x" TARGET_FMT_plx "): %s\n",
- start_addr, start_addr + size, strerror(-rc));
+ start_addr, start_addr + size, strerror(errno));
}
return;
}