From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933033AbbI3WMI (ORCPT ); Wed, 30 Sep 2015 18:12:08 -0400 Received: from mail-ob0-f171.google.com ([209.85.214.171]:33193 "EHLO mail-ob0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932916AbbI3WMF (ORCPT ); Wed, 30 Sep 2015 18:12:05 -0400 MIME-Version: 1.0 In-Reply-To: References: <1443453446-7827-1-git-send-email-cmetcalf@ezchip.com> <1443453446-7827-8-git-send-email-cmetcalf@ezchip.com> <5609B7C0.3010807@ezchip.com> <560ACD6F.7060102@ezchip.com> <560C4CF4.9090601@ezchip.com> From: Andy Lutomirski Date: Wed, 30 Sep 2015 15:11:44 -0700 Message-ID: Subject: Re: [PATCH v7 07/11] arch/x86: enable task isolation functionality To: Thomas Gleixner Cc: Chris Metcalf , Gilad Ben Yossef , Steven Rostedt , Ingo Molnar , Peter Zijlstra , Andrew Morton , Rik van Riel , Tejun Heo , Frederic Weisbecker , "Paul E. McKenney" , Christoph Lameter , Viresh Kumar , Catalin Marinas , Will Deacon , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" , X86 ML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2015 at 3:02 PM, Thomas Gleixner wrote: > On Wed, 30 Sep 2015, Chris Metcalf wrote: >> So for now, if a task-isolation thread sets up a timer, >> they're screwed: so, don't do that. And it's really not part of >> the typical programming model for these kinds of userspace >> drivers anyway, so it's pretty reasonable to forbid it. > > There is a difference between forbidding it and looping for 10 minutes > in the kernel. I don't even like forbidding it. Setting timers seems like an entirely reasonable thing for even highly RT or isolated programs to do, although admittedly they can do it on a non-RT thread and then kick the RT thread when they're ready. Heck, even without the TSC deadline timer, the kernel could, in principle, support that use case by having whatever core is doing housekeeping keep kicking the can forward until it's time to IPI the isolated core because it needs to wake up. --Andy