Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp236969imm; Wed, 22 Aug 2018 03:20:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzkcw4zh14MMZOni18fhml/msls5mB+R9J3uszlRd2HfdOX1lk9ygUjN704b8mOpyG0Zm3m X-Received: by 2002:aa7:8118:: with SMTP id b24-v6mr57219931pfi.78.1534933203323; Wed, 22 Aug 2018 03:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534933203; cv=none; d=google.com; s=arc-20160816; b=Bmo1X866rQCv+J9mAkvR6DoLCasNYUqHhie8xGJa16KYGxyWs2gVh6uuqXs7ItqQ9g VkYx8Yuw2B/bG416IPVQjPbzP7wu0GVXx4vhMvodAPAY503QBz5fz7dVGZPx/QdhLyaS ErcGejUpFVqrYQMbUvr1M7WjxR272/KgZ+MoNwFddM7fEIXtkH3JrLKivkc7hZ6b/WaF qfD4h3WUhjetWu/FSHzcSDdsqEPoQatnIPeq5FLzLFoX9220c/JH2+Q423k4rr7M2914 hmFbTNBdfeZWu9yyXP3ZhpBpUfXm/usXht+zwny3EeagBa4W8Bb55Hc/zEPP30gEq37/ SPqQ== 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=w1amxxg0ARjuIIpfwjfkuMVIHnzuR4/YCTgSrclofDU=; b=ztxTGLx2JoKDL3cTBhF341SpVqEIgmoXj8tNaj6s+iMSeN381PuIePYbQte7/0SU2p UsyaOnEFLcVembAvq9WdhuakxXB9ejkx9uAnR4FCf/++m7FQ51dEpUz4arOQeY7nD3rK uSbqBtpNMZer94O7TIelaznfpeOAvtdSDhvG7Yi6xEGu3Bsy3QVHNOyFxxmmrvLYHMvZ Ce4n/eDaLmq+u5G62ldIHEl3Uv1jPkq0tw5EOGI4rFUXq08PXkIBcFnJccxYKryOiy/U kOUzLCBjLC7FXGdr5Qcb3apmfYQnp57q2gM+11hmSLdZ/CKcMH6QciRSwqvK6tjsSkN1 yHJw== 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 s71-v6si1473466pfa.367.2018.08.22.03.19.48; Wed, 22 Aug 2018 03:20:03 -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 S1728603AbeHVNmv (ORCPT + 99 others); Wed, 22 Aug 2018 09:42:51 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44042 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727396AbeHVNmv (ORCPT ); Wed, 22 Aug 2018 09:42:51 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3510540241C5; Wed, 22 Aug 2018 10:18:35 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6BEE163F37; Wed, 22 Aug 2018 10:18:33 +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)" , Wanpeng Li , linux-kernel@vger.kernel.org Subject: [PATCH v4 RESEND 0/5] KVM: x86: hyperv: PV IPI support for Windows guests Date: Wed, 22 Aug 2018 12:18:27 +0200 Message-Id: <20180822101832.31763-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 22 Aug 2018 10:18:35 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 22 Aug 2018 10:18:35 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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: - Adjust KVM_CAP_HYPERV_SEND_IPI's number [158] - Add Roman's Reviewed-bys 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 | 8 ++ arch/x86/hyperv/hv_apic.c | 12 +-- arch/x86/include/asm/hyperv-tlfs.h | 16 +-- arch/x86/kvm/hyperv.c | 211 +++++++++++++++++++++++++++---------- 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, 224 insertions(+), 73 deletions(-) -- 2.14.4