Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 27 Jul 2018 07:46:00 -0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fixRm-00027V-IV for speck@linutronix.de; Fri, 27 Jul 2018 09:45:59 +0200 Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fixRi-0001rz-L3 for speck@linutronix.de; Fri, 27 Jul 2018 07:45:55 +0000 Date: Fri, 27 Jul 2018 09:45:51 +0200 From: Peter Zijlstra Subject: [MODERATED] Re: [RFC PATCH 4/6] kvm: handle host mode irqs 4 Message-ID: <20180727074551.GX2494@hirez.programming.kicks-ass.net> References: <6815cf025aa41954f911a1e76c2415035307b00f.1532339695.git.nstange@suse.de> <20180724152150.GQ2494@hirez.programming.kicks-ass.net> <87r2jrv8rn.fsf_-_@suse.de> MIME-Version: 1.0 In-Reply-To: <87r2jrv8rn.fsf_-_@suse.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Wed, Jul 25, 2018 at 01:45:32PM +0200, speck for Nicolai Stange wrote: > So if nobody objects, I'll go with what Paolo proposed at [1]: replace > the 'kernel_mode_irq_gen' counter with a latch flag and set that for any > irq (but NMIs for a start). Well, the reason I suggested the other counters, is to avoid adding yet another dirty cacheline to IRQs. Since we're already touching those fields for most interrupts anyway.. might as well extend them to cover what we need instead of adding more dirty lines.