From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Vitaly Kuznetsov Date: Fri, 25 Jan 2019 12:41:53 +0100 Message-Id: <20190125114155.32062-7-vkuznets@redhat.com> In-Reply-To: <20190125114155.32062-1-vkuznets@redhat.com> References: <20190125114155.32062-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH RFC 6/8] i386/kvm: hv-stimer requires hv-time and hv-synic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Eduardo Habkost , Marcelo Tosatti , Roman Kagan 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; -- 2.20.1