From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753371AbZH3Lnh (ORCPT ); Sun, 30 Aug 2009 07:43:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753336AbZH3Lng (ORCPT ); Sun, 30 Aug 2009 07:43:36 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:64120 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753329AbZH3Lnf (ORCPT ); Sun, 30 Aug 2009 07:43:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=VGSyAeEgM7C5iZLDYQSvg8KT11EE9A5fHKQWruvdJMyzsI/s9g6lxEf/zOWmwB2zRJ fWXL53mbrcmC3VJSouD3neadKh58rG9ggFd9RFxyReFtG2Kti4TcF18oeKH+4EZp6jK2 sctgjeql3AYZpPCtuyzXG3OxSpDBMyPYZTXGU= Date: Sun, 30 Aug 2009 13:43:30 +0200 From: Borislav Petkov To: "H. Peter Anvin" Cc: Ingo Molnar , mingo@redhat.com, linux-kernel@vger.kernel.org, kjwinchester@gmail.com, tglx@linutronix.de, borislav.petkov@amd.com, linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/urgent] x86, AMD: Disable wrongly set X86_FEATURE_LAHF_LM CPUID bit Message-ID: <20090830114329.GA9038@liondog.tnic> Mail-Followup-To: Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , mingo@redhat.com, linux-kernel@vger.kernel.org, kjwinchester@gmail.com, tglx@linutronix.de, borislav.petkov@amd.com, linux-tip-commits@vger.kernel.org References: <1250251594-8348-2-git-send-email-borislav.petkov@amd.com> <20090816064132.GA16278@elte.hu> <20090816214934.GB7765@liondog.tnic> <4A8EDC02.8000508@zytor.com> <20090822163750.GA31631@liondog.tnic> <4A92F93F.8000502@zytor.com> <20090825055215.GA22595@liondog.tnic> <4A93884E.3000403@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4A93884E.3000403@zytor.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2009 at 11:44:30PM -0700, H. Peter Anvin wrote: > On 08/24/2009 10:52 PM, Borislav Petkov wrote: > > On Mon, Aug 24, 2009 at 01:34:07PM -0700, H. Peter Anvin wrote: > >> Looks reasonable... although part of me wonders if having a pointer to > >> an array containing the entire register file in and out is even better, > >> of if I'm just overengineering at this point. > > > > Hmm, let's have necessity determine that. I can only think of %edi being > > used as an input reg to rd/wrmsr beside %ecx but it could be very well > > that some other x86 hardware uses other regs too. Do we actually need > > all regs or a two should suffice? > > > > Hard to know. In theory we shouldn't need ESI and EDI either! > > As I said, I wouldn't have worried about it at all if it wasn't for > paravirt_ops turning these things into ABIs. Ok, here's what I could come up with. It seems to work (tested only on a Fam10h box), it should cover all our msr needs for now and alleviate the need for adding yet another paravirt_ops member. -- Regards/Gruss, Boris.