Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp139995rdb; Mon, 18 Sep 2023 10:19:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRmyG+2UZeqdgq3hTe3/v6hIq+n/S/SOBWJVbLu3xEBrvSLVY3dx5PzdOsH69pFO+BctTl X-Received: by 2002:a17:902:ec8a:b0:1c3:64f9:45ad with SMTP id x10-20020a170902ec8a00b001c364f945admr9573172plg.48.1695057572688; Mon, 18 Sep 2023 10:19:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695057572; cv=pass; d=google.com; s=arc-20160816; b=0jAggRTRuq7mIdzeeAaa4gRrmxRfuflH0gbLdsMl5rHBXIhxBYaP2wBaQe7jETcW55 pnV+vIDmx9WsQHQDfulsgvdI9us0IYarr9FlsnW1zhq2TXwA8s9g92TLZtMBNCvJmrpS QE2wc4QqYraAEIz//yUnN1BKFMUUe/ZH46gITP7DcUnsgrxVWF22GjxI5PwhMoSsd8wj ye0Xt0UBkgHv3I91NcINpDDPneyT1hxzyFQ5QmbNdovqVZyqWrRKGQA5KvzXtkJ3aIW6 qmPaUbOlD591SgM6THWCfslaPG5zPxOHSCEUhc8816s8GivomJPKCFjbOfNncKv3o4Nn isSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=yd6kyYrWj6oCQzFKUGHBarpAI0TUx5LPFaSLdyNH3nY=; fh=OdhiLaw2T3hK7H6U4RpX6VKiaesM/DmBUUsKcS76R2Q=; b=bxre4bXGYpnDxLpO0GoU71eorc922wGbct6opPDSh8oVf0Y/c7Air7Ul3z322SjdWA LtHoc05CL4+uqrpZovrt5Uqo5tfwBsUPG5dAWD73YcdMQcOZgJ6rpgZSTVtSRT3f+gbk zGmiCIWAuDmOjtj69P1MMB3TopF+OGrt2V8A9B31Tj6G4q7ZlAxWd80TLtHf+sCcZgbj TcpPFWI1oNDW+QiCXgeNIiPU+or0/Fa6l+cK29sy3RFN3X+99wyLXnkWKh2wg8vfwFRW s6Ke6RzxH9b1uNDTcVIn7+PjbAHIqK4xQayZ+Wh0SB9QmbL1/7xKXRMJCGGsOqrOllIZ 2iTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@aepfle.de header.s=strato-dkim-0002 header.b=fUDjsb7i; dkim=neutral (no key) header.i=@aepfle.de; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d17-20020a170902ced100b001c342073f76si8635577plg.323.2023.09.18.10.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:19:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@aepfle.de header.s=strato-dkim-0002 header.b=fUDjsb7i; dkim=neutral (no key) header.i=@aepfle.de; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9C033808A408; Mon, 18 Sep 2023 09:42:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbjIRQma (ORCPT + 99 others); Mon, 18 Sep 2023 12:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbjIRQmQ (ORCPT ); Mon, 18 Sep 2023 12:42:16 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 986F03C13; Mon, 18 Sep 2023 09:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695052925; cv=none; d=strato.com; s=strato-dkim-0002; b=pvP79mxSIzR8bl+ycoQCPTSq3/RqkpCUNtaGVAn5fqW/LazgJ/6Fi0tMgOmLfqOAFO 27inCowafwAyXUvq8U3TWiEzsysP1aO898Ece1gvAKPkZemazTyIFDol0qSOnHUKnG3b i1cUQEmiyKNcVvfIzKfr/dCzFuPjukZCK+ZC2/bpHjPkcGxfWk0gb6cOANKR5TBdnCYc qyT3QpMD/Gq5SA+/Y6GVWubQiLLHlUlJEQApGkCW9ZBDvWB2q02QveRC1PfGzZFd/GLS cSupHKWN5Fsfy0q6vJI38JppkoGNyKpxeu3/uDHty7RVBDVLmMEwvtP/YK16M+ZSREv9 F1eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1695052925; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=yd6kyYrWj6oCQzFKUGHBarpAI0TUx5LPFaSLdyNH3nY=; b=Nnp9/8M42n+EdljYtcUUih3JATBJ8wrX2GbOBptWi3F0ylpG6hC/0W/i/1scLHUh6R 91ldGT9Z7pQ7C504NoYbEgM64OXeoQzHi1sqGjHI4DwMcQ8gTVmVJH3Vp2luk4Io7uZV RIlmihk+sfqZoRhrz0A/jHDanFjq5sr3MFya3smPtqZLsTavjj9kfzxZBdP/RiULWuIu ij6Mzeyl7nP4kKyWTNbu9h389B0A5GhliVcLKtaueP9bF7KimZc19JR6/5tmaUqlhJJ6 SRJT7dRtPVAFes/7krIUGz8rvMEIj+hDvCHPRM1F3qRdPTbcnXKo1rNNxILKADCO0aja 4dfg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1695052925; s=strato-dkim-0002; d=aepfle.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=yd6kyYrWj6oCQzFKUGHBarpAI0TUx5LPFaSLdyNH3nY=; b=fUDjsb7ilDKCZPHca3zLwykO/DSnGifRcqDB5uo77H9C3Yva24rxuS2vqXa34EVMsW TYDsHdgJUrgQegwlr1Mouj23l8qBo5ohY6VKjhzELfHn+nqNOSK1sZ7Y2pAG29g9ebZq WOc3J6EJv9v28ncVPrZ/tPhh6aqtseaWN0bcswLO5prz0ff3OmY+FUU6ewJeervQE23C wCf3Byj1OvSY2AwiEYUPjaquEvuKlc/R7/RmtIgpjImU9ZRVOTWq9S3Bl4Giyna6Py87 JrFf6CcFdQSzcq90EU/DUpYNdKk79/yaSwE8C+rPR+vDQyslZqvoq0IH8ong+gec21nc sNpQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1695052925; s=strato-dkim-0003; d=aepfle.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=yd6kyYrWj6oCQzFKUGHBarpAI0TUx5LPFaSLdyNH3nY=; b=7oT3j3lZWjQ/Kq1bVlBzamIjnCIecoSDJNXOcpTsnkAKQ6C0S/+aNoxnAuYvtthPx4 iP5tLxUrs75idd7LsIDg== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAg4wqFn7GpQtMwqaqfdp7uT2JYghpVgZry79i6M1qA==" Received: from sender by smtp.strato.de (RZmta 49.8.2 AUTH) with ESMTPSA id C041b2z8IG25yDi (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 18 Sep 2023 18:02:05 +0200 (CEST) From: Olaf Hering To: linux-hyperv@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Arnd Bergmann Subject: [PATCH v1] hyperv: reduce size of ms_hyperv_info Date: Mon, 18 Sep 2023 18:01:40 +0200 Message-Id: <20230918160141.23465-1-olaf@aepfle.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:42:36 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Use the hole prior shared_gpa_boundary to store the result of get_vtl. This reduces the size by 8 bytes. Signed-off-by: Olaf Hering --- include/asm-generic/mshyperv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/mshyperv.h b/include/asm-generic/mshyperv.h index cecd2b7bd033..bdee5fbaaf40 100644 --- a/include/asm-generic/mshyperv.h +++ b/include/asm-generic/mshyperv.h @@ -53,8 +53,8 @@ struct ms_hyperv_info { u32 reserved_b2 : 20; }; }; - u64 shared_gpa_boundary; u8 vtl; + u64 shared_gpa_boundary; }; extern struct ms_hyperv_info ms_hyperv; extern bool hv_nested;