From nobody Tue Feb 10 15:45:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500027833994907.3960423899161; Fri, 14 Jul 2017 03:23:53 -0700 (PDT) Received: from localhost ([::1]:36766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVxlI-0003wp-KQ for importer@patchew.org; Fri, 14 Jul 2017 06:23:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVxYk-0000R1-7h for qemu-devel@nongnu.org; Fri, 14 Jul 2017 06:10:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVxYj-00056W-BA for qemu-devel@nongnu.org; Fri, 14 Jul 2017 06:10:54 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:33588) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVxYj-000561-0G for qemu-devel@nongnu.org; Fri, 14 Jul 2017 06:10:53 -0400 Received: by mail-wr0-x241.google.com with SMTP id g46so1016827wrd.0 for ; Fri, 14 Jul 2017 03:10:52 -0700 (PDT) Received: from 640k.lan (94-39-191-51.adsl-ull.clienti.tiscali.it. [94.39.191.51]) by smtp.gmail.com with ESMTPSA id 143sm2934870wmg.9.2017.07.14.03.10.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 03:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=fRTruCdDdDaxZ24C+3BTye3uVEnyyrqS35hBrRD6kqU=; b=Xl+NDeMeD5YzTb77iLwJVK0vvmXbfFX1rBqQgYo5rwFCK2XRANrT6oU43oBVARyLnj Muz8eb0pTjwlWA3eTm3Du+DqZM6H4tELWAptJgU1ntIx8k0yNxbm6hbvaOxNpwLpU/pK OoGzWF2CzssO3XjFlzXQEuWoiEkL0HcX9RtP3Ia+YEyQwd4XjauldYc2Us49rhipruhf HQHYeCXdab3gBpt89qBNFhpNJpWuVj8wRclX2IyYqozkyXGotcUQfypSotAXKBf5JJ9c 4sqhk5OFvBFDUUgW4pynsT+FhQIsO0N5b2oKqxhaKVNpNmlezM2kMTFyea79lbFjeq2y 8RAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=fRTruCdDdDaxZ24C+3BTye3uVEnyyrqS35hBrRD6kqU=; b=LxaOkFffN6ZA1aTXvdlUnGn7+xLHSBCwiHT+1eu6SpskbYu8Z2fAFSIczWXlDwfOzQ jgyWMha8v6iTwc+yaSrJADp1ItGLWzO3wwx5FZyWfW2TrzDdwpr46WgwBmYFmB7LdFHU eKm/ThSZ4kfI4ueMwtx0KlwPgq6kDW6Hesx/qHgOlsn3MBAaqCP8SIHXLXsJ9iqh8uLQ 692+nZA3JAsn6YYUXnaYx9Ks5Kc783Pf7s/XHaaRC80zqzRsRKYdPWUSIw81r2h8wGLa qKHCmffYwAMSWjwbpVZW0wD8zIr8XDizTRULZLwGQToZtb/RA2Nutx1X+R2ZMxD/Vk/Z Y02A== X-Gm-Message-State: AIVw111iU7Z7ToxqIT3ztr64Eajzy2K+ohkr1h4loWxKbSgcedp+gVpZ Fx0hR/LAbyvD9a8nkFk= X-Received: by 10.223.170.219 with SMTP id i27mr4073446wrc.49.1500027051893; Fri, 14 Jul 2017 03:10:51 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 14 Jul 2017 12:10:28 +0200 Message-Id: <1500027028-4127-17-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1500027028-4127-1-git-send-email-pbonzini@redhat.com> References: <1500027028-4127-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PULL 55/55] spapr_rng: Convert to DEFINE_PROP_LINK 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: Fam Zheng Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Fam Zheng Signed-off-by: Fam Zheng Message-Id: <20170714021509.23681-21-famz@redhat.com> Signed-off-by: Paolo Bonzini --- hw/ppc/spapr_rng.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/ppc/spapr_rng.c b/hw/ppc/spapr_rng.c index 80515eb..d2acd61 100644 --- a/hw/ppc/spapr_rng.c +++ b/hw/ppc/spapr_rng.c @@ -96,17 +96,11 @@ static target_ulong h_random(PowerPCCPU *cpu, sPAPRMach= ineState *spapr, =20 static void spapr_rng_instance_init(Object *obj) { - sPAPRRngState *rngstate =3D SPAPR_RNG(obj); - if (object_resolve_path_type("", TYPE_SPAPR_RNG, NULL) !=3D NULL) { error_report("spapr-rng can not be instantiated twice!"); return; } =20 - object_property_add_link(obj, "rng", TYPE_RNG_BACKEND, - (Object **)&rngstate->backend, - object_property_allow_set_link, - OBJ_PROP_LINK_UNREF_ON_RELEASE, NULL); object_property_set_description(obj, "rng", "ID of the random number generator bac= kend", NULL); @@ -163,6 +157,8 @@ int spapr_rng_populate_dt(void *fdt) =20 static Property spapr_rng_properties[] =3D { DEFINE_PROP_BOOL("use-kvm", sPAPRRngState, use_kvm, false), + DEFINE_PROP_LINK("rng", sPAPRRngState, backend, TYPE_RNG_BACKEND, + RngBackend *), DEFINE_PROP_END_OF_LIST(), }; =20 --=20 1.8.3.1