From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x226tUQf4dZ+oO9Wrp4G+Rq6xXUhXTxAKEnaE1kbBqICKg/8cAtnFJ9Oo4UeUu4yOwb/xzI/3 ARC-Seal: i=1; a=rsa-sha256; t=1516881024; cv=none; d=google.com; s=arc-20160816; b=yPyvoH8Z7bp9rsN5AdCED3hNxcr129Gv39gl6JknZlL8LK0TG3+CHvpUTE503rLDXN lb07k6nVUVS5hl6X1hOztBiKwo/F1di/uYNlMDyZw0ZydmPYWu5G+zJus9ESUWCb9rcT cpXKMXnKFtMY/pg36cBhHcJ/k0XhFtHoQ9j1nUVurxj0L8rYDMW+bc13tSZ6uslEs9bE BvoAXsDr1jWaROzGrztc06rMaRYUshkpM+JyTja8UkIcfozHKKAIasVNk9pLJgQNOs77 bHMKwygv/K3K/vYqxSVKXF6QW+UERdHMVTEGylbm7huAkgS2myWI9DbaJZ4Nh0uFJg6k ECHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:arc-authentication-results; bh=fuHWdJc12mM8FjAMXsT/uJ/viPK2jxKsKeNQ6tMzp9I=; b=BrMtP4u500jJwMVzalrx5/rT8Rde6cKJR6GI0uxSrepok/zp5na2JvvfTR+38I/hW+ vA5mXbAwmLi03UM04iqnZB4dvAefje+Uo9FcnTvDr5GMRtm9PLiQe0KWmM8a0amjsmP+ Bo4U9QNz91FbBrb3cv7F6PZb5JvezTbPl2/Ps3INFsI5JM6kazUziSBWjD1tHJ7a2u5K oPN1VHNKABVxdWIIFd6QAIgA2ygnW1dg4ufJvq2XeEl+MS9+kQYHEjjXBZPH3X0LxCGw /Njt3U/Qd61AkrPn6LJVk6zWH7k+1WWAOoGBh0zKodFdCSICHp7Cu6BlsFyU7W/C379M e1SA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of bp@alien8.de designates 2a01:4f8:190:11c2::b:1457 as permitted sender) smtp.mailfrom=bp@alien8.de Authentication-Results: mx.google.com; spf=pass (google.com: domain of bp@alien8.de designates 2a01:4f8:190:11c2::b:1457 as permitted sender) smtp.mailfrom=bp@alien8.de Date: Thu, 25 Jan 2018 12:50:16 +0100 From: Borislav Petkov To: David Woodhouse Cc: arjan@linux.intel.com, tglx@linutronix.de, karahmed@amazon.de, x86@kernel.org, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, peterz@infradead.org, pbonzini@redhat.com, ak@linux.intel.com, torvalds@linux-foundation.org, gregkh@linux-foundation.org, dave.hansen@intel.com, gnomes@lxorguk.ukuu.org.uk, ashok.raj@intel.com, mingo@kernel.org Subject: Re: [PATCH v4 7/7] x86/speculation: Add basic IBPB (Indirect Branch Prediction Barrier) support Message-ID: <20180125115016.ov72ajqb6z7scdrc@pd.tnic> References: <1516872189-16577-1-git-send-email-dwmw@amazon.co.uk> <1516872189-16577-8-git-send-email-dwmw@amazon.co.uk> <20180125114127.5iw4vy56bb2cs5mr@pd.tnic> <1516880855.30244.78.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1516880855.30244.78.camel@infradead.org> User-Agent: NeoMutt/20170609 (1.8.3) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590556144645656370?= X-GMAIL-MSGID: =?utf-8?q?1590565036716761752?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On Thu, Jan 25, 2018 at 11:47:35AM +0000, David Woodhouse wrote: > I did already do the explicit clobbers now you reminded me how to do > them, but I elected not to use ASM_NO_INPUT_CLOBBER() because on > balance, losing the MSR_IA32_PRED_CMD / PRED_CMD_IBPB definitions and > having to hard-code the numbers was not so much of a win. and I'm thinking exactly the opposite: if an alternative can lose a bunch of inputs which don't change, then that's a good thing. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.