Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp21402yba; Mon, 1 Apr 2019 00:36:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxKfNwtRloTZp3qtTOWDsCgzu24pz2fKRLf9sUDJbb6VVL3Atm4vi0FxguwOk0ycaRIR3i X-Received: by 2002:a63:464c:: with SMTP id v12mr58776829pgk.431.1554104170540; Mon, 01 Apr 2019 00:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554104170; cv=none; d=google.com; s=arc-20160816; b=Z6LckrPc4OjKrZVDXFO7DF39Ntlz5ShuDXBnzkjZtgepiaP/sUwbdzGhDslCwSlQUk udP7m3iBkaha/0BF2nc1RJlx+f9yYKobYZQvwsWrGE0GMg4n2w+bnlRjPbr12uOiWw4u NbUBHIUovXrnINspjnSrQHYZ4Qs3tgu21gc3zToyKuC2IVbfs/33YouLA+bJFeyjPOT3 8BeVTizCx7Zv7Dx72JeWvPp40eDcwydpcD6cNe0I7FknMsM1qlbvihED7FcQ6QYtyYEX i4+bNBiHvG/t84UZ8J43MH/6evog3LdyIFWzo5wJw3wakz9oKQO6x8c8nax4TgASri5K ipJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hP9z8VlxNzLS3/m2BPGouN7sjj0YetwZbwiqw5sawM0=; b=S28GpXYRy5vDbnRWYMRMwslV9YKhfob40M2Gwdi93pkEypMlQ7ptgIXlew9xnepaBG v+5hoFndUsTRr+USJVb5ALvFUrDskdztsJ6NX7OaCiJ3wdck8ADUkSDjjW9nxxCazpsG snWrXeEPNqQnC+Mxyg3nMjIf9OAtauj6X2coRz125FLifcQkc/jKmcSICh5vBWPUyz2m 0FfLeiGl32BqRuYb4YZw0nh/rIcwxOPWGvtKd51HYnQ8dpL6geRwKquvgNRa+DiiLRyZ OxOsnsmsYeqyf52kXIOrM53/KaYtFIGjpnOsB20oToVPN8ls0cK+yFPvmJagAowg77xu TWAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=onhSgohJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l189si6353524pgd.291.2019.04.01.00.35.55; Mon, 01 Apr 2019 00:36:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=onhSgohJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731942AbfDAHd5 (ORCPT + 99 others); Mon, 1 Apr 2019 03:33:57 -0400 Received: from mail.skyhub.de ([5.9.137.197]:43622 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731769AbfDAHd5 (ORCPT ); Mon, 1 Apr 2019 03:33:57 -0400 Received: from zn.tnic (p200300EC2F148A00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2f14:8a00:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3FBC51EC0513; Mon, 1 Apr 2019 09:33:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1554104036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=hP9z8VlxNzLS3/m2BPGouN7sjj0YetwZbwiqw5sawM0=; b=onhSgohJfJAw4CFGo4egXt1hw1mJ0XJDLTTj1AWE5SaFWfvk+Re66fEWgF7KGGR3bDO/d2 GZjoy4N6EFp6NG5Ad6TxjI99CIIT8aDJGKMXx5evfbsxbqHI4OMqBQGPvh5cacdlrvV1lj IBdScFWEuxC8buPXz0Htp4FbVnIzUuk= Date: Mon, 1 Apr 2019 09:33:52 +0200 From: Borislav Petkov To: Paolo Bonzini Cc: LKML , Nadav Amit , Andy Lutomirski , Peter Zijlstra , "H. Peter Anvin" , Ingo Molnar , Joerg Roedel , kvm@vger.kernel.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , x86@kernel.org Subject: Re: [PATCH 3/5] x86/kvm: Convert some slow-path static_cpu_has() callers to boot_cpu_has() Message-ID: <20190401073352.GB28264@zn.tnic> References: <20190330112022.28888-1-bp@alien8.de> <20190330112022.28888-4-bp@alien8.de> <2f71cb35-46b2-9ed5-28b3-c6eb5e647b46@redhat.com> <20190331151248.GB15073@zn.tnic> <86dc0d5c-88af-dddc-4618-1a0a5a545e5f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <86dc0d5c-88af-dddc-4618-1a0a5a545e5f@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 01, 2019 at 09:24:06AM +0200, Paolo Bonzini wrote: > The MSR reads and writes are not done in the common case. Also, you > cannot really expect boot_cpu_data to be in L1 in these functions since > they run after the guest---or if they do, each L1 line you fill in with > host data is one line you "steal" from the guest. Ok, fair enough. I'll drop this patch. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.