From mboxrd@z Thu Jan 1 00:00:00 1970 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 B2AD5ECAAD8 for ; Wed, 21 Sep 2022 16:25:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbiIUQZs (ORCPT ); Wed, 21 Sep 2022 12:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbiIUQZU (ORCPT ); Wed, 21 Sep 2022 12:25:20 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51AAEB277B; Wed, 21 Sep 2022 09:08:11 -0700 (PDT) Received: from zn.tnic (p200300ea9733e77f329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e77f: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 7F05D1EC04E4; Wed, 21 Sep 2022 18:06:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1663776398; 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=OiOyemOYE7YQPB2li6S2lfuxJt+qSMzE4RjxoZKsaMY=; b=GYdfpiX0cNttTHDXgLEWPxBJETS7tIOMadrfr9fyrJCUY4U+YnvMadOo8vxXR8GyLHDLMa A7r4HHtbUDw3chb8eXRtMtO0+GmHvAQCPwuzgNFolRZ7Qrz7ZXdiDG8Y8LssooML+S6Lv5 KbDwFitSF5kzP5nlFTVkBs+rHxV6La4= Date: Wed, 21 Sep 2022 18:06:34 +0200 From: Borislav Petkov To: Jim Mattson Cc: Sean Christopherson , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v2 0/3] KVM: EFER.LMSLE cleanup Message-ID: References: <20220920205922.1564814-1-jmattson@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Wed, Sep 21, 2022 at 08:11:29AM -0700, Jim Mattson wrote: > Yes, after the revert, KVM will treat the bit as reserved, and it will > synthesize a #GP, *in violation of the architectural specification.* Architectural, schmarchitectural... Intel hasn't implemented it so meh. > KVM can't just decide willy nilly to reserve arbitrary bits. If it is > in violation of AMD's architectural specification, the virtual CPU is > defective. Grrr, after your revert that this bit was *only* reserved and nothing else to KVM. Like every other reserved bit in EFER. Yeah, yeah, AMD specified it as architectural but Intel didn't implement it so there's this thing on paper and there's reality... Anyway, enough about this - we're on the same page. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette