Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6210EC6FD1F for ; Wed, 20 Mar 2024 14:55:43 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.695970.1086373 (Exim 4.92) (envelope-from ) id 1rmxLq-0000ry-4c; Wed, 20 Mar 2024 14:55:34 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 695970.1086373; Wed, 20 Mar 2024 14:55:34 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rmxLq-0000rr-23; Wed, 20 Mar 2024 14:55:34 +0000 Received: by outflank-mailman (input) for mailman id 695970; Wed, 20 Mar 2024 14:55:32 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rmxLn-0000rh-Qa for xen-devel@lists.xenproject.org; Wed, 20 Mar 2024 14:55:31 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id e4afc3c9-e6c9-11ee-a1ee-f123f15fe8a2; Wed, 20 Mar 2024 15:55:29 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id AE6C234648; Wed, 20 Mar 2024 14:55:28 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 2A799136CD; Wed, 20 Mar 2024 14:55:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id l/P3N9/4+mWBSAAAD6G6ig (envelope-from ); Wed, 20 Mar 2024 14:55:27 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e4afc3c9-e6c9-11ee-a1ee-f123f15fe8a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710946528; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=atLlVj706ZI1z+w2Od3Pb5liz1wqI2QrZufnWv/g0fI=; b=lESLmDPR2Vg9ewi+NFqrwm00GWuh4+Zdr+TeU2s32ZkHVKiR6/7UTkZFBrLnjyer5llefC ebUQHB2JnuQyTzv8nLMLbyl4XBC7p4RVoTCdxAX+GbfxwthNEDWBBPf8kvldUQbhzk6Sp8 qBrvzbG1B4fH2jJpriEZ4CxZpYXuceQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710946528; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=atLlVj706ZI1z+w2Od3Pb5liz1wqI2QrZufnWv/g0fI=; b=CckUtufh1Nlld6V2VNOCsSQTwFG8xNe028kv8bHuHoiyjoYgUDKXm7crkS3LRlhg6b7jSC 9cGpVZ8bvEOUvQAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710946528; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=atLlVj706ZI1z+w2Od3Pb5liz1wqI2QrZufnWv/g0fI=; b=lESLmDPR2Vg9ewi+NFqrwm00GWuh4+Zdr+TeU2s32ZkHVKiR6/7UTkZFBrLnjyer5llefC ebUQHB2JnuQyTzv8nLMLbyl4XBC7p4RVoTCdxAX+GbfxwthNEDWBBPf8kvldUQbhzk6Sp8 qBrvzbG1B4fH2jJpriEZ4CxZpYXuceQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710946528; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=atLlVj706ZI1z+w2Od3Pb5liz1wqI2QrZufnWv/g0fI=; b=CckUtufh1Nlld6V2VNOCsSQTwFG8xNe028kv8bHuHoiyjoYgUDKXm7crkS3LRlhg6b7jSC 9cGpVZ8bvEOUvQAg== From: Fabiano Rosas To: =?utf-8?Q?C=C3=A9dric?= Le Goater , qemu-devel@nongnu.org, Stefano Stabellini , Anthony Perard , Paul Durrant , Paolo Bonzini , Richard Henderson , Eduardo Habkost , "Michael S. Tsirkin" , Marcel Apfelbaum , Peter Xu , David Hildenbrand , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Hyman Huang Cc: Alex Williamson , Avihai Horon , Markus Armbruster , Prasad Pandit , =?utf-8?Q?C=C3=A9dric?= Le Goater , xen-devel@lists.xenproject.org Subject: Re: [PATCH for-9.1 v5 11/14] memory: Add Error** argument to the global_dirty_log routines In-Reply-To: <20240320064911.545001-12-clg@redhat.com> References: <20240320064911.545001-1-clg@redhat.com> <20240320064911.545001-12-clg@redhat.com> Date: Wed, 20 Mar 2024 11:53:14 -0300 Message-ID: <87msqtlztx.fsf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-2.69 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; BAYES_HAM(-2.89)[99.52%]; R_RATELIMIT(0.00)[to_ip_from(RL1oca9pgz4y56ab8sgtboxc4y)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_TWELVE(0.00)[20]; DBL_BLOCKED_OPENRESOLVER(0.00)[citrix.com:email,xen.org:email,suse.de:email]; FREEMAIL_TO(0.00)[redhat.com,nongnu.org,kernel.org,citrix.com,xen.org,linaro.org,habkost.net,gmail.com,smartx.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] Authentication-Results: smtp-out1.suse.de; none C=C3=A9dric Le Goater writes: > Now that the log_global*() handlers take an Error** parameter and > return a bool, do the same for memory_global_dirty_log_start() and > memory_global_dirty_log_stop(). The error is reported in the callers > for now and it will be propagated in the call stack in the next > changes. > > To be noted a functional change in ram_init_bitmaps(), if the dirty > pages logger fails to start, there is no need to synchronize the dirty > pages bitmaps. colo_incoming_start_dirty_log() could be modified in a > similar way. > > Cc: Stefano Stabellini > Cc: Anthony Perard > Cc: Paul Durrant > Cc: "Michael S. Tsirkin" > Cc: Paolo Bonzini > Cc: David Hildenbrand > Cc: Hyman Huang > Signed-off-by: C=C3=A9dric Le Goater Reviewed-by: Fabiano Rosas