From nobody Sat Nov 30 16:34:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1600958235; cv=none; d=zohomail.com; s=zohoarc; b=DgvBDee+QsADvwfNf1nMjckkRqG8XNWMXFbA6cB0iRcPfYupKtH8VaRb0CMV2WpyKSYfZNl7K1UPeZivI84KNvAzUN0VemMiyeOj4pB6SWt6WR6BiKImc2QFBz9O6YhUle5uCo3QNvV++u9K3FFmYeSGf81aPtwBs8E89Q2kIW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600958235; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=a11iZA66fIZPc+peMoqf4lIlo+fGT/XEXYOUUx0CayM=; b=j7EG4WsPMkrtVXH18Mqf4nI1V+imvLxIYOmautCxJxz1UdZDE7urUE4THG54bxeal9g0YKwutGgzVw7DAXlSH6XQ4Y6pzRddQ8zhOxl3X7lqm1+UH9BiwVmgoL1mo5RV/8OP5G0AJAwqpZncVvaA+D1yNxnNTNzFWSFL4WtaEfo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 16009582350231009.9848578208802; Thu, 24 Sep 2020 07:37:15 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kLSMe-0005sY-I0; Thu, 24 Sep 2020 14:36:52 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kLSMd-0005sT-S9 for xen-devel@lists.xenproject.org; Thu, 24 Sep 2020 14:36:51 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2d118b29-8823-47c6-9f5d-89b777b71c56; Thu, 24 Sep 2020 14:36:51 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 49BA9AAC7; Thu, 24 Sep 2020 14:36:50 +0000 (UTC) X-Inumbo-ID: 2d118b29-8823-47c6-9f5d-89b777b71c56 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1600958210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=a11iZA66fIZPc+peMoqf4lIlo+fGT/XEXYOUUx0CayM=; b=Jt8aa8OgAONs2V9LzScXrXjIr/fWS78sI2j74IDHxd4uu2O14YWrVDSQ7Cidi0z2wWWRkM qv6XnmLlDUDXZAOWnzw/yB8/uTa37HBfHOjNQH0pQpHngrL73iydYOz22sG9T1d9qzlRQS Hetsw9XFeaBtUgVuxwBoaVXfJT0du7A= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Ian Jackson , Wei Liu Subject: [PATCH] tools/xenstore: set maximum number of grants needed Date: Thu, 24 Sep 2020 16:36:48 +0200 Message-Id: <20200924143648.27861-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: pass (identity @suse.com) Content-Type: text/plain; charset="utf-8" When running as a stubdom Xenstore should set the maximum number of grants needed via a call of xengnttab_set_max_grants(), as otherwise the number of domains which can be supported will be 128 only (the default number of grants supported by Mini-OS). Signed-off-by: Juergen Gross Acked-by: Wei Liu --- This is a backport candidate IMO. --- tools/xenstore/xenstored_domain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_d= omain.c index 06359503f0..f740aa02f5 100644 --- a/tools/xenstore/xenstored_domain.c +++ b/tools/xenstore/xenstored_domain.c @@ -630,6 +630,8 @@ void domain_init(void) *xgt_handle =3D xengnttab_open(NULL, 0); if (*xgt_handle =3D=3D NULL) barf_perror("Failed to open connection to gnttab"); + /* Allow max number of domains for mappings. */ + xengnttab_set_max_grants(*xgt_handle, DOMID_FIRST_RESERVED); =20 talloc_set_destructor(xgt_handle, close_xgt_handle); =20 --=20 2.26.2