From patchwork Fri Jan 25 11:41:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Kuznetsov X-Patchwork-Id: 10781247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8EE626C2 for ; Fri, 25 Jan 2019 11:46:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CFC72EFD9 for ; Fri, 25 Jan 2019 11:46:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 711462F1FE; Fri, 25 Jan 2019 11:46:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 29AA72EFD9 for ; Fri, 25 Jan 2019 11:46:18 +0000 (UTC) Received: from localhost ([127.0.0.1]:43027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmzw9-0006MW-Gg for patchwork-qemu-devel@patchwork.kernel.org; Fri, 25 Jan 2019 06:46:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmzsF-00033t-E7 for qemu-devel@nongnu.org; Fri, 25 Jan 2019 06:42:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmzsE-0007Ki-CT for qemu-devel@nongnu.org; Fri, 25 Jan 2019 06:42:15 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmzsD-0007JW-SG for qemu-devel@nongnu.org; Fri, 25 Jan 2019 06:42:14 -0500 Received: by mail-wr1-f66.google.com with SMTP id r10so9925428wrs.10 for ; Fri, 25 Jan 2019 03:42:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HRs/w36yuF278fqShfideFFkTA19VrdGydY9uj3NbGs=; b=VWXMAgIF7XYSFJQN3MkXWYKn3bfsyKSwZU3O+RflrryQhEWb2peM5AGpg8I5X03cK8 cGyxOmQkDlrQ8fUMIhNxfqIeDRm3EoYP+kj9hagxpvo0ZbZ2kQp4KRcv55/sv0I2wUQV bzJM77Lzp0CI2KFIBToQJ9xvpR5cGt+TD2s+kyzaNRlTNfhl6sa+/HLk/9RWFRG0r+i5 1ZyNl6iZx0rcsTpPQrQmW6pc+ews97ILBdnE/rhxayQzkj7AGc+Rsw4OwmOzNckwtqmh 0mouSoBhIXjRsYkiJtHgRVOdK2Q2kdwD0WbXZOmy/JHcmk5I9p7uZsVFBpyR7j6Fjp1Y jZYA== X-Gm-Message-State: AJcUukcKCFHSFR8GFLXtc4puucwcb32+91WySsJ4RPdf0/QjuXbr116K mBjQCTv8jb5yjjyrSZ339FoEOEs483VJqw== X-Google-Smtp-Source: ALg8bN7s8zc8MhjCMl0MTQ8zX2tej19pLEFW507Pia4an9yq5jLP59Z75CRYTb4yQxhl1XpqsKlx5A== X-Received: by 2002:adf:ab51:: with SMTP id r17mr11148420wrc.62.1548416532542; Fri, 25 Jan 2019 03:42:12 -0800 (PST) Received: from vitty.brq.redhat.com.cz ([147.229.117.36]) by smtp.gmail.com with ESMTPSA id x81sm64944415wmg.17.2019.01.25.03.42.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 03:42:11 -0800 (PST) From: Vitaly Kuznetsov To: qemu-devel@nongnu.org Date: Fri, 25 Jan 2019 12:41:53 +0100 Message-Id: <20190125114155.32062-7-vkuznets@redhat.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190125114155.32062-1-vkuznets@redhat.com> References: <20190125114155.32062-1-vkuznets@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.66 Subject: [Qemu-devel] [PATCH RFC 6/8] i386/kvm: hv-stimer requires hv-time and hv-synic X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Marcelo Tosatti , Roman Kagan , Eduardo Habkost , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Synthetic timers operate in hv-time time and Windows won't use these without SynIC. Signed-off-by: Vitaly Kuznetsov --- target/i386/kvm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 674c5dc185..7461bf05dd 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -1177,6 +1177,12 @@ static int hyperv_handle_properties(CPUState *cs, if (cpu->hyperv_evmcs && !cpu->hyperv_vapic) { r |= hv_report_missing_dep(cpu, "hv-evmcs", "hv-vapic"); } + if (cpu->hyperv_stimer && !cpu->hyperv_synic) { + r |= hv_report_missing_dep(cpu, "hv-stimer", "hv-synic"); + } + if (cpu->hyperv_stimer && !cpu->hyperv_time) { + r |= hv_report_missing_dep(cpu, "hv-stimer", "hv-time"); + } /* Not exposed by KVM but needed to make CPU hotplug in Windows work */ env->features[FEAT_HYPERV_EDX] |= HV_CPU_DYNAMIC_PARTITIONING_AVAILABLE;