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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6A50C433ED for ; Wed, 21 Apr 2021 10:26:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 8E64D6144A for ; Wed, 21 Apr 2021 10:26:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E64D6144A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.114382.217976 (Exim 4.92) (envelope-from ) id 1lZA3z-0000vK-33; Wed, 21 Apr 2021 10:26:31 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 114382.217976; Wed, 21 Apr 2021 10:26:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lZA3y-0000vD-W5; Wed, 21 Apr 2021 10:26:30 +0000 Received: by outflank-mailman (input) for mailman id 114382; Wed, 21 Apr 2021 10:26:29 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lZA3x-0000v7-Cr for xen-devel@lists.xenproject.org; Wed, 21 Apr 2021 10:26:29 +0000 Received: from mail-wr1-f46.google.com (unknown [209.85.221.46]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 62e4fc4a-6bea-474e-8c98-387c39aa7cea; Wed, 21 Apr 2021 10:26:28 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id j5so39825509wrn.4 for ; Wed, 21 Apr 2021 03:26:28 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h5sm1720079wmq.23.2021.04.21.03.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 03:26:27 -0700 (PDT) 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: 62e4fc4a-6bea-474e-8c98-387c39aa7cea X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sgHPJNd6yt4X4FpIxBb4H3ocAUbJEf7Rkftjj8J3SHw=; b=AIONHD+Owf1ra7b5bK03pshnr8qcPgE87N+Fh6JVtDDjBHvbZSzxyaTPbizAsaJMWq X9on544f/AO0B2W1IrtMtaRvCkRN11AcpPhnmbB+WRIL4FdIQlLRBjTIAlKweVL5RBqn tiZgsIXIjrm4YnlcGgKsrHpdnjBJUnGjzlMB8QGchPhvdHz4lDInMrUhTU/EqlqvEy2V A9ZDiQjkBWXGEesgAKOYcXHFlgCGckYHlKaLcWjDoK9r9mu3H1tcSjxYrCc2TSw9o65m Lh8gETrBZWUrbIbjKpJmiTnhl/+FsO6nQ4r1mulkg6hCn2ud0Gvwqdu8DaBb3SPDZW8M XgXA== X-Gm-Message-State: AOAM533uKi4gBIbXYXdFYxQCK0THLlmfiZ9Gmd6dgwGH0LaApjYf5xVF CbvJXJlFcEeq8+HqpPpzDl4= X-Google-Smtp-Source: ABdhPJzHtgVsS+uaCJry8RNZiANCHI4lQOR4x+cBpT7Y8fjOZ5/s4FUDmtuKqK6XCe1LoEFwaW9XQQ== X-Received: by 2002:adf:f990:: with SMTP id f16mr26200263wrr.312.1619000787859; Wed, 21 Apr 2021 03:26:27 -0700 (PDT) Date: Wed, 21 Apr 2021 10:26:26 +0000 From: Wei Liu To: Olaf Hering Cc: xen-devel@lists.xenproject.org, Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu , Anthony PERARD Subject: Re: [PATCH v4] tools: create libxensaverestore Message-ID: <20210421102626.ilsm4vaiyn2uvkyc@liuwe-devbox-debian-v2> References: <20210415131138.8709-1-olaf@aepfle.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210415131138.8709-1-olaf@aepfle.de> On Thu, Apr 15, 2021 at 03:11:38PM +0200, Olaf Hering wrote: > Move all save/restore related code from libxenguest.so into a separate > library libxensaverestore.so. The only consumer is libxl-save-helper. > There is no need to have the moved code mapped all the time in binaries > where libxenguest.so is used. > > According to size(1) the change is: > text data bss dec hex filename > 187183 4304 48 191535 2ec2f guest/libxenguest.so.4.15.0 > > 124106 3376 48 127530 1f22a guest/libxenguest.so.4.15.0 > 67841 1872 8 69721 11059 saverestore/libxensaverestore.so.4.15.0 > > While touching the files anyway, take the opportunity to drop the > reduntant xg_sr_ filename prefix. > > Signed-off-by: Olaf Hering Acked-by: Wei Liu