From nobody Mon May 13 22:44:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1561380042; cv=none; d=zoho.com; s=zohoarc; b=VIZlPf61Bicoyu362tlgsGyVJMam22MkD5XPIJz9jpSYLo8b7lKA3ti2U8cJKb83dqljw8LEC+zzdzG/RjR+o+0d58sKTsKrY3i/RXYtpMY6/p17fGF61mFNo7CsrOzEE0vIg/Yx4mgi5Bww3RAF5G/XilL7p/IwvoSI/1x2zkU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561380042; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=AtHi5q/cNknUVhZfWVBa3uQSrmuqAHZIqdQKWtwfbR8=; b=Ifl9X6/R4qv+vwN+ucXMitdtqZPoWUfEB2Qr6fDYJ1KOJF3dNEyA3uLEkhYlrHQ7j0LXP6h4siBmvp0tcje1LayjuVw8MgzQzxpN0w5xl/Fm8bec5vRpaZRY0QGn+d7tnUSAr8L4FsFNAtVBGNW1xfI4NKu3makZri6uMEScXyA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1561380042621678.6447391353056; Mon, 24 Jun 2019 05:40:42 -0700 (PDT) Received: from localhost ([::1]:50804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfOH3-0003RK-NM for importer@patchew.org; Mon, 24 Jun 2019 08:40:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53776) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfOFL-0002aD-Mz for qemu-devel@nongnu.org; Mon, 24 Jun 2019 08:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfOFJ-0001lZ-Na for qemu-devel@nongnu.org; Mon, 24 Jun 2019 08:38:55 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:46710) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfOFH-0001fX-Pw for qemu-devel@nongnu.org; Mon, 24 Jun 2019 08:38:53 -0400 Received: by mail-wr1-x443.google.com with SMTP id n4so13690610wrw.13 for ; Mon, 24 Jun 2019 05:38:50 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u1sm9781666wml.14.2019.06.24.05.38.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 05:38:48 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 964561FF87; Mon, 24 Jun 2019 13:38:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AtHi5q/cNknUVhZfWVBa3uQSrmuqAHZIqdQKWtwfbR8=; b=Ao9hyd511aFQrrEA3NBpvSK9bCYt1TlOJHEfpV5llpbaYpqLIxFpz213Ud61yuqfgQ EFoY0QBx6D5rsVA3lH0jqCiUgDxhmIP9d8B8YNX0FXJ5MMffSUZHNMX6OJ0BIkaknRuP VJByA79YGOo6maDwnTuSzyZZtRlQlb6PfEAmN9ansIihdPUTHXUbWygtv40RewqqvMpD UWgy8G9Bwubu3iUFIEmzwnZYLqx0tYCkAwpNzRZfqEQFHHxMrrwfuMToVID4UBejouyT xHqdIArGAbKLxBaIPDK+Y0p84/Tl0zPS7yxBi5cZ5WKcMbAzXn21BZvRQDBTjRQbfdEt sbGA== 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:mime-version :content-transfer-encoding; bh=AtHi5q/cNknUVhZfWVBa3uQSrmuqAHZIqdQKWtwfbR8=; b=aQK/qFyGbTfXk1TS6LzN53CGE3S4k/BDAiRc3h+dgEZNEohPPFoyLwgAbL+wSLKcup Ck0EK8gEYZ03iL0w+3vQ0FLHfnT7lDLBgLcXTz5IME/qnU/VI8PdyUbzbEi0W93DqYMC bq66NfN67kGIXevBR6/vig9/F3RC+kADGeYeSgFZz765+s5J4NROpB9drXE0IAGlmC4x RTGytMTHpu52GtFqaIrDaywLi9PWKZaAmBY48RYpRsbY+Fu1oY7iW+dRgsCogzM+goKp hxF0fsf9KrYnVs9fMPgpiSJfhRNnsxulGXtuYsPJUsT+26geZ4hpyjrydeP430Sp4ngs EA4w== X-Gm-Message-State: APjAAAUg37LdzuSBRrEZgSVUsjKC6MY9r7pd92CsY+8aMqqg80IO3J5m AMsFIq97oyEcInVB5qdpR9eqLw== X-Google-Smtp-Source: APXvYqwo73JeN5LmtvHVeO68gSQODEmqtGqXzI+WW4Uyglc1nW+rRCDm9Ke8RvESIZzTKVP97dC4Dw== X-Received: by 2002:a5d:40ca:: with SMTP id b10mr51670531wrq.171.1561379928703; Mon, 24 Jun 2019 05:38:48 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 24 Jun 2019 13:38:35 +0100 Message-Id: <20190624123835.28869-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH] target/i386: fix feature check in hyperv-stub.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eduardo Habkost , qemu-devel@nongnu.org, Roman Kagan , Paolo Bonzini , Vitaly Kuznetsov , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Commit 2d384d7c8 broken the build when built with: configure --without-default-devices --disable-user The reason was the conversion of cpu->hyperv_synic to cpu->hyperv_synic_kvm_only although the rest of the patch introduces a feature checking mechanism. So I've fixed the KVM_EXIT_HYPERV_SYNIC in hyperv-stub to do the same feature check as in the real hyperv.c Signed-off-by: Alex Benn=C3=A9e Cc: Vitaly Kuznetsov Cc: Paolo Bonzini Cc: Roman Kagan Acked-by: Paolo Bonzini Reviewed-by: Roman Kagan Reviewed-by: Vitaly Kuznetsov --- target/i386/hyperv-stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/hyperv-stub.c b/target/i386/hyperv-stub.c index fe548cbae2..0028527e79 100644 --- a/target/i386/hyperv-stub.c +++ b/target/i386/hyperv-stub.c @@ -15,7 +15,7 @@ int kvm_hv_handle_exit(X86CPU *cpu, struct kvm_hyperv_exi= t *exit) { switch (exit->type) { case KVM_EXIT_HYPERV_SYNIC: - if (!cpu->hyperv_synic) { + if (!hyperv_feat_enabled(cpu, HYPERV_FEAT_SYNIC)) { return -1; } =20 --=20 2.20.1