Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1tVBqN-0004sM-M5 for mharc-qemu-rust@gnu.org; Tue, 07 Jan 2025 10:50:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVBqJ-0004la-7W for qemu-rust@nongnu.org; Tue, 07 Jan 2025 10:50:08 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tVBqG-0006tL-NA for qemu-rust@nongnu.org; Tue, 07 Jan 2025 10:50:06 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43623f0c574so108488645e9.2 for ; Tue, 07 Jan 2025 07:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736265002; x=1736869802; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8uL7tmd9mUIlLYCOLx9MrU0lzClIZcU9iuDszLT0rGM=; b=A9yWLIHCpAye+K4c0OcvIyWvgFEIXwsS86e2rPQdLGsY3GjHyM2gyIV772jVORkutM mN+JGRfZvTvEtSO4mRVIO3HhYtaGIhtrgTDemwIqBMCEdS2CDFbQgY5EG/7gGlzKQVZi iKOkfNJRTJHFJcdCe3a5F34VSQKFjRcawEesYvzMxg93Axap+ES80tvc2Wpvk2D15xGo Ay2nXHzk02BRlCO18XqsO1RU2V4Mu6w1Az7IWwFlbzrUwcnks6oINOlaFIEOveJjZxiM p7Qb1Bq9TusPf2pTZ6G9UFzsjxxo78yN6UgmDrSU10z4OBSon9k4KsTcm/lXaeq5ks21 yjHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736265002; x=1736869802; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8uL7tmd9mUIlLYCOLx9MrU0lzClIZcU9iuDszLT0rGM=; b=DHjLJ+IhZQGtxasFy3c0VW35FGsjM+3B5kmmLe8SeKlrceiPLyUVSte/FdmdNRQyOr DDsiUAByGZ2o1izzyrj4dwxN5LBnzBYjK3PQR66vw8r6S9ArF3UKC848T7838c4YAUE/ crAwqonTGVeih6WhybktOIV1nr0STwDDWhZGW+l5+AIDLGxd6PaiOxV5HyAEH3qFemY/ ZR9+iR2ek1fEWRnSYJgYkTIP4UUAngeymijHMQ3VpMnGXATN4PT0W3WfZ0EmOnvqNCy6 DQuuirFm8lhj01Xi+w1i4k9Nz8lXd66Zi0qlKNE9bNAp/CGGkCTzBFV4PEvYPaL+4a1p klSA== X-Forwarded-Encrypted: i=1; AJvYcCUhkNJbk/gLlB8Xy6bn3q6aDjvf2Ptx3tyKAM/39bCyN4H7B81D8K1+9KigUjJuFtdsjFCbA8lfFpo=@nongnu.org X-Gm-Message-State: AOJu0YyC82Q1ISUpchr99l+Mc2Lp7u80oqecAg9NuuFS1gjDwJgn352p FilXg/RPzhzO3OfLHy6Lr/owNw1STuXoy8t+TIh+EvLqeWsrIZufPCUmVOKfaCE= X-Gm-Gg: ASbGncvilumEmAo94M44AEmqq3OCstTUNcUaAXJgnNuSWiw06uGkD6lzjtwm7woKM5I gMgpF/Q/tnhHW4sbwriKnSKIE9kp0FYhaZ+x6RHiW+b1dpwYGhdvKyJoFuFz42UpUZ8TDcTpsdW AQxFszFVya7AgJeRuOGUx5KtNNmvL7tO6SRfACRbXKstu70CYLr8E7OXeY7NstC9LXzXpwvHj2y GiApTTi5gQOErOAL6L/w+yR2HulM+fdsO06R7kFlpOQ1ANB9j4eRBe/7QrOKBURVJ2jRJA0z2r1 4EpvvGEbSvdj6ezmYwo0E3J2 X-Google-Smtp-Source: AGHT+IH2N2hCHNT/GIol2eJD86r2KacZ7DsYBYv5HDoCWQc5TzhLGRQGqYZv+cTpjM3sxWJYR6eRSQ== X-Received: by 2002:a05:600c:450f:b0:434:f5c0:32b1 with SMTP id 5b1f17b1804b1-436686461f0mr584402155e9.15.1736265002478; Tue, 07 Jan 2025 07:50:02 -0800 (PST) Received: from [192.168.69.132] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656b119b6sm640027315e9.22.2025.01.07.07.50.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jan 2025 07:50:01 -0800 (PST) Message-ID: Date: Tue, 7 Jan 2025 16:50:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PULL 25/41] rust: qom: put class_init together from multiple ClassInitImpl<> To: Zhao Liu , Paolo Bonzini Cc: Peter Maydell , qemu-devel , qemu-rust@nongnu.org, =?UTF-8?Q?Alex_Benn=C3=A9e?= , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= References: <20241219083228.363430-1-pbonzini@redhat.com> <20241219083228.363430-26-pbonzini@redhat.com> Content-Language: en-US From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-rust@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: QEMU Rust-related patches and discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2025 15:50:09 -0000 On 7/1/25 16:55, Zhao Liu wrote: > On Mon, Jan 06, 2025 at 04:21:16PM +0100, Paolo Bonzini wrote: >> Date: Mon, 6 Jan 2025 16:21:16 +0100 >> From: Paolo Bonzini >> Subject: Re: [PULL 25/41] rust: qom: put class_init together from multiple >> ClassInitImpl<> >> >> Il lun 6 gen 2025, 14:32 Peter Maydell ha >> scritto: >> >>> I think here I agree with Philippe that we might as well >>> provide only the new API to Rust devices. >>> >> >> Ok, I wasn't thinking of doing that because there isn't right now an easy >> way to add interfaces to Rust-defined classes. However, all devices are >> Resettable and Device isn't defined in Rust, so it's not hard to add a >> ResettableImpl trait in rust/qemu-api/srv/qdev.rs, and initialize it for >> all devices. >> >> If anybody wants to do it as an exercise, I am happy to help, otherwise I >> can prepare a patch too. >> > > If possible and if no one else wants to practice, I would also like to > give it a try (I'll add it to my list). Go ahead! (I'm very busy right now) Thanks :)