Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4782962ooa; Tue, 14 Aug 2018 10:29:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyLLOUQGIFm3cHCJIHY8d8GTA6LOzjpaGlSP6qeutfw7PjCqHxIV7GaA2H2wGDoJgUbeNRd X-Received: by 2002:a62:50ca:: with SMTP id g71-v6mr24331133pfj.244.1534267745972; Tue, 14 Aug 2018 10:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534267745; cv=none; d=google.com; s=arc-20160816; b=VsB+w3zu9aYjeW2OboZrn4OZsAd3Xl3a4+Zjfg/dUxI/0OFpUk/4dEa8VneFbwsLMr My9jOphsf2cyhZgQlj1pzG9IVEq0cOeLDDNti0uGL1f1f5H8PrDBzf2c7g/MTfGqvFz2 Bk3eTb6oH+rELpkqDq+VSqSpaYZnXo9sbxiNSMO9Dgi0H4wbv/VLPwXwdvLmDUoJwuSQ QoLneF/TDeQW9fKClsDi+39P6cuMfLARDMhXEX0DOBW9JZB0SEZvhMsOBu2TTYX8j+cd AClRURvJvrQf3b9SPDsYsCu69I/uFLpoiP34KrRDNk0KKXpHNggkXE7iMBU1bwSiP4De /FqQ== 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=G9CFx98eP3xmiQ/3eLKrEJYvujs9i0LHmB65hqhU+kE=; b=qEwJv39rHRJ0UuPmYj/2ITd1xc7ijd6nqHs37hOKrxrJ08sjCuQHv4G1FOqN2EU0jk ZVWSEclr876xQ4YmJzfmBm+putAHbvonOnMfvgS7qE68/U5xpOYExiGEkCoIy+q5cDHc AIm5888nOfBRNsiQ4DebHWykQvGx8VjFcOspVZgkB7g9KPARShD8E3nB9WIrEWchlStI Xqb6ukB3ED/3P8Peq99QG+tcZQkuKCNl7Ih4Oy7u8QCEZmbzztohg1T/mWGfo9Zw5XLu LAnqniQu8bXuS3DhGeFG2uAtMWOAHqVY4ahnU+UbT6+2985WNfDsts70jiUXbWo0LdEt 19LQ== 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 e8-v6si16858533plb.83.2018.08.14.10.28.50; Tue, 14 Aug 2018 10:29:05 -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 S2388662AbeHNUPQ (ORCPT + 99 others); Tue, 14 Aug 2018 16:15:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52410 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388032AbeHNUPP (ORCPT ); Tue, 14 Aug 2018 16:15:15 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 01F3F40B; Tue, 14 Aug 2018 17:27:08 +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.18 64/79] x86/irq: Demote irq_cpustat_t::__softirq_pending to u16 Date: Tue, 14 Aug 2018 19:17:23 +0200 Message-Id: <20180814171340.478339964@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814171336.799314117@linuxfoundation.org> References: <20180814171336.799314117@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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicolai Stange 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 */