From nobody Mon Feb 9 08:55:28 2026 Delivered-To: importer@patchew.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=1587731811; cv=none; d=zohomail.com; s=zohoarc; b=SsgtNt0qAcfpsovJaszvqRJtzuoN2VxEGZS8TRd5oxc6K520RYiyd6LFWWChZWuj3SizC2qsf6yS/V/CuiBgi1aUGrLj4RpZOZfzIgOHErtENRRff7klXMefIHC2hOp5t4nlu7FDfRIlQl9xH0wh3EKIeoRJby8XaqMg5all/14= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587731811; 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=KEEe/4u+z1C7Z10dtYY/zscBxoggfNmoD1IeeVHOhDb90cSUKJyu/zUpd7KSAJGJ02J9WWzgxEKADMoNnXIUdaSVhfuAKtEXgkYGXOK/AN+GkHxkng94m4dB6wjsa08eSYUe/Q+NkE4VE9j8IyPYgLcYEPWjmoQNsauQBmmL+bA= 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 1587731811898533.8559356922088; Fri, 24 Apr 2020 05:36:51 -0700 (PDT) Received: from localhost ([::1]:34660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRxZZ-0005gU-Rd for importer@patchew.org; Fri, 24 Apr 2020 08:36:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53944) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRxXs-0003WP-5K for qemu-devel@nongnu.org; Fri, 24 Apr 2020 08:35:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRxXq-0003dz-HI for qemu-devel@nongnu.org; Fri, 24 Apr 2020 08:35:03 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:40322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRxXq-0003Zt-1s for qemu-devel@nongnu.org; Fri, 24 Apr 2020 08:35:02 -0400 Received: by mail-wm1-x344.google.com with SMTP id u16so10511724wmc.5 for ; Fri, 24 Apr 2020 05:35:01 -0700 (PDT) Received: from jondnuc.lan (IGLD-84-229-154-20.inter.net.il. [84.229.154.20]) by smtp.gmail.com with ESMTPSA id 91sm8462859wra.37.2020.04.24.05.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 05:34:59 -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=D62jLycox9T9cbHAFuqYZ2dPl0qnHspWnFVq8fc6TPKi2ttn9Mv/90JXo5V5ZizFf6 P1rkZ2P7I3+Ie2LjRRoUtIMQXgwIa+gyhmoatUwmPBBYz4Kp9ezN+CNAHBI1TDBaOCxC sDb9D/R7SnpjuvK8WB8IGQ4jw5Jgx6180MOCXWJAu35KqZDUpXtzQY1zIgz9WlqVpbUy bcthAq9Ba8VSRx7xsab3IRkkm11ucFWrUloyYxNdVBA5AyFg3do7d1qZyWcks9nlnZ7h 9MmKHhYDv0muIUyUFS+MrUGTPDAmizc3bU7wyRq0RlL/wmpLHhib9Rkeub6X9coIJYOs GCCQ== 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=imvgrh5CLRXjGRf8oINjCuQbqKhClC+atzlLnIhVByzp+EATLDhAW4ZzzsZSWk7pFQ njlJljctU6juiCxP4WrhYZA/1CemZYXAjtt7LwiLmsKplFNB4lyTP3iF0q5KlSmTS90p InIk+dxzuQEczr0zMzyBFRWUAma0gRuOLRk/rmQvYcwJsHDZuzGzGBVYnYR3+NOfPvmp Njbf74EEUc/k6t9J1uB0mDWEQ4XitXqF9ddeAz8olybE4bem7yJfmyj9lGFNoPJ2BtiO MeG9j9phxvNQzYd2bahEDN/bihQ2W5IED4vRdELIyuP80f1S81fZ7yGqFuUJsFZn0ow/ w1qw== X-Gm-Message-State: AGi0PuaHdLi8wmMC1ccKns1W5nhuGXgo4NfQTWZq8Qde/jq/az1c1TKg mSwB/bVl57uCGX+fkv/HuAjHMh23pm5rBQ== X-Google-Smtp-Source: APiQypLMKTtxq71ZQJYQZgLJOi/DlFxaNthIohpZEp8GGJeuPa6EbLqlZp8vzqHcUiiFoU4wWw56BA== X-Received: by 2002:a1c:8106:: with SMTP id c6mr9848392wmd.88.1587731700351; Fri, 24 Apr 2020 05:35:00 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Subject: [PATCH v4 1/6] hyperv: expose API to determine if synic is enabled Date: Fri, 24 Apr 2020 15:34:39 +0300 Message-Id: <20200424123444.3481728-2-arilou@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200424123444.3481728-1-arilou@gmail.com> References: <20200424123444.3481728-1-arilou@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::344; envelope-from=arilou@gmail.com; helo=mail-wm1-x344.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::344 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: mail@maciej.szmigiero.name, eyakovlev@virtuozzo.com, ehabkost@redhat.com, rvkagan@gmail.com, liran.alon@oracle.com, pbonzini@redhat.com, vkuznets@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