Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 06 Jul 2018 18:07:48 -0000 Received: from mga07.intel.com ([134.134.136.100]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fbV90-0002E8-8u for speck@linutronix.de; Fri, 06 Jul 2018 20:07:47 +0200 Date: Fri, 6 Jul 2018 11:07:42 -0700 From: Andi Kleen Subject: [MODERATED] Re: Interrupts policy for SMT Message-ID: <20180706180742.GB25550@tassilo.jf.intel.com> References: <20180705230732.GJ17013@tassilo.jf.intel.com> <1e833994-40b4-babe-d941-ac07d979a944@redhat.com> <20180706164635.GA25550@tassilo.jf.intel.com> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Fri, Jul 06, 2018 at 07:13:32PM +0200, speck for Paolo Bonzini wrote: > On 06/07/2018 18:46, speck for Andi Kleen wrote: > >> Of course it is impossible to handle userspace, but the same handwavy > >> justifications used for (3) apply even more there, since userspace > >> should hardly run on a properly configured guest. > > What do you mean? user space on the host would be handled by > > the scheduler in this case (e.g. exclusive cpuset) > > I mean KVM userspace (whoever invokes the KVM_RUN ioctl). Ok I assume there's nothing sensitive in there. But haven't checked any source. > An interrupt count has to be updated during interrupts, and also > retrieved and compared in KVM. Why not reuse the same flag you're adding? My flag is not sticky, so it wouldn't be the same flag I guess. -Andi