Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A26FC64EC7 for ; Tue, 28 Feb 2023 20:46:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbjB1UqF (ORCPT ); Tue, 28 Feb 2023 15:46:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjB1UqC (ORCPT ); Tue, 28 Feb 2023 15:46:02 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0640E34F5C; Tue, 28 Feb 2023 12:45:57 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (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 835F91EC0644; Tue, 28 Feb 2023 21:45:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1677617156; 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=pZ5ujFFiyZvH4VTsQ1GHyk/iP5I/yiecBmFPezox7xg=; b=YJEnHU+1zCBdkSMWsdvjUayZRS4AWms5LiIq1O6NdnY5Xc8C+7XSq5S6rMUkKa5vnXlSOd RYo6d/IrZu61/PJSKoeWo3IotuGfI3lL+CVekW6cexpBNVaX1GH+s5g7E0cy6nbNQ/TFAo TUVLxYBt34h3QaeusD3eycXTNc86Nq4= Date: Tue, 28 Feb 2023 21:45:56 +0100 From: Borislav Petkov To: Takahiro Itazuri Cc: dave.hansen@linux.intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, pbonzini@redhat.com, seanjc@google.com, tglx@linutronix.de, x86@kernel.org, zulinx86@gmail.com Subject: Re: [PATCH 0/2] KVM: x86: Propagate AMD-specific IBRS bits to guests Message-ID: References: <20230228194153.46995-1-itazur@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230228194153.46995-1-itazur@amazon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 28, 2023 at 07:41:53PM +0000, Takahiro Itazuri wrote: > It is true that the kernel does not use those bits at all, but any > codes could be run inside guests. So you mean we should stick *all* CPUID leafs in there just because anything can run in guests? What is the hypervisor then for? > One of examples is the following spectre/meltdown checker scipt used as > de facto standard. Really? Says who? $ grep -r . /sys/devices/system/cpu/vulnerabilities/ gives you all you need to know. And if something's missing, then I'm listening. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette