From 8dbdcc391001e50fad177400c85f11a2739b9e25 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Tue, 19 May 2015 11:44:59 +0200 Subject: [PATCH] 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 --- xen/arch/x86/hvm/hvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5