From patchwork Mon Sep 18 16:01:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 141506 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2859873vqi; Mon, 18 Sep 2023 11:18:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE00q+dYjbbwCsFBCja74hCdGsXLhSWZ561G9igti7eJm2i4RvRVptKr4+WXq8t9uF6sx1p X-Received: by 2002:a17:903:41c4:b0:1c0:bcbc:d5d with SMTP id u4-20020a17090341c400b001c0bcbc0d5dmr10248093ple.61.1695061083774; Mon, 18 Sep 2023 11:18:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695061083; cv=pass; d=google.com; s=arc-20160816; b=cPd6Dc2F8fMJgg3j4QCfEU7CiUwQwk4rszMdu3qWA6tDWQ2MQzLzZKd1qx1exZTIrv wFL89Ba+YwEH7QNKARIPzqwoYi0689ugf50BAybSw2N+qNcfnQ7ACOv89pUT7ln2vSwH ncIMi+BVxkz6/ETwQFMgjBYACbUZDmTlWTcZOWPa4OYgoh8VMa+ZC6pWNWrcDH+YAJXf mF1G2rsQ/lUEcBYjuu+Ki2S7wxQEcTWIguCmNvsKKKr2pkxfQx8al7jRvTYxPTSlr4xn 3NGAYBdemNqzXE8Yb9c5o0jbxWxHNCV75fxk+OsyO14uvPYQkLuSm0bPDvJQMrxdsGLA CFEw== 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 header.b=7oT3j3lZ; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id a13-20020a170902eccd00b001bbd639dff9si8568769plh.467.2023.09.18.11.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:18:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; 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 header.b=7oT3j3lZ; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 3934C8039FE9; Mon, 18 Sep 2023 09:42:53 -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 S230377AbjIRQmb (ORCPT + 25 others); Mon, 18 Sep 2023 12:42:31 -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 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:53 -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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777400371194397054 X-GMAIL-MSGID: 1777400371194397054 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;