Received: by 10.223.185.116 with SMTP id b49csp3791703wrg; Mon, 19 Feb 2018 06:08:20 -0800 (PST) X-Google-Smtp-Source: AH8x224pLg29ZIgm2oZzJVTEgwB06tYzXx+wkjGZpYXtLI4/7zUS5T/nYL1bpr300gpXQ9+db5rg X-Received: by 2002:a17:902:6b03:: with SMTP id o3-v6mr14808973plk.13.1519049300024; Mon, 19 Feb 2018 06:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519049299; cv=none; d=google.com; s=arc-20160816; b=KRXTZT9LnoSZntduRelzmQ3tg1UhrVw64Pd+dRypA1jzDHZEc7rZkiO33txFmBNpNf m74bVi0wcgRpJbXnP0OFAcofwGN/aaGMuyKuf8QfhxJkTuYIsnfQp4+qEHVXFJxRrqXz uEdytyYpFCMWh2E464/NY/xe+c83UOgNrmG5Eq8WTQgWciVowi9dNMjW6XeZuLo4txZJ vuM54o6jrBjiVMSJ5XAhwtPRHfOBcQiE8BfveLJ9EFvLEivsZsGEIA0GxncxZXzSLVlF UJtxm6i4dOxSgKzkKUJ1VwRTyut0ya9ZelAQsFHgKDrY1cq7LstGPCJ7QiI0N3XdtU3h nrRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=zmXUSjRKdk2Oh3GAHPf+Xs4J9ivVcqzbLqt99MIsLEY=; b=kPToQ0wqoOIuW98Cr2slXP3y0WE0kej+L7Ht4o+6kps0aJne9K5cTmwNRc6EAub55d ZgA1G+NmsjI+nCHjbxA1JlhX3lJuFH1yGBeMYO5ZCIAazYloBcUs+VR0fSRV+/99UfM5 57PH3U1FEuOsngGygU3Am3iJmTvvI5MBcb72jhoTptLVF/pL1ARkpNjwmW5iEEn9RV1Q +lRWbtU993UiJkdwNAV491L02+WIkev9PYdtXb4HLqcHy3y8KH7VlyaLz98GLTBCJ+fq kIe/PvmD72ZaGHVmeiFERAucxK7Al1NZu5w3pN4ZqXiG4UAJBr7RHPgG08juZaOYnyFJ +Dqg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d123si1873508pfa.6.2018.02.19.06.08.05; Mon, 19 Feb 2018 06:08:19 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752712AbeBSOHR (ORCPT + 99 others); Mon, 19 Feb 2018 09:07:17 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56752 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750998AbeBSOHP (ORCPT ); Mon, 19 Feb 2018 09:07:15 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 54F937D85D; Mon, 19 Feb 2018 14:07:15 +0000 (UTC) Received: from [10.36.116.114] (ovpn-116-114.ams2.redhat.com [10.36.116.114]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B97342024CA6; Mon, 19 Feb 2018 14:07:13 +0000 (UTC) Subject: Re: [PATCH 7/9] KVM/VMX: Emulate MSR_IA32_ARCH_CAPABILITIES To: David Woodhouse , Jim Mattson Cc: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , LKML , kvm list , KarimAllah Ahmed , Greg Kroah-Hartman , stable@vger.kernel.org References: <1517938181-15317-1-git-send-email-dwmw@amazon.co.uk> <1517938181-15317-8-git-send-email-dwmw@amazon.co.uk> <4be4e462-61be-53a9-b0e1-3508466d1645@redhat.com> <1519047329.7876.64.camel@infradead.org> From: Paolo Bonzini Message-ID: <6ef598e6-de89-abdb-f157-dc12bb24ef9d@redhat.com> Date: Mon, 19 Feb 2018 15:07:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519047329.7876.64.camel@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Mon, 19 Feb 2018 14:07:15 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Mon, 19 Feb 2018 14:07:15 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/2018 14:35, David Woodhouse wrote: > On Mon, 2018-02-19 at 14:10 +0100, Paolo Bonzini wrote: >>> Hardware seems like a reasonable place to get the default value (cf. >>> the VMX capability MSRs). >> >> There are some differences: >> >> - a zero value for ARCH_CAPABILITIES should be safe, while a zero value >> for VMX capabilities doesn't really make sense.  On the contrary, a >> nonzero value for ARCH_CAPABILITIES is not safe across live migration. > > Any VMM which is going to support live migration surely needs to pay at > least a small amount of attention to the features it exposes? Exposing > the ARCH_CAPABILITIES CPUID bit without actually looking at the > contents of the associated MSR which that bit advertises would be... a > little strange, would it not?  I think what we should do is simply backport Tom Lendacky's series to 4.14 and 4.9 ASAP, and add ARCH_CAPABILITIES support there. Then the question of the default becomes moot, more or less. Paolo > I don't see why we care so much about the *default* value, in that > context.