Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22A9CC4338F for ; Mon, 16 Aug 2021 12:35:37 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CCF2863261 for ; Mon, 16 Aug 2021 12:35:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CCF2863261 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:38900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFbq3-0003qW-TQ for qemu-devel@archiver.kernel.org; Mon, 16 Aug 2021 08:35:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFbos-00035B-Tp for qemu-devel@nongnu.org; Mon, 16 Aug 2021 08:34:22 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:44842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFbor-0008Rm-Fo for qemu-devel@nongnu.org; Mon, 16 Aug 2021 08:34:22 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C2DA921E57; Mon, 16 Aug 2021 12:34:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629117258; 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=wr7gW8ch6IdlMgPQEe9x3OeMpE4O3mf1a6ki5gR/IkM=; b=KGpQUqeWSnUqtOMleqehinpM78fRT+F53NzlBq9ElDospDhuf/HygCo6E7suyv0xa/EH12 3dCRV8tZ/pLyRaBYL2ywEluR++LVAh5lXyCc15HBVVGZ70iHvmKfaMIOfeKVSapoIhK2vt mze2Z+MIOnmCjABMyQG15uEcmSCClPA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629117258; 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=wr7gW8ch6IdlMgPQEe9x3OeMpE4O3mf1a6ki5gR/IkM=; b=Bj5/XBiQOJ7fwGyW788vxcb4Crb3M/4H5+Lz1MvUMveC417pGi4xRbq9Wvv7IRUCCT3D1P BFXGuVsXIdO/JVDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CF8CC13B0A; Mon, 16 Aug 2021 12:34:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id LjkSJUlbGmGLegAAMHmgww (envelope-from ); Mon, 16 Aug 2021 12:34:17 +0000 Subject: Re: [PATCH] vga: don't abort when adding a duplicate isa-vga device To: Gerd Hoffmann , Thomas Huth References: <20210813233619.32178-1-jziviani@suse.de> <9dd25d6d-b9ba-0000-96a0-451fd1b28c56@redhat.com> <20210816050555.k63uuhqhbloarcj2@sirius.home.kraxel.org> From: Jose Ricardo Ziviani Message-ID: <89988201-e41c-89df-686e-243c34cc7d0f@suse.de> Date: Mon, 16 Aug 2021 09:34:11 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210816050555.k63uuhqhbloarcj2@sirius.home.kraxel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=195.135.220.28; envelope-from=jziviani@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -80 X-Spam_score: -8.1 X-Spam_bar: -------- X-Spam_report: (-8.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-3.71, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hello Thomas and Gerd, Thank you for reviewing it. Sending a v2 soon. Thank you very much! On 16/08/2021 02:05, Gerd Hoffmann wrote: > Hi, > >>> + if (qemu_ram_block_by_name("vga.vram")) { >>> + error_report("vga.vram is already registered, ignoring this device"); >>> + return; >>> + } >> I think we should not ignore the error, but rather turn this into a proper >> error (instead of aborting). > Yes. Silently fixing up things automatically tends to be worse long-term. > > take care, > Gerd >