Received: by 10.223.185.116 with SMTP id b49csp6435910wrg; Wed, 28 Feb 2018 09:21:02 -0800 (PST) X-Google-Smtp-Source: AH8x2259MMh0ukA34opu0dAHKfP2tMfbDHntXBhZsPXKHNR0yLv5WgrwKdl9IPRqGSDPI9LMd9TD X-Received: by 10.101.71.202 with SMTP id f10mr14573941pgs.91.1519838462482; Wed, 28 Feb 2018 09:21:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519838462; cv=none; d=google.com; s=arc-20160816; b=da697QC8b/7+ibY61FZ5VOJe5GwnokkQiW8v3rDNvN9Er7asob2Csscv0ukEcQuVHP XYhvtAszHWGdKlCekwXyVv3TcYKDZtPvbRierDf+D+AwnJXXgAtz8p6NQsO9tD36C1Px t8ZviadUBO8nb/ytJpoibgFhiGebdeo/B1gL84VECukvWifkYjHVNac4qJrZRMulfcjn eC/aoK4W4WwY+XYStGEjwaMRHWKHS36shRVjikUODVjKptApOS6LBOIkOXKFIFkdIRSh 2X/a07rJJwCbgZJl/Npw3IRzKYx9W7k3yPWL/1CYv/w6oht+pF0fRTv9QSA19Nsg5ay8 z94A== 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:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=gGyEo7Bq5n7mqmjE+QKoJv+4roh0rVwdgxKOlhW6esA=; b=H7EeSxS33RSFwzwQdr+V05GN9KdX6dDSjqfEtOpm7Tk1Kbg0LBqN4l6V3i0y6P6/mY 1PthaDZXUd/VRUVvuVFwyMbdoUXAleqGx0FPdLoGez90LD3UwJ47dYf6nO46h0ogoqgk MwpMbxHBbDjxlG5X8+cWgrXso1/dxGmTSb/AdR1UkW4sbIgc1dEyuo931gK0NqetKEdB LWIv+iDqt5rZ8OkBKQ/KyZtVuxthWtHjRM7S3EgZx4bSLpsiZwkDnq04b1MtkWd1fEfU +OrHE+Und7VX4IwqciyWNBtkaPLFO02NLS25IIDPGcVtUyVDjpGkgGpv6gDuh2twPS2Y SeQQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b65si1480009pfk.283.2018.02.28.09.20.46; Wed, 28 Feb 2018 09:21:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933337AbeB1RT2 (ORCPT + 99 others); Wed, 28 Feb 2018 12:19:28 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:49142 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932947AbeB1RTZ (ORCPT ); Wed, 28 Feb 2018 12:19:25 -0500 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1er5KS-0002Uv-O7; Wed, 28 Feb 2018 18:15:44 +0100 Date: Wed, 28 Feb 2018 18:19:21 +0100 (CET) From: Thomas Gleixner To: Vitaly Kuznetsov cc: kvm@vger.kernel.org, x86@kernel.org, Paolo Bonzini , =?ISO-8859-2?Q?Radim_Kr=E8m=E1=F8?= , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , Mohammed Gamal , Cathy Avery , Bandan Das , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/5] Enlightened VMCS support for KVM on Hyper-V In-Reply-To: <20180226171121.18974-1-vkuznets@redhat.com> Message-ID: References: <20180226171121.18974-1-vkuznets@redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Feb 2018, Vitaly Kuznetsov wrote: For the non KVM pats of this series: Acked-by: Thomas Gleixner > Changes since v1: > - The only comment I got for v1 was from kbuild test robot. The issue > was addressed by moving HV_X64_ENLIGHTENED_VMCS_RECOMMENDED definition > to PATCH2. > - Rebased to current kvm/queue. > > When running nested KVM on Hyper-V it's possible to use so called > 'Enlightened VMCS' and do normal memory reads/writes instead of > doing VMWRITE/VMREAD instructions. In addition, clean field mask > provides a huge room for optimization on L0's side. > > Tight CPUID loop test shows significant speedup (current kvm/queue on > E5-2667 v4 @ 3.20GHz): > Before: 20766 cycles > After: 8912 cycles > > The series is based on current kvm/queue tree. > > Ladi Prosek (1): > x86/kvm: rename HV_X64_MSR_APIC_ASSIST_PAGE to > HV_X64_MSR_VP_ASSIST_PAGE > > Vitaly Kuznetsov (4): > x86/hyper-v: allocate and use Virtual Processor Assist Pages > x86/hyper-v: define struct hv_enlightened_vmcs and clean field bits > x86/hyper-v: detect nested features > x86/kvm: use Enlightened VMCS when running on Hyper-V > > arch/x86/hyperv/hv_init.c | 33 +++ > arch/x86/include/asm/mshyperv.h | 12 + > arch/x86/include/uapi/asm/hyperv.h | 223 ++++++++++++++- > arch/x86/kernel/cpu/mshyperv.c | 3 + > arch/x86/kvm/hyperv.c | 8 +- > arch/x86/kvm/lapic.h | 2 +- > arch/x86/kvm/vmx.c | 561 ++++++++++++++++++++++++++++++++++++- > arch/x86/kvm/x86.c | 2 +- > 8 files changed, 825 insertions(+), 19 deletions(-) > > -- > 2.14.3 > >