Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3553088img; Mon, 25 Mar 2019 12:39:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVxs6sL4auAby0M6Nl3TA0xy3ONbHv3rauqzhwnnpY62SV/HfCTLkGyzwHk5VHh3iqFtgl X-Received: by 2002:a17:902:1c9:: with SMTP id b67mr26201946plb.176.1553542781125; Mon, 25 Mar 2019 12:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553542781; cv=none; d=google.com; s=arc-20160816; b=EZTvlLr4HasfcgNI+vj6RSKw2j8cU5KxtxCog7vQwspmc9akrUIyrE+qHhbtGoVTeB gW5poTWaAA0p9JjHEgQFwpT9v2lyNfbG81K391AJiPqhiHzWxiBOlimBlLdFox5imqmE BCxGLN7C7wvn32KOzB4l7xoYa6mUaz0vbsbCUrSovOm74Sh9cnkhCS54g8za8y25vsDl wYgmxhfSrYaXCVRfFYHb+SwRgn5ZtrM4Q1YnUd4wtykVhLWIPOmWA3TCWghEkoCS3YKL IL8HRK11yQdRVtdPK6yET5oL73LVrn4k8eslBV2is6+2GH0jREiTrK05pisEAJyZedZ9 jXzQ== 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=94EUk/iFm63hrEEwsiCrF2fkINeVQIA4lACwZXxMYzM=; b=HKYOO0FJt2ZkR+5ir/MD7OW/suy4TwOFQq3SK+ugO3jrQiLnYtdplKMFSFcI5SstBY bxtCp1ALBfnVTgJS3eZ9XH+YFYFnfbIgM5FCd7dqSYpf4alhxPyOEBO6juKNcscRJSLO Ci+9q4IJM/BvBtTAlYg9ZpHOlZQRckW9+sQSUv3Uq469PgziSpli43NVGsKXVS44KozL k4Fkd72hEecTEbEP34TCKUahGoJAFgZKMNSH4pOBLFoz5vZmd39PLKBi6NIlHl83zlpE R+ve8ORocw4YCo2NAPFIVsOxE5+6/tABWNcK/SQDw4r2S9dofReCJ7UfDBOmiM/eFxeJ YSCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=aWxqp556; 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 gn6si3915609plb.167.2019.03.25.12.39.25; Mon, 25 Mar 2019 12:39:41 -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=aWxqp556; 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 S1729761AbfCYTir (ORCPT + 99 others); Mon, 25 Mar 2019 15:38:47 -0400 Received: from mail.skyhub.de ([5.9.137.197]:57814 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728912AbfCYTir (ORCPT ); Mon, 25 Mar 2019 15:38:47 -0400 Received: from zn.tnic (p200300EC2F098000329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:8000: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 CA41B1EC058B; Mon, 25 Mar 2019 20:38:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1553542726; 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=94EUk/iFm63hrEEwsiCrF2fkINeVQIA4lACwZXxMYzM=; b=aWxqp556RIETfEqbrIcBXPXYMfMisV+2NZY64f2JOX9K0LUX+zvoVBWeqCZ3qsqKFqRLHP xFd2dr1N0GtDtLCNEsrSuhPIw/qJj4OVqKM7zYD++1Wsx/A1B6+t67xRXyIsuRVouPk/Fr q41mIvqxFrNzEQz6OxbeF+84Ac1AtDE= Date: Mon, 25 Mar 2019 20:38:49 +0100 From: Borislav Petkov To: Sean Christopherson Cc: KVM , Joerg Roedel , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Tom Lendacky , Tony Luck , Yazen Ghannam , LKML Subject: Re: [PATCH 1/2] kvm/x86: Move MSR_K7_HWCR to svm.c Message-ID: <20190325193821.GS12016@zn.tnic> References: <20190325171649.7311-1-bp@alien8.de> <20190325171649.7311-2-bp@alien8.de> <20190325182133.GG31069@linux.intel.com> <20190325183909.GQ12016@zn.tnic> <20190325192111.GH31069@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190325192111.GH31069@linux.intel.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, Mar 25, 2019 at 12:21:11PM -0700, Sean Christopherson wrote: > Generally speaking, the goal is to support cross-vendor VMs without having > to modify the guest kernel, i.e. exact emulation is out of scope. This > means "emulating" cross-vendor MSRs that the guest expects to exist to the > point where the guest won't explode, e.g. in the case of MSR_K7_HWCR, Linux > expects the MSR to exist on all AMD platforms and AFAICT will die during > boot if it doesn't. > > The rule of thumb for "what MSRs can a guest reasonably expect to exist" > is fluid. Ok, I'll keep it in the common MSR accessors in the next version. Thx for confirming what I was suspecting. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.