Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7627667imm; Thu, 28 Jun 2018 06:56:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcQTUX/ZNhSkd9q27u6O3aYd4gBHDCtBMcOJdzopmDnHhEC8Nm1enuUm4YPJ3nQr9tM0XUo X-Received: by 2002:a65:5d4c:: with SMTP id e12-v6mr1891544pgt.10.1530194209057; Thu, 28 Jun 2018 06:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530194209; cv=none; d=google.com; s=arc-20160816; b=h1CYYMEH9kZ9NncBSYjopQOAwRNv7a5lYjyFYaU4pHDVKBuXlpnp8HA/vck8rQQs/S rl8FLg1KOZyLdIOKKZEUFIjR6YCVOWzqm0BDvmqhur5jQnt/FzlBFYRwp2p84Ig7tGNi x7y2V+AU624ISuJvtZmmsSsOyWhRUfuaJ/01bsK7V2qPVQNoHdVnMZAlZM6aL8Q3fDIk 2QmJuclKxmFkqupsaqoWjU/VU+rcRINwBgaUTQBkyKSeUWAqcpYLl+0Q06ngKQvfKd5b U+AHDx5rrpOVgBPuoQpIHackks1Zsl4cJ+vnmWdMvPpdaTLqJNmQ22l1BIIlc1XTmsml pb+Q== 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:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=zHDtK9Csq3CkXPJmafvFdrAqE6YCwfUbsJB+Lp2A+Aw=; b=kNDhm/xI2asWF/L/BzqZN24dSsNKSwd17fWBxoMuT4Pwv+9TIVo9HVT/1DZlBJV8rF 5cS+eTvJ+QvKgRecRuEcijgMnGLpNdmBUx/YOkldQ8bKh6kVbqoc7U7jD4eWAMUqSnoV Q4PNAyzQv9JNxBh/MAX6l5zM1jx4ONkEiTUm3GSxq4ZoFVCBsv71EKNlogWEwR65oyc3 PMdN9pW9re25UuSVN5jOGdUBxoDlSxkHijy+sLWdTD9nDsrBlWnmmWSmglvyLKJIz47Z xh81NYRF5HLFmwRQj2TwZN3Fng0iWKt1IGNrHhjGHBn/e5JLJhpqw5ZoGhtmmWBkBLke lx/A== 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 y18-v6si5666007pgv.388.2018.06.28.06.56.34; Thu, 28 Jun 2018 06:56:49 -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 S966359AbeF1NxU (ORCPT + 99 others); Thu, 28 Jun 2018 09:53:20 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56104 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966310AbeF1NxR (ORCPT ); Thu, 28 Jun 2018 09:53:17 -0400 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 8EE9840BC066; Thu, 28 Jun 2018 13:53:16 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8759F2026D69; Thu, 28 Jun 2018 13:53:14 +0000 (UTC) From: Vitaly Kuznetsov To: kvm@vger.kernel.org Cc: x86@kernel.org, Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Roman Kagan , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , Mohammed Gamal , Cathy Avery , Wanpeng Li , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] KVM: x86: hyperv: PV IPI support for Windows guests Date: Thu, 28 Jun 2018 15:53:08 +0200 Message-Id: <20180628135313.17468-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.7]); Thu, 28 Jun 2018 13:53:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Thu, 28 Jun 2018 13:53:16 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 Changes since v1 [Radim Krčmář]: - Implement VP_IDX -> VCPU_IDX mapping, use it for both PV IPIs and TLB flush (PATCHes 1-3 added) - Minor tweaks. Using hypercall for sending IPIs is faster because this allows to specify any number of vCPUs (even > 64 with sparse CPU set), the whole procedure will take only one VMEXIT. Same as PV TLB flush, this allows Windows guests having > 64 vCPUs to boot on KVM when Hyper-V extensions are enabled. Vitaly Kuznetsov (5): KVM: x86: hyperv: optimize 'all cpus' case in kvm_hv_flush_tlb() KVM: x86: hyperv: introduce vp_index_to_vcpu_idx mapping KVM: x86: hyperv: use vp_idx_to_vcpu_idx() in kvm_hv_flush_tlb() x86/hyper-v: rename ipi_arg_{ex,non_ex} structures KVM: x86: hyperv: implement PV IPI send hypercalls Documentation/virtual/kvm/api.txt | 8 + arch/x86/hyperv/hv_apic.c | 12 +- arch/x86/include/asm/hyperv-tlfs.h | 16 +- arch/x86/include/asm/kvm_host.h | 12 ++ arch/x86/kvm/hyperv.c | 375 ++++++++++++++++++++++++++++++------- arch/x86/kvm/trace.h | 42 +++++ arch/x86/kvm/x86.c | 1 + include/uapi/linux/kvm.h | 1 + virt/kvm/kvm_main.c | 6 +- 9 files changed, 391 insertions(+), 82 deletions(-) -- 2.14.4