From: Paul Durrant Date: Tue, 24 Mar 2020 16:40:09 +0000 (+0100) Subject: x86 / ioreq: use a MEMF_no_refcount allocation for server pages... X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~509 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0a393d881f27ecddd7be762ba24951d6cb67751d;p=xen.git x86 / ioreq: use a MEMF_no_refcount allocation for server pages... ... now that it is safe to assign them. This avoids relying on libxl (or whatever toolstack is in use) setting max_pages up with sufficient 'slop' to allow all necessary ioreq server pages to be allocated. Signed-off-by: Paul Durrant Reviewed-by: Jan Beulich --- diff --git a/xen/arch/x86/hvm/ioreq.c b/xen/arch/x86/hvm/ioreq.c index 36fbbcf0ea..70e61788d7 100644 --- a/xen/arch/x86/hvm/ioreq.c +++ b/xen/arch/x86/hvm/ioreq.c @@ -376,7 +376,7 @@ static int hvm_alloc_ioreq_mfn(struct hvm_ioreq_server *s, bool buf) return 0; } - page = alloc_domheap_page(s->target, 0); + page = alloc_domheap_page(s->target, MEMF_no_refcount); if ( !page ) return -ENOMEM;