From patchwork Thu Mar 30 08:49:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 13193646 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 28E23C77B6D for ; Thu, 30 Mar 2023 08:50:39 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.516498.800682 (Exim 4.92) (envelope-from ) id 1phnz9-0005R8-EH; Thu, 30 Mar 2023 08:50:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 516498.800682; Thu, 30 Mar 2023 08:50:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1phnz9-0005R1-BZ; Thu, 30 Mar 2023 08:50:19 +0000 Received: by outflank-mailman (input) for mailman id 516498; Thu, 30 Mar 2023 08:50:18 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1phnz7-0005Qp-VF for xen-devel@lists.xenproject.org; Thu, 30 Mar 2023 08:50:18 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [2001:67c:2178:6::1d]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id e335ad5c-ced7-11ed-b464-930f4c7d94ae; Thu, 30 Mar 2023 10:50:14 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 28EB51FEA2; Thu, 30 Mar 2023 08:50:14 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E3CF4138FF; Thu, 30 Mar 2023 08:50:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id v97jNUVNJWTGIgAAMHmgww (envelope-from ); Thu, 30 Mar 2023 08:50:13 +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: e335ad5c-ced7-11ed-b464-930f4c7d94ae DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1680166214; 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=Ogccndl2v1UR67f4S1y8WmCiYTytNq5Lwn9uMMjXMbQ=; b=SWY5Eadl14irp9VNfMrTPDKOkwsGV/LwVm54IaGuN/n4Frxs+0sHPj0QybD5D6doUOLXaQ wjBnSXMJPCT/+uHEsPrr5yI9MUSIgdMP3fMZJUmViuAJJ/QL1VJIYaukLrhgn64850MXXZ NNcw6W7NzvzouOTesK/6jsTTlKqDe6g= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Wei Liu , Julien Grall , Anthony PERARD Subject: [PATCH v2 00/13] tools/xenstore: more cleanups Date: Thu, 30 Mar 2023 10:49:58 +0200 Message-Id: <20230330085011.9170-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Some more cleanups of Xenstore. Based on top of the previous Xenstore series "tools/xenstore: rework internal accounting". Changes in V2: - rebase - one small modification of patch 10 - added patches 11-13 Juergen Gross (13): tools/xenstore: verify command line parameters better tools/xenstore: do some cleanup of hashtable.c tools/xenstore: modify interface of create_hashtable() tools/xenstore: let hashtable_insert() return 0 on success tools/xenstore: make some write limit functions static tools/xenstore: switch write limiting to use millisecond time base tools/xenstore: remove stale TODO file tools/xenstore: remove unused events list tools/xenstore: remove support of file backed data base tools/xenstore: remove no longer needed functions from xs_lib.c tools/xenstore: split out environment specific live update code tools/xenstore: split out rest of live update control code tools/xenstore: remove unused stuff from list.h tools/include/xenstore.h | 3 + tools/include/xenstore_lib.h | 3 - tools/libs/store/xs.c | 38 ++ tools/xenstore/Makefile | 5 +- tools/xenstore/Makefile.common | 10 +- tools/xenstore/TODO | 10 - tools/xenstore/hashtable.c | 98 ++-- tools/xenstore/hashtable.h | 16 +- tools/xenstore/list.h | 227 --------- tools/xenstore/xenstore_client.c | 129 +++++ tools/xenstore/xenstored_control.c | 657 +------------------------ tools/xenstore/xenstored_control.h | 8 - tools/xenstore/xenstored_core.c | 52 +- tools/xenstore/xenstored_core.h | 7 +- tools/xenstore/xenstored_domain.c | 458 +++++++++-------- tools/xenstore/xenstored_domain.h | 24 +- tools/xenstore/xenstored_lu.c | 401 +++++++++++++++ tools/xenstore/xenstored_lu.h | 81 +++ tools/xenstore/xenstored_lu_daemon.c | 132 +++++ tools/xenstore/xenstored_lu_minios.c | 121 +++++ tools/xenstore/xenstored_transaction.c | 4 +- tools/xenstore/xenstored_watch.c | 5 - tools/xenstore/xs_lib.c | 156 ------ tools/xenstore/xs_lib.h | 17 - tools/xenstore/xs_tdb_dump.c | 86 ---- 25 files changed, 1204 insertions(+), 1544 deletions(-) delete mode 100644 tools/xenstore/TODO create mode 100644 tools/xenstore/xenstored_lu.c create mode 100644 tools/xenstore/xenstored_lu.h create mode 100644 tools/xenstore/xenstored_lu_daemon.c create mode 100644 tools/xenstore/xenstored_lu_minios.c delete mode 100644 tools/xenstore/xs_tdb_dump.c