aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_misc.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-11-10 14:56:06 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-11-10 14:56:06 +0000
commitd549bdb2a0bbd012263d0795f435fdd0bdae0da6 (patch)
tree4adbcb6b3fa23452170157f181b98085ba1687c9 /tools/libxc/xc_misc.c
parentadee1dd91882b8a13345479c7fe216bac6908451 (diff)
downloadxen-d549bdb2a0bbd012263d0795f435fdd0bdae0da6.tar.gz
xen-d549bdb2a0bbd012263d0795f435fdd0bdae0da6.tar.bz2
xen-d549bdb2a0bbd012263d0795f435fdd0bdae0da6.zip
libxc: correct dirty_bitmap bounce size in xc_hvm_track_dirty_vram
The size should be in bytes not 32-bit words. Fixes graphics corruption issues for HVM guests due to bouncing too little data. Also the dirty_bitmap buffer is output only and therefore only needs bouncing in one direction. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_misc.c')
-rw-r--r--tools/libxc/xc_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_misc.c b/tools/libxc/xc_misc.c
index f3ffb225bd..0a207cde34 100644
--- a/tools/libxc/xc_misc.c
+++ b/tools/libxc/xc_misc.c
@@ -423,7 +423,7 @@ int xc_hvm_track_dirty_vram(
unsigned long *dirty_bitmap)
{
DECLARE_HYPERCALL;
- DECLARE_HYPERCALL_BOUNCE(dirty_bitmap, (nr+31) / 32, XC_HYPERCALL_BUFFER_BOUNCE_BOTH);
+ DECLARE_HYPERCALL_BOUNCE(dirty_bitmap, (nr+7) / 8, XC_HYPERCALL_BUFFER_BOUNCE_OUT);
DECLARE_HYPERCALL_BUFFER(struct xen_hvm_track_dirty_vram, arg);
int rc;