]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hvm: actually release ioreq server pages
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 19 May 2015 09:44:59 +0000 (11:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 May 2015 09:44:59 +0000 (11:44 +0200)
hvm_free_ioreq_gmfn has the sense of the ioreq_gmfn mask inverted; it
needs to set a bit to release the gmfn, not clear it.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: cb791b84e7c0adce14194647912c4c3d28cddc4a
master date: 2015-04-24 12:13:48 +0200

xen/arch/x86/hvm/hvm.c

index 55077f9823a9282bfed6e16e7581b02ca52b2be3..f835f7aadea93638f7c8290a4ff37bf0b28d2be3 100644 (file)
@@ -486,7 +486,7 @@ static void hvm_free_ioreq_gmfn(struct domain *d, unsigned long gmfn)
 {
     unsigned int i = gmfn - d->arch.hvm_domain.ioreq_gmfn.base;
 
-    clear_bit(i, &d->arch.hvm_domain.ioreq_gmfn.mask);
+    set_bit(i, &d->arch.hvm_domain.ioreq_gmfn.mask);
 }
 
 static void hvm_unmap_ioreq_page(struct hvm_ioreq_server *s, bool_t buf)