From patchwork Fri Jan 25 11:41:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Kuznetsov X-Patchwork-Id: 10781239 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 11C34922 for ; Fri, 25 Jan 2019 11:44:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00BEE2EEE2 for ; Fri, 25 Jan 2019 11:44:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8F242EF09; Fri, 25 Jan 2019 11:44:39 +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 9A5872EEE2 for ; Fri, 25 Jan 2019 11:44:39 +0000 (UTC) Received: from localhost ([127.0.0.1]:42979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmzuZ-00052B-0F for patchwork-qemu-devel@patchwork.kernel.org; Fri, 25 Jan 2019 06:44:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmzsI-00036m-5V for qemu-devel@nongnu.org; Fri, 25 Jan 2019 06:42:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmzsG-0007Py-7V for qemu-devel@nongnu.org; Fri, 25 Jan 2019 06:42:18 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:32949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmzsF-0007L2-Lz for qemu-devel@nongnu.org; Fri, 25 Jan 2019 06:42:16 -0500 Received: by mail-wm1-f67.google.com with SMTP id r24so4609294wmh.0 for ; Fri, 25 Jan 2019 03:42:15 -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=wv7NNnJOldZDmosK44fJ/WnToQEJl7VsVFfoDBadA4k=; b=EmPFhNdZ150gc/PZsllu6+yfPO5mv5GYChrdqhGeRAzvi+/Vke9F9BU1/BvO55io5M XVODjBErnnqjlKDFjM6VdoPka8PLbHeaYpDorYS2Y7wFwFLB1NCitkvp3BJRxC/yeCOd jP7bxUjVdSRxx/5Cf8OdHm4TOwQsOELBQMShJ/QQgLtZ9x+poPn3wb/GdaVP3a1UrUQm w9pBrZGAYbOmHF8dfXPpFXGBfqvclXQmRGNnp/RohIhn8K5FoyInJu/tSvJ9BJAEk57W NMsapRQCiZKxqrIjKA7OWSx0HQbPiV7L4aUpuZNJa2+da8VxOrCuiFaRcGSqkOsWo35G erkA== X-Gm-Message-State: AJcUukdtuoLdHK8XAck7y+n8pIzcHmNrsgkl90hPOG5AoXOB6V28Xf31 WiwSyUvmPmtutO9YY3mFXM4W0Ln5TnNJfQ== X-Google-Smtp-Source: ALg8bN7nUNER6VCOtEClVFSdNKkZAqWaCmQd8wmbJe3kbnCMI96sKbUi3lyZ8PL8O482yn6kTXSCzA== X-Received: by 2002:a1c:9e4a:: with SMTP id h71mr6756947wme.82.1548416534020; Fri, 25 Jan 2019 03:42:14 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Jan 2019 03:42:13 -0800 (PST) From: Vitaly Kuznetsov To: qemu-devel@nongnu.org Date: Fri, 25 Jan 2019 12:41:54 +0100 Message-Id: <20190125114155.32062-8-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.128.67 Subject: [Qemu-devel] [PATCH RFC 7/8] i386/kvm: hv-tlbflush/ipi require hv-vpindex 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 The corresponding hypercalls require using VP indexes. 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 7461bf05dd..14d74ca9c7 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -1183,6 +1183,12 @@ static int hyperv_handle_properties(CPUState *cs, if (cpu->hyperv_stimer && !cpu->hyperv_time) { r |= hv_report_missing_dep(cpu, "hv-stimer", "hv-time"); } + if (cpu->hyperv_tlbflush && !cpu->hyperv_vpindex) { + r |= hv_report_missing_dep(cpu, "hv-tlbflush", "hv-vpindex"); + } + if (cpu->hyperv_ipi && !cpu->hyperv_vpindex) { + r |= hv_report_missing_dep(cpu, "hv-ipi", "hv-vpindex"); + } /* Not exposed by KVM but needed to make CPU hotplug in Windows work */ env->features[FEAT_HYPERV_EDX] |= HV_CPU_DYNAMIC_PARTITIONING_AVAILABLE;