Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4795323ooa; Tue, 14 Aug 2018 10:39:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz5Gy+eBl243ufjeYbfIUS46WrOpxLzd5bstqf2ESnc3D3MRfwuszn1+8ILozUjwlEpEE3T X-Received: by 2002:a63:6a45:: with SMTP id f66-v6mr21231319pgc.81.1534268359561; Tue, 14 Aug 2018 10:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534268359; cv=none; d=google.com; s=arc-20160816; b=GU+sENTwgCYJyY5CReZAaPpk5JbjRM+bxWQB81LpTti9uq4Weiui8fD3k6Ai1RMt4w dEl0riki+QzI6gBMon5iJBsL1Q+WFrGxl9YXHbn9hQKLEgFeO8da+PXcixNEIQm8+/Vm oIpjuQe3h2aV7thT8MEEYJ0TQbnBDoezIRyRlvBfbWuzc5mLmGrXdrTSQ3aeAFq9fJC4 QW2wO6gZThDoMyFdSFfJFF0VN+z3GLR4F8RHnlOTkT0fmpSI6VL1bL59SKTGaKb9lccT EzAhVKQsrZnMGxwuhf6PO8A6+SLh2yTk3jQSMrHSBFl3y4LiwkH/ESaQo9j74bRP/q1W adMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bUoU6lsEiTo48IsEdydKb69YC4xebfLclMOsPfaMUo4=; b=hf6xi0oTbDFVDp2DWnT8NEC98hCoyqT7HYUXa2A+S0iKL9o9d3Zgsx49v8xtv/ur8c 10KjV+9A5tEFpXO798svkz5E1GVMJswMnDEDcUlpRKZXAtX5ajH3BqLbMXGpOyH33Yp2 TmDd6VB2cSv0MuRA6c93IxDKB2ZwccS2aFiqCOm7Qu5Z2vkOPAzFRawd5mARdiBweLRb jSfTn/oV8xa5tYYDN36TLqahcgTDUcJNgznAtvDKushwTaVKuOomydCbK199GR3hUHrN No/nyUO5wi2xy1JBoi894IJ+dVK3MMG4AI9v5gpPIbDsQmm3zOHPvEhl/QibECanwNhP cwCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6-v6si17006320plh.226.2018.08.14.10.39.04; Tue, 14 Aug 2018 10:39:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732397AbeHNUZm (ORCPT + 99 others); Tue, 14 Aug 2018 16:25:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58136 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbeHNUZl (ORCPT ); Tue, 14 Aug 2018 16:25:41 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 758A2CBA; Tue, 14 Aug 2018 17:37:32 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Bonzini , Nicolai Stange , Thomas Gleixner Subject: [PATCH 4.14 084/104] x86/irq: Demote irq_cpustat_t::__softirq_pending to u16 Date: Tue, 14 Aug 2018 19:17:38 +0200 Message-Id: <20180814171520.660397255@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814171515.270692185@linuxfoundation.org> References: <20180814171515.270692185@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicolai Stange commit 9aee5f8a7e30330d0a8f4c626dc924ca5590aba5 upstream An upcoming patch will extend KVM's L1TF mitigation in conditional mode to also cover interrupts after VMEXITs. For tracking those, stores to a new per-cpu flag from interrupt handlers will become necessary. In order to improve cache locality, this new flag will be added to x86's irq_cpustat_t. Make some space available there by shrinking the ->softirq_pending bitfield from 32 to 16 bits: the number of bits actually used is only NR_SOFTIRQS, i.e. 10. Suggested-by: Paolo Bonzini Signed-off-by: Nicolai Stange Signed-off-by: Thomas Gleixner Reviewed-by: Paolo Bonzini Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/hardirq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/include/asm/hardirq.h +++ b/arch/x86/include/asm/hardirq.h @@ -6,7 +6,7 @@ #include typedef struct { - unsigned int __softirq_pending; + u16 __softirq_pending; unsigned int __nmi_count; /* arch dependent */ #ifdef CONFIG_X86_LOCAL_APIC unsigned int apic_timer_irqs; /* arch dependent */