From: Paul Durrant Date: Tue, 19 May 2015 09:44:59 +0000 (+0200) Subject: x86/hvm: actually release ioreq server pages X-Git-Tag: 4.5.1-rc2~20 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8dbdcc391001e50fad177400c85f11a2739b9e25;p=xen.git x86/hvm: actually release ioreq server pages 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 Reviewed-by: Andrew Cooper Reviewed-by: Jan Beulich master commit: cb791b84e7c0adce14194647912c4c3d28cddc4a master date: 2015-04-24 12:13:48 +0200 --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 55077f9823..f835f7aade 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -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)