From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 191D1F33A62 for ; Thu, 5 Mar 2026 13:52:31 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1246664.1545768 (Exim 4.92) (envelope-from ) id 1vy97f-0008N3-7s; Thu, 05 Mar 2026 13:52:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1246664.1545768; Thu, 05 Mar 2026 13:52:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vy97f-0008Mw-4f; Thu, 05 Mar 2026 13:52:15 +0000 Received: by outflank-mailman (input) for mailman id 1246664; Thu, 05 Mar 2026 13:52:13 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vy97c-0008Mq-W3 for xen-devel@lists.xenproject.org; Thu, 05 Mar 2026 13:52:13 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 820ae696-189a-11f1-b164-2bf370ae4941; Thu, 05 Mar 2026 14:52:11 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6414C3F904; Thu, 5 Mar 2026 13:52:10 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 3A6DC3EA68; Thu, 5 Mar 2026 13:52:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id pHcFDYqKqWlKTgAAD6G6ig (envelope-from ); Thu, 05 Mar 2026 13:52:10 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 820ae696-189a-11f1-b164-2bf370ae4941 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1772718730; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=x/tKo6sO/yEl7rIclC8Ou/RxLmCoSVX2S0UQLahfY5Y=; b=W8Njhtr8phGTTkrM/iWOk5nQ1OdpnM8IfavIGp92qr8ObGu4rpQJ/w6Ox0t7RK/Nkdl+Ku OjOsm8qme8KAc81wZk3rG5EkzEVOK36uO0X+Ar41yoDvxHVqR9BF0BsPERcLRkrLUtCZMK RhaB1iGTPJS1VAsnFa5jaLFPPTJilvU= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1772718730; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=x/tKo6sO/yEl7rIclC8Ou/RxLmCoSVX2S0UQLahfY5Y=; b=W8Njhtr8phGTTkrM/iWOk5nQ1OdpnM8IfavIGp92qr8ObGu4rpQJ/w6Ox0t7RK/Nkdl+Ku OjOsm8qme8KAc81wZk3rG5EkzEVOK36uO0X+Ar41yoDvxHVqR9BF0BsPERcLRkrLUtCZMK RhaB1iGTPJS1VAsnFa5jaLFPPTJilvU= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Julien Grall , Anthony PERARD , Nick Rosbrook , George Dunlap Subject: [PATCH 00/11] tools: add support for per-domain xenstore quota Date: Thu, 5 Mar 2026 14:51:57 +0100 Message-ID: <20260305135208.2208663-1-jgross@suse.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.79 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.19)[-0.974]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:mid,imap1.dmz-prg2.suse.org:helo]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_TLS_ALL(0.00)[] This series is adding support for per-domain Xenstore quota to: - xenstored - libxenstore - libxl - xl With this it is possible to e.g. allow larger limits for driver domains. Juergen Gross (11): tools/libs/store: add get- and set-quota related functions tools/xenstored: add central quota check functions tools/xenstored: rework hard_quotas and soft_quotas arrays tools/xenstored: add GLOBAL_QUOTA_DATA record for live update tools/xenstored: split acc[] array in struct domain tools/xenstored: add infrastructure for per-domain quotas tools/xenstored: implement the GET/SET_QUOTA commands tools/libxl: add functions for retrieving and setting xenstore quota tools/libxl: add support for xenstore quota in domain_config tools/xl: add xl commands for xenstore quota operations tools/xl: add support for xenstore quota setting via domain config docs/man/xl.cfg.5.pod.in | 13 + tools/golang/xenlight/helpers.gen.go | 84 +++++ tools/golang/xenlight/types.gen.go | 10 + tools/include/libxl.h | 20 ++ tools/include/xenstore.h | 19 ++ tools/libs/light/Makefile | 1 + tools/libs/light/libxl_dom.c | 8 + tools/libs/light/libxl_domain.c | 10 + tools/libs/light/libxl_types.idl | 10 + tools/libs/light/libxl_xsquota.c | 102 ++++++ tools/libs/store/Makefile | 2 +- tools/libs/store/libxenstore.map | 8 + tools/libs/store/xs.c | 111 +++++++ tools/xenstored/control.c | 24 +- tools/xenstored/core.c | 41 ++- tools/xenstored/domain.c | 457 +++++++++++++++++++++------ tools/xenstored/domain.h | 32 +- tools/xenstored/lu.c | 6 + tools/xenstored/transaction.c | 2 +- tools/xenstored/watch.c | 4 +- tools/xl/Makefile | 1 + tools/xl/xl.h | 2 + tools/xl/xl_cmdtable.c | 10 + tools/xl/xl_parse.c | 48 ++- tools/xl/xl_parse.h | 1 + tools/xl/xl_xsquota.c | 88 ++++++ 26 files changed, 972 insertions(+), 142 deletions(-) create mode 100644 tools/libs/light/libxl_xsquota.c create mode 100644 tools/xl/xl_xsquota.c -- 2.53.0