From nobody Mon Feb 9 00:42:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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 (zohomail.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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1585923872; cv=none; d=zohomail.com; s=zohoarc; b=AWrtMShQugYIDKv5PTf/HceY/RUFGm5XcvEWfMj07WYHoW8D01qBMcih6P8SIpz+WP9C64nZEYKV21lINJMTXyh1Ehx9racursBCjFEa+j8NRlI8/yM48apFrNVUx1mzUxAsOF60QGj341US6cjZ7XIJjBiINyhYGIccXic24QA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585923872; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ZGszGX7/dlFFly+wjt/H+SDs19eZmIByirBcMM+A3k0=; b=h1RGidF0rPPRs7gm184VFu2AKqa9qVERSr/gI3WmnjRNGGc/3mQRR4F7c2caSNT/1fW879bm4McGLumqLhZt1FD9oG4BQGvh8ar4DTGCdVKkuvXTvIbMIjhTNQRbnI+bQS4xI2z00pbstBr/L+v4EPsoEefnpgTf531JEtX0x9M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.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 1585923872651670.7457584236572; Fri, 3 Apr 2020 07:24:32 -0700 (PDT) Received: from localhost ([::1]:56154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKNFH-0007ds-8k for importer@patchew.org; Fri, 03 Apr 2020 10:24:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41093) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKNEI-0006Ji-2w for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:23:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKNEG-00082B-Ca for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:23:30 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:34258) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKNEG-0007zb-1l for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:23:28 -0400 Received: by mail-wr1-x444.google.com with SMTP id 65so8777116wrl.1 for ; Fri, 03 Apr 2020 07:23:26 -0700 (PDT) Received: from jondnuc.lan (IGLD-84-229-154-167.inter.net.il. [84.229.154.167]) by smtp.gmail.com with ESMTPSA id i2sm12218646wrx.22.2020.04.03.07.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 07:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZGszGX7/dlFFly+wjt/H+SDs19eZmIByirBcMM+A3k0=; b=d/LfmVtOmkm0hb2iNgVJOZYipm4j465uGS0uc75JfqyN4WLCLqqIKtJuRY2rJMvrEX 8vQQAARUplmuqgtL4/Ik0g2zC60Yq4oCaKc8x7mAC3xLKdNYFT2B1+6YnQYoLLJhk7ma Njmr9DUc06G2Ex8TRzZ/UGBC5wWW2/HZktCIZIl/oQSg4nXmfFiOJzIu3U2co3wz9Qy8 01fvjxP43Ra8ctY+fxotb0GS8UL0muOHuUlhkFVuhBktlkszqJIUto21mK24DXS0GIoN 9onVSRZJX1kjOL0W6fKc6bk/1PSZmy3qtkJElYF32c7280X5mmV+wDFHwcVEZe8MGaE6 uMhg== 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=ZGszGX7/dlFFly+wjt/H+SDs19eZmIByirBcMM+A3k0=; b=DW3B2cj5CU/cBkCPkbUUhJ0SLKCM3IIhKg/gz2LnGo4JjBJ2KZbCiWXNsHc+ZA73+u onE9kxB/ZqsIk2GNEmvbxNgVWXHP2+Wls/F18HKk6DaLAPvCa3UsatCJvzm0675UTTEc hLjSG9oo/TLHAbCAb9/Ksv3BNGjJ/wmMwvQcWT9bDeX4oC32bk3rWk0Mpvn0LL8uyAL2 jd/rbX/L/rjWKi3+CpP7ttEZkQZT33iMRkzruh40/9S0dV4CgT/d+6jsfaiYrQ8WgIcD bGK2y9XehLa2IcElQtiVWZ5QO4zMntzsekuaE1OKu2Fxoli+IbNNyLenPW8sn8Tovq0V ZZpw== X-Gm-Message-State: AGi0PuaYGU6J1iMN5vx+55CwedIfZ55mMd5aPJtj0Sg0UTFQhUKqsAr4 brqRCJT2R6ckqlghuYvc72kNYK2HdQQ= X-Google-Smtp-Source: APiQypLYRMQScoicmnsieQh3flyhWsmMgd7oJ0En4xlLKpAGylHiB31/yhLxRJm1Mtwwx19H1flBkg== X-Received: by 2002:adf:e70f:: with SMTP id c15mr9927824wrm.217.1585923805482; Fri, 03 Apr 2020 07:23:25 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Subject: [PATCH v1 1/5] hyperv: expose API to determine if synic is enabled Date: Fri, 3 Apr 2020 17:23:04 +0300 Message-Id: <20200403142308.82990-2-arilou@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200403142308.82990-1-arilou@gmail.com> References: <20200403142308.82990-1-arilou@gmail.com> MIME-Version: 1.0 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::444 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: pbonzini@redhat.com, vkuznets@redhat.com, ehabkost@redhat.com, Jon Doron Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jon Doron --- hw/hyperv/hyperv.c | 8 ++++++++ include/hw/hyperv/hyperv.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/hyperv/hyperv.c b/hw/hyperv/hyperv.c index 8ca3706f5b..ddf4f32c60 100644 --- a/hw/hyperv/hyperv.c +++ b/hw/hyperv/hyperv.c @@ -37,6 +37,13 @@ typedef struct SynICState { #define TYPE_SYNIC "hyperv-synic" #define SYNIC(obj) OBJECT_CHECK(SynICState, (obj), TYPE_SYNIC) =20 +static bool synic_enabled; + +bool hyperv_is_synic_enabled(void) +{ + return synic_enabled; +} + static SynICState *get_synic(CPUState *cs) { return SYNIC(object_resolve_path_component(OBJECT(cs), "synic")); @@ -133,6 +140,7 @@ void hyperv_synic_add(CPUState *cs) object_property_add_child(OBJECT(cs), "synic", obj, &error_abort); object_unref(obj); object_property_set_bool(obj, true, "realized", &error_abort); + synic_enabled =3D true; } =20 void hyperv_synic_reset(CPUState *cs) diff --git a/include/hw/hyperv/hyperv.h b/include/hw/hyperv/hyperv.h index 597381cb01..a63ee0003c 100644 --- a/include/hw/hyperv/hyperv.h +++ b/include/hw/hyperv/hyperv.h @@ -79,5 +79,6 @@ void hyperv_synic_add(CPUState *cs); void hyperv_synic_reset(CPUState *cs); void hyperv_synic_update(CPUState *cs, bool enable, hwaddr msg_page_addr, hwaddr event_page_addr); +bool hyperv_is_synic_enabled(void); =20 #endif --=20 2.24.1