Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280AbbFEHN3 (ORCPT ); Fri, 5 Jun 2015 03:13:29 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:36728 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbbFEHN1 (ORCPT ); Fri, 5 Jun 2015 03:13:27 -0400 Date: Fri, 5 Jun 2015 09:13:20 +0200 From: Ingo Molnar To: Rusty Russell Cc: "H. Peter Anvin" , Andrew Cooper , Xen-devel , David Vrabel , Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org, Konrad Rzeszutek Wilk , Boris Ostrovsky , lguest@lists.ozlabs.org, stable@vger.kernel.org Subject: Re: [PATCH] x86/cpu: Fix SMAP check in PVOPS environments Message-ID: <20150605071319.GA20449@gmail.com> References: <1433323874-6927-1-git-send-email-andrew.cooper3@citrix.com> <556FF270.5060306@zytor.com> <5570131C.1000704@citrix.com> <873827uu2i.fsf@rustcorp.com.au> <5570B51F.4060908@zytor.com> <87lhfyuaiu.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lhfyuaiu.fsf@rustcorp.com.au> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 835 Lines: 23 * Rusty Russell wrote: > As the comment in arch/x86/include/asm/paravirt_types.h says: > > * Get/set interrupt state. save_fl and restore_fl are only > * expected to use X86_EFLAGS_IF; all other bits > * returned from save_fl are undefined, and may be ignored by > * restore_fl. There should be no 'may' about this: under CONFIG_PARAVIRT_DEBUG=y the reminder of the flags should be cleared (or all bits should be set: that will instantly crash if restored verbatim), so that we trip up generic code that relies on non-IF restoration? Thanks, Ingo -- 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/