Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6109687imm; Mon, 27 Aug 2018 09:50:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+czmSxd8kdQF/Zowuibr8vk+TqSWEQlzHs/FRfz/dujzu1W23wg3S9KYKMvHIqdl3DnVG X-Received: by 2002:a17:902:bf0b:: with SMTP id bi11-v6mr697762plb.76.1535388651540; Mon, 27 Aug 2018 09:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535388651; cv=none; d=google.com; s=arc-20160816; b=wwNMWy5TENAE8NW1qZsu6hObYGhJvPAzoMR3Kfgf95sFs60CfVXF+rFWbW96KqEfjx o8Q7t7PoCt0qgw3Af0KaZCYBYHEI4fbAhOnsuKC0wGW89hYCNI3OlJtwR6AIPrkdWlbO hXnPdIuHsN31FEdBMN+cXKWXIQlOWMOqRi3zCyh0atYxNd1qjIFfavlzVDT7dZwgV1oV 53KU/5X/0yFN+Y4Xegm8GSkyNX8sPGEEsArRwwvrm4JFFjiKFipNaNHDCF1HrVclVbh0 BdDkNXzh041QhV+kx3xMz7HalyABE1W5nlwEcM0e7nD3uO8hubMyomHuPqEGDYT4x2hQ jb3A== 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=0Z35oCpna6cMpr7iDSasbQYtPkF+SpeJ1Kq/b3KQbJE=; b=BCMwIk9sAEZWZ5V/sNgsgMO0bOQOADIHn7wuAKmjESU7PAzQNfGHF2lt8fy5A1Bzck 7nS1S/Qwre/Em8K1yQe6YbPIFbFGKHsw1zusQWeVYdJaQpf6Swl5K2MK6aIcquUz+ThB KTa5Gce3TKe6SQ2u3myIgb3LV1oK9AL/fvR38R7hdNE9M02/koRVwtvZF8L4Ii0SUyf7 OzBweqUedPt4ocCVmMMwyv4OhGavZZfEDxCVnNTAnmXfhL13AVZ0tag602bW930ynuaM LeoOWuvfZ5oES8hxBrS2v4P826He09vR1ZcDJhkkc0Kz0uLlTV1FwO6jBG9cOlb/4LAG SSBQ== 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 o1-v6si16327263pfe.259.2018.08.27.09.50.36; Mon, 27 Aug 2018 09:50:51 -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 S1727328AbeH0Ug0 (ORCPT + 99 others); Mon, 27 Aug 2018 16:36:26 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46952 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726994AbeH0UgZ (ORCPT ); Mon, 27 Aug 2018 16:36: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 A4D17402212B; Mon, 27 Aug 2018 16:49:03 +0000 (UTC) Received: from vitty.brq.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8A1AD2166B41; Mon, 27 Aug 2018 16:49:00 +0000 (UTC) From: Vitaly Kuznetsov To: kvm@vger.kernel.org Cc: 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 v5 0/5] KVM: x86: hyperv: PV IPI support for Windows guests Date: Mon, 27 Aug 2018 18:48:53 +0200 Message-Id: <20180827164858.12496-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.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 27 Aug 2018 16:49:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 27 Aug 2018 16:49:03 +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 Changes since v4: - Rebase to the current kvm/next (KVM_CAP_HYPERV_SEND_IPI is now 159) - Use 64 instead of 'BITS_PER_LONG' [Roman Kagan] - Continue in case wrong VP ids or disabled APICs instead of bailing [Roman Kagan] 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: enforce vp_index < KVM_MAX_VCPUS KVM: x86: hyperv: optimize 'all cpus' case in kvm_hv_flush_tlb() KVM: x86: hyperv: use get_vcpu_by_vpidx() 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 | 7 ++ arch/x86/hyperv/hv_apic.c | 8 +- arch/x86/include/asm/hyperv-tlfs.h | 16 +-- arch/x86/kvm/hyperv.c | 201 +++++++++++++++++++++++++++---------- arch/x86/kvm/trace.h | 42 ++++++++ arch/x86/kvm/x86.c | 1 + include/uapi/linux/kvm.h | 1 + virt/kvm/kvm_main.c | 6 +- 8 files changed, 214 insertions(+), 68 deletions(-) -- 2.14.4