Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752069AbeAPMFf (ORCPT + 1 other); Tue, 16 Jan 2018 07:05:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39494 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbeAPMFd (ORCPT ); Tue, 16 Jan 2018 07:05:33 -0500 From: Vitaly Kuznetsov To: Wanpeng Li Cc: kvm , "the arch\/x86 maintainers" , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley \(EOSG\)" , Mohammed Gamal , Cathy Avery , Bandan Das , linux-kernel@vger.kernel.org Subject: Re: [RFC 0/6] Enlightened VMCS support for KVM on Hyper-V References: <20180115173105.31845-1-vkuznets@redhat.com> Date: Tue, 16 Jan 2018 13:05:26 +0100 In-Reply-To: (Wanpeng Li's message of "Tue, 16 Jan 2018 09:21:04 +0800") Message-ID: <87inc2huux.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-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 16 Jan 2018 12:05:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Wanpeng Li writes: > 2018-01-16 1:30 GMT+08:00 Vitaly Kuznetsov : >> Early RFC. I'll refer to this patchset in my DevConf/FOSDEM >> presentations. >> >> 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. Tests show that this speeds up >> tight CPUID loop almost 3 times: >> >> Before: >> ./cpuid_tight >> 20459 >> >> After: >> ./cpuid_tight >> 7698 > > Maybe you can apply a similar idea to kvm nested on kvm. > Yes we can. Basically, that would mean directly accessing 'struct vmcs12' from L1 hypervisor. -- Vitaly