Received: by 10.223.185.116 with SMTP id b49csp6460569wrg; Wed, 28 Feb 2018 09:45:22 -0800 (PST) X-Google-Smtp-Source: AG47ELu3uSNf9+TOnAJjXUrsn8C+B2LWYZV/yyrBUOTubQ7jj8Gkpq6LDA6EqZr/AgZecAxd4W6M X-Received: by 2002:a17:902:14e:: with SMTP id 72-v6mr797020plb.280.1519839922393; Wed, 28 Feb 2018 09:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519839922; cv=none; d=google.com; s=arc-20160816; b=DcxjQj+r0JNEvqO/caJj5CuUkVDWc+4KrjRl1lkip5DT5QrlgPwhZInoNb16bCNurp rqMbYCM2mqiihAv9Ccw6uuxc5GiGfE8ndElAoMMN4i9oCJbmJVPdpngs7xuPlrFoxEsq 4/dnk3fcOHh3VyIS6TLsbS2NpiaHiVIvQNHl+UAUMa7qxr9Hcnd/TVanncwtzpQWuZ1X aYaHOPwVJ4fWM779Xy5fno2BaOvhmAlMiwyHKrJC8VZK59980zCindhPgeZMzcmZ7o83 D3G+wgsrz3reFZGkFbFp1Op6D31eGjoudbgX7SOjCgHO8q8mU6WMDcFKkN6myVubjYON kwcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=nRyRJKljxCBilbMrqdFxxxqP0s+YA2iA1VIdlE6qZnU=; b=mvym6ETFlrG7wW0D+D6MSwSpqnekhuRVReqaDsFLbKntB4jJpKfQM4ZVIedljmYPwn RLl5liQxlAy6/wNHcAhbfcdJa6VmfJbsMWlku0rCbgYUrgHGyAEVvpQoICDB/Wkk7XcB Q4gEvGapEEDnR9h28Ke4xiY1oVptp3CUXfJAfn2wwNyqajdI4ct6QDXIp0PQ7y8R/OIZ iMTBJj5Xr3Vo81+Nfm3HilXxUJSx3qe+7vEUgnuFrodFwjzVO/g//cjJe3YC9J7RCEpa NSBgZnsy3R6U+frRaBvKSL+iYvM/p6D6sUu/uqnZtn4fiilSSYqcOvpHZUduHjZdY7Go PZkA== 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 a23si1507323pfg.137.2018.02.28.09.45.07; Wed, 28 Feb 2018 09:45:22 -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 S933696AbeB1RnJ (ORCPT + 99 others); Wed, 28 Feb 2018 12:43:09 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58040 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752647AbeB1RnH (ORCPT ); Wed, 28 Feb 2018 12:43:07 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7C1CB818AB13; Wed, 28 Feb 2018 17:43:06 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 02E412144B21; Wed, 28 Feb 2018 17:43:01 +0000 (UTC) From: Vitaly Kuznetsov To: Roman Kagan Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , "K. Y. Srinivasan" , "Michael Kelley \(EOSG\)" , "Denis V . Lunev" Subject: Re: [PATCH 1/3] x86/kvm/hyper-v: add reenlightenment MSRs support References: <20180228134401.6544-1-vkuznets@redhat.com> <20180228134401.6544-2-vkuznets@redhat.com> <20180228164822.GA12531@rkaganb.sw.ru> Date: Wed, 28 Feb 2018 18:43:00 +0100 In-Reply-To: <20180228164822.GA12531@rkaganb.sw.ru> (Roman Kagan's message of "Wed, 28 Feb 2018 19:48:22 +0300") Message-ID: <87efl5ggd7.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 28 Feb 2018 17:43:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 28 Feb 2018 17:43:06 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'vkuznets@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Roman Kagan writes: > On Wed, Feb 28, 2018 at 02:43:59PM +0100, Vitaly Kuznetsov wrote: >> Nested Hyper-V/Windows guest running on top of KVM will use TSC page >> clocksource in two cases: >> - L0 exposes invariant TSC (CPUID.80000007H:EDX[8]). >> - L0 provides Hyper-V Reenlightenment support (CPUID.40000003H:EAX[13]). >> >> Exposing invariant TSC effectively blocks migration to hosts with different >> TSC frequencies, > > I wonder if TSC scaling on the destination host doesn't allow to relax > this requirement? I don't see why it wouldn't, Skylake+ should be fine (but this, of course, will limit possible destination hosts to those supporting the feature -- even if no other CPU features are required). >> providing reenlightenment support will be needed when we >> start migrating nested workloads. >> >> Implement rudimentary support for reenlightenment MSRs. For now, these are >> just read/write MSRs with no effect. >> >> Signed-off-by: Vitaly Kuznetsov >> --- >> arch/x86/include/asm/kvm_host.h | 4 ++++ >> arch/x86/kvm/hyperv.c | 21 +++++++++++++++++++++ >> arch/x86/kvm/x86.c | 12 +++++++++++- >> 3 files changed, 36 insertions(+), 1 deletion(-) > > Reviewed-by: Roman Kagan Thanks! -- Vitaly