From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 CAE78C2B9F4 for ; Thu, 17 Jun 2021 10:27:11 +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 64F1B610A1 for ; Thu, 17 Jun 2021 10:27:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64F1B610A1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltpEs-0004YJ-Iy for qemu-devel@archiver.kernel.org; Thu, 17 Jun 2021 06:27:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltovT-0002Wq-O6 for qemu-devel@nongnu.org; Thu, 17 Jun 2021 06:07:07 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:36826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltovR-0006Ra-Vi for qemu-devel@nongnu.org; Thu, 17 Jun 2021 06:07:07 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A758421B02; Thu, 17 Jun 2021 10:07:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623924424; 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=+H9wrLTUYTZ9Zi5MQJfgaVHmVgh36zckt4yHu09ni7Y=; b=eJLWzGh7+UewQruB8pEY6SGCCtZ4UsnKcMKFpramXVjVkxLOzgmlgpx8UBVPGmu8wPzmVj 0Gbzq9e1IfQ6fx1A9Aq6bXyD5+KDxt2IItyUIziQEYfQoaA87hZhZWHA2zDxlc/YxQS0f6 Pxrs/zD8L7rkqRyq9QiRWMNTcq6RXrw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623924424; 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=+H9wrLTUYTZ9Zi5MQJfgaVHmVgh36zckt4yHu09ni7Y=; b=u0F9zRdAnsHoRPl/2rZxyNJhB7NK7Ou4WqBghwJ+nD/wF8dFI5wTeFMLaNtpofN7W5UNJh 3BLV0uufdf2kTgDQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 5B0FF118DD; Thu, 17 Jun 2021 10:07:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1623924424; 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=+H9wrLTUYTZ9Zi5MQJfgaVHmVgh36zckt4yHu09ni7Y=; b=eJLWzGh7+UewQruB8pEY6SGCCtZ4UsnKcMKFpramXVjVkxLOzgmlgpx8UBVPGmu8wPzmVj 0Gbzq9e1IfQ6fx1A9Aq6bXyD5+KDxt2IItyUIziQEYfQoaA87hZhZWHA2zDxlc/YxQS0f6 Pxrs/zD8L7rkqRyq9QiRWMNTcq6RXrw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1623924424; 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=+H9wrLTUYTZ9Zi5MQJfgaVHmVgh36zckt4yHu09ni7Y=; b=u0F9zRdAnsHoRPl/2rZxyNJhB7NK7Ou4WqBghwJ+nD/wF8dFI5wTeFMLaNtpofN7W5UNJh 3BLV0uufdf2kTgDQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id Bx4MFMgey2CuWQAALh3uQQ (envelope-from ); Thu, 17 Jun 2021 10:07:04 +0000 Subject: Re: [PATCH 0/4] modules: add support for target-specific modules. To: Gerd Hoffmann References: <20210610101553.943689-1-kraxel@redhat.com> <5953598.eXybCX72BP@pizza> <20210615050930.bmgup2axfr7sqvoa@sirius.home.kraxel.org> <2963309.4TrVdrBa0x@pizza> <20210616092815.rjznyjnvgrrfojq6@sirius.home.kraxel.org> <20210617053759.uibvdpu2wtq3fqwv@sirius.home.kraxel.org> <2be72be7-5c3f-e25d-fb84-cf58b573bf27@suse.de> <20210617094811.gatatv7vla2rxqgc@sirius.home.kraxel.org> From: Claudio Fontana Message-ID: Date: Thu, 17 Jun 2021 12:07:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20210617094811.gatatv7vla2rxqgc@sirius.home.kraxel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=195.135.220.28; envelope-from=cfontana@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -45 X-Spam_score: -4.6 X-Spam_bar: ---- X-Spam_report: (-4.6 / 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=-0.17, 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: =?UTF-8?Q?Daniel_P=2e_Berrang=c3=a9?= , "Michael S. Tsirkin" , Christian Schoenebeck , Greg Kurz , "qemu-devel@nongnu.org" , =?UTF-8?Q?Jos=c3=a9_Ricardo_Ziviani?= , Paolo Bonzini , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 6/17/21 11:48 AM, Gerd Hoffmann wrote: > Hi, > >> Do we need to be able to unload modules that we previously loaded? Or is this not a realistic requirement? > > Surely doable, but it's work and needs infrastructure we don't have > right now. We must be able to unregister everything modules can > register, which is only partly the case today. We need usage counters > so we can figure whenever a module is in use or not. Maybe more. > > I don't see a use case justifying that work. If unloading a QEMU module is indeed not a requirement for QEMU itself, or frameworks which use it, do we see optimization opportunities as a consequence? > > The linux kernel can unload modules (when enabled at build time), and > pretty much the only reason I've ever used that is device driver > development: test new driver version without reboot (as long as you > don't make a mistake which Oopses the kernel ...). > > take care, > Gerd > Ciao, Claudio