Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp487477imm; Wed, 20 Jun 2018 01:29:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI0lERmFbJrDWyLshBk0NOhl+9GoclgbFCDAv74cdEqyA+1jLpUr1LMDESWH/GyVli9Qd6q X-Received: by 2002:a17:902:7009:: with SMTP id y9-v6mr22489237plk.217.1529483340839; Wed, 20 Jun 2018 01:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529483340; cv=none; d=google.com; s=arc-20160816; b=FO0MRgIs8e6Us0sJx8a1cdWlbcnmmrcgHnr5vTaXCe/HFZCwDkNzi37XwThQov3RJP SGKB7+bWhrchdjkxIq4alKggvlltDYJacyZlYExjpiOIJyYBY8a8ggSfVuAsxDU1cAjE rSwhZFyrWMLP7Bak+xeuiF2cngM5INMe2mI+A5Osz16ozEk9J3c0jCYmsLVfNCAT5DJG Tg64TNIu0ELpYWRXVW2Dl8DsVRsBvynHejuPJ1JHTnFjDy26K238mC3Qx8/tx/gLnmsO ltOvdjB6k67VldS+GpqxcNGMCmSKRDupJpg/swzo2Oj+NYMQzhjSeYny2TvuTeCIvQgT I6Dg== 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=gQNm3aAxlD46slddW0YyDWCOs76IFhaALD5fqy7Bwp0=; b=VV1fyeTjryFHi1CFDymXP1e7cUbg9AJSUz1zlCBDUAt1j+wFRYnmfQeKDJuTCS17V2 0c8iEkr0IePetU33ahnE9vfFDRATgABmMEXCIPoajlzCsKMAkWcABAx8daHiv3YnvvRh Ann83OeLTztkBuTGKj9CqdiZBkSWU1k63Uhg7nOFWCsV/00L/iLQvnRhwN5oQMq0TotM boC6eE+OfXKTonctRZY1LsNthIlmGiOfeIMeoyf60cVCjhJOVXcn4PibiwpH4oMxEYCp cBSa1xDaMCOfE1X+/NthvRC1U6XgjCRwhXV7hNEMbm9S5p7gZdozYimyEOi93M5OjYTW M+Mw== 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 l80-v6si1904944pfj.188.2018.06.20.01.28.37; Wed, 20 Jun 2018 01:29:00 -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; 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 S1754023AbeFTI11 (ORCPT + 99 others); Wed, 20 Jun 2018 04:27:27 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38692 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751327AbeFTI1Z (ORCPT ); Wed, 20 Jun 2018 04:27:25 -0400 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 73DD08790A; Wed, 20 Jun 2018 08:27:24 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CAC0F2156880; Wed, 20 Jun 2018 08:27:22 +0000 (UTC) From: Vitaly Kuznetsov To: KY Srinivasan Cc: "Michael Kelley \(EOSG\)" , "x86\@kernel.org" , "devel\@linuxdriverproject.org" , "linux-kernel\@vger.kernel.org" , Haiyang Zhang , Stephen Hemminger , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Tianyu Lan Subject: Re: [PATCH] x86/hyper-v: use cheaper HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} hypercalls when possible References: <20180615163010.20381-1-vkuznets@redhat.com> Date: Wed, 20 Jun 2018 10:27:21 +0200 In-Reply-To: (KY Srinivasan's message of "Tue, 19 Jun 2018 18:20:36 +0000") Message-ID: <87po0lkgly.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.1]); Wed, 20 Jun 2018 08:27:24 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 20 Jun 2018 08:27:24 +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 KY Srinivasan writes: >> -----Original Message----- >> From: Michael Kelley (EOSG) >> Sent: Tuesday, June 19, 2018 10:57 AM >> To: Vitaly Kuznetsov ; x86@kernel.org >> Cc: devel@linuxdriverproject.org; linux-kernel@vger.kernel.org; KY >> Srinivasan ; Haiyang Zhang >> ; Stephen Hemminger >> ; Thomas Gleixner ; Ingo >> Molnar ; H. Peter Anvin ; Tianyu Lan >> >> Subject: RE: [PATCH] x86/hyper-v: use cheaper >> HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} hypercalls when possible >> >> ... >>> >> This is a good idea. We should probably do the same with the hypercalls for >> sending >> IPIs -- try the simpler version first and move to the more complex _EX >> version only >> if necessary. > I am not sure if this would work correctly. When I was developing the IPI enlightenment, > what I remember was that the guest is expected to use the API recommended by the Hypervisor. > I was under the same impression when I implemented PV TLB flush. Turns out HV_X64_EX_PROCESSOR_MASKS_RECOMMENDED is a misnomer or at least Windows treats it as HV_X64_EX_PROCESSOR_MASKS_AVAILABLE instead using only when needed. My guess would be that the situation with IPI is the same. In any case I can try to implement Hyper-V style PV IPIs for Windows in KVM and we'll see how Windows uses these hypercalls :-) -- Vitaly