Message ID | 20220528113829.1043361-18-maz@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0E1A2C433EF for <linux-arm-kernel@archiver.kernel.org>; Sat, 28 May 2022 11:51:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BY4Cd3aK1PfVW9By3YPwB610qMmz3I1DILEbNfOxO7Y=; b=FehZaBEcLZvdxd CTff00mLAbdDYPjLSRQxwzis48CCPYdkOvabUIj0fyX5hjlOmoL8cjMsqz2CQY1IU9A0ZJj0+JAT8 /0kpY4v08388f7SOvD7roqAB86F4XETTXQaWGfWgwIGJ9H7in88xZzU4dVqwLUnQpiT2wPcweB7Br NwBw18JzpzCnHlBvMd/wUK9zxA0fmi4du2uhcu8wKe0tE8Q1Ix2vmxvr2229XtfJ43Q/JgQ+PqTjf /XaoUoeHd+cyi7CCcqQREOj1rdIQSiirP6wfi6U0/x6cljx5ZEi1EivsNDAgOVfF7FTcN6loqi7j+ V2t7JqBU6/8LmDVWBRjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuuxf-00240I-5T; Sat, 28 May 2022 11:50:27 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuuxD-0023pZ-57 for linux-arm-kernel@lists.infradead.org; Sat, 28 May 2022 11:50:00 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 7EA91CE191E; Sat, 28 May 2022 11:49:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC160C34100; Sat, 28 May 2022 11:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653738589; bh=OvbuqjCsYRsACHJmFHA5RtdLvj3YPOeVzGbn+ZzrKrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eu3l4UaY7mnC7O9DPaOKnbpHQYefi9Fjlv+v3XUB5+VGlJmIAJ/35hbiqkPtfQCbS Z61gRVAPd+I8n3H5IKXZcVYU1s58VdwEDqCcgviY2jy4YyIPcUZ+RmvlTN7iCocT/8 qOoaAaof17sAZ9HubdVKWW1JiviiF+B41nb88IQZzRTUFMG6YwbGYgnAOnFzg20PC5 2RsCsIkw/vzCvoGEFHpbyOKKhpKzvX3fyvgBvESEfOuUcXM2a51+GoPULhE3mJxJlL uhMhbl9dOPNsxFA8mVFkzM86fcGkjX9Pn0yCwrebkf54jUFW5yxa/8pRIWzwzoTq+9 Z9nAx1FEpdgkw== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <maz@kernel.org>) id 1nuumD-00EEGh-LB; Sat, 28 May 2022 12:38:37 +0100 From: Marc Zyngier <maz@kernel.org> To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Alexandru Elisei <alexandru.elisei@arm.com>, Oliver Upton <oupton@google.com>, Will Deacon <will@kernel.org>, Fuad Tabba <tabba@google.com>, Quentin Perret <qperret@google.com>, Mark Brown <broonie@kernel.org>, kernel-team@android.com Subject: [PATCH 17/18] KVM: arm64: Reduce the size of the vcpu flag members Date: Sat, 28 May 2022 12:38:27 +0100 Message-Id: <20220528113829.1043361-18-maz@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220528113829.1043361-1-maz@kernel.org> References: <20220528113829.1043361-1-maz@kernel.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, suzuki.poulose@arm.com, alexandru.elisei@arm.com, oupton@google.com, will@kernel.org, tabba@google.com, qperret@google.com, broonie@kernel.org, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220528_044959_450727_161BDC3D X-CRM114-Status: GOOD ( 14.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
KVM/arm64: Refactoring the vcpu flags
|
expand
|
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 70931231f0cb..83f3dae4333a 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -336,13 +336,13 @@ struct kvm_vcpu_arch { } fp_state; /* Configuration flags */ - u64 cflags; + u8 cflags; /* Input flags to the hypervisor code */ - u64 iflags; + u8 iflags; /* State flags, unused by the hypervisor code */ - u64 sflags; + u8 sflags; /* * We maintain more than a single set of debug registers to support
Now that we can detect flags overflowing their container, reduce the size of all flag set members in the vcpu struct, turning them into 8bit quantities. Even with the FP state enum occupying 32bit, the whole of the state that was represented by flags is smaller by one byte. Profit! Signed-off-by: Marc Zyngier <maz@kernel.org> --- arch/arm64/include/asm/kvm_host.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)