From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 794F6C43441 for ; Mon, 26 Nov 2018 15:47:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C6AE20873 for ; Mon, 26 Nov 2018 15:47:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C6AE20873 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726616AbeK0CmK (ORCPT ); Mon, 26 Nov 2018 21:42:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56740 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbeK0CmJ (ORCPT ); Mon, 26 Nov 2018 21:42:09 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A14F30832EB; Mon, 26 Nov 2018 15:47:40 +0000 (UTC) Received: from vitty.brq.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTP id C34F95D9D1; Mon, 26 Nov 2018 15:47: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?= , linux-kernel@vger.kernel.org, Roman Kagan , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , x86@kernel.org, "Michael Kelley (EOSG)" Subject: [PATCH v2 0/4] x86/kvm/hyper-v: Implement Direct Mode for synthetic timers Date: Mon, 26 Nov 2018 16:47:28 +0100 Message-Id: <20181126154732.23025-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Mon, 26 Nov 2018 15:47:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v1: - avoid open-coding stimer_mark_pending() in kvm_hv_notify_acked_sint() and kvm_hv_synic_send_eoi [Paolo Bonzini] Turns out Hyper-V on KVM (as of 2016) will only use synthetic timers if direct mode is available. With direct mode we notify the guest by asserting APIC irq instead of sending a SynIC message. Qemu and kvm-unit-test patches for testing this series can be found in v1 submission: https://lkml.org/lkml/2018/11/13/972 Vitaly Kuznetsov (4): x86/hyper-v: move synic/stimer control structures definitions to hyperv-tlfs.h x86/kvm/hyper-v: use stimer config definition from hyperv-tlfs.h x86/kvm/hyper-v: direct mode for synthetic timers x86/kvm/hyper-v: avoid open-coding stimer_mark_pending() in kvm_hv_notify_acked_sint() arch/x86/include/asm/hyperv-tlfs.h | 73 ++++++++++++++++++-- arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/kvm/hyperv.c | 106 +++++++++++++++++++++-------- arch/x86/kvm/trace.h | 10 +-- arch/x86/kvm/x86.c | 1 + drivers/hv/hv.c | 2 +- drivers/hv/hyperv_vmbus.h | 68 ------------------ include/uapi/linux/kvm.h | 1 + 8 files changed, 154 insertions(+), 109 deletions(-) -- 2.19.1