Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753803AbbBZNDM (ORCPT ); Thu, 26 Feb 2015 08:03:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41218 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753259AbbBZNDK (ORCPT ); Thu, 26 Feb 2015 08:03:10 -0500 Message-ID: <54EF196E.4090805@redhat.com> Date: Thu, 26 Feb 2015 14:02:38 +0100 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Scott Wood , Sebastian Andrzej Siewior CC: Alexander Graf , Bogdan Purcareata , linuxppc-dev@lists.ozlabs.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, mihai.caraman@freescale.com, Thomas Gleixner Subject: Re: [PATCH 0/2] powerpc/kvm: Enable running guests on RT Linux References: <1424251955-308-1-git-send-email-bogdan.purcareata@freescale.com> <54E73A6C.9080500@suse.de> <54E740E7.5090806@redhat.com> <54E74A8C.30802@linutronix.de> <1424734051.4698.17.camel@freescale.com> In-Reply-To: <1424734051.4698.17.camel@freescale.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 30 On 24/02/2015 00:27, Scott Wood wrote: > This isn't a host PIC driver. It's guest PIC emulation, some of which > is indeed not suitable for a rawlock (in particular, openpic_update_irq > which loops on the number of vcpus, with a loop body that calls > IRQ_check() which loops over all pending IRQs). The question is what behavior is wanted of code that isn't quite RT-ready. What is preferred, bugs or bad latency? If the answer is bad latency (which can be avoided simply by not running KVM on a RT kernel in production), patch 1 can be applied. If the answer is bugs, patch 1 is not upstream material. I myself prefer to have bad latency; if something takes a spinlock in atomic context, that spinlock should be raw. If it hurts (latency), don't do it (use the affected code). Paolo > The vcpu limits are a > temporary bandaid to avoid the worst latencies, but I'm still skeptical > about this being upstream material. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/