Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4802952ooa; Tue, 14 Aug 2018 10:45:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzUYmLoMK3mSNnfa0qnKlb3JR+UaB9PHDN0VSfkUMztM5fZmVZod/s5qX2EaKcG2JU0DLN7 X-Received: by 2002:a63:1644:: with SMTP id 4-v6mr22364243pgw.103.1534268744773; Tue, 14 Aug 2018 10:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534268744; cv=none; d=google.com; s=arc-20160816; b=bN+w89iDvMGEO7hzcX8jatdp1e1K8tlxxfdO8X/jO1CfH5jw/AknNBXAjl5dNeHcW2 mGNdZmdyYppYLggxrhFCYA4oh4MsWl9X7gL4hzPwgozlDF3WOVUwIdGTgKe166JKuSdE qN4F5V2Wnh2Gh8iJkmfPnsC0cddqgwvoYavhk1fzsHrZZ1ThMSRcnDQ2kOHgs2LlkZWw c9W9AMStsyfFMVtnkLoV0ivV7x9ImNNi0W1LnigLYxk7sUErkiQbg6uu1f2upSzdmmBo 9z35X9z1QBc1ZpJ9xJ7r2LvyxODqKQHhWP4aKDo9KCjJrG4IyHnBaUYHBGRm+tSGJMsR 8nsg== 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=TacBdsEThFgyXhObsc/CvVMSf4Qy1v0TM/qKzNuOolo=; b=jySFwYV3axlKd9lxgZ6JKor+OyYOWTLfxBTg+W2Mvf/NNc5rN7X+r/4I64zruN3es6 fmo35Z9c/Mxh5GZDs0vwf7wRFhNJ4Nlt1g/pYKZDnmUt3jID1/mRbPlHVwS64z9xapD5 5LE3mA91INu5+dOs7HdI75aRd9mdb6BiPrydp6GAzsGz4TGODicXKwcGTkei4EuzHnCw XfT/ZLuMUc6+2iwtNXCxM/lulC/dqcloZFqcfi/Zg4mJxH8Zlsn2bOmdZaSkDwIvYFSo MeRfBUpJwauj+nwDyfP1weSkeQGQyG5ktb7r092wDlMAeM7o8jGHZZWWx9oz4+Pgzrd+ hGIQ== 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 7-v6si21794921pgf.687.2018.08.14.10.45.29; Tue, 14 Aug 2018 10:45:44 -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 S2390699AbeHNUcR (ORCPT + 99 others); Tue, 14 Aug 2018 16:32:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59946 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728642AbeHNUcQ (ORCPT ); Tue, 14 Aug 2018 16:32:16 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 875D640B; Tue, 14 Aug 2018 17:44:04 +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 , David Woodhouse Subject: [PATCH 4.9 086/107] x86/irq: Demote irq_cpustat_t::__softirq_pending to u16 Date: Tue, 14 Aug 2018 19:17:49 +0200 Message-Id: <20180814171526.043098005@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814171520.883143803@linuxfoundation.org> References: <20180814171520.883143803@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.9-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: David Woodhouse 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 @@ -5,7 +5,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 */