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.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 smtp.lore.kernel.org (Postfix) with ESMTPS id 35A27C02180 for ; Wed, 15 Jan 2025 08:52:49 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tXz8C-0007Bz-2V; Wed, 15 Jan 2025 03:52:08 -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 1tXz88-0007Bh-BR for qemu-riscv@nongnu.org; Wed, 15 Jan 2025 03:52:04 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tXz86-0000Er-Pd for qemu-riscv@nongnu.org; Wed, 15 Jan 2025 03:52:04 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3862b40a6e0so3444780f8f.0 for ; Wed, 15 Jan 2025 00:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736931121; x=1737535921; 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=s7if4vkYI6vy13WnUU24Jcsd6oMt/MiKFZwJ84dcQU0=; b=dJ+PrDYKIeLxx+KJoY+k+wqNXH50cJ7NlNkG2tZpLdmi6txV/zpEpQz8IUwiZepMQi ElnmvfiEWn1qZbJH4bQuI+M59Sjh5bk0ivI6NzBmQV6lmJvctO3CRAMhSrPu8xePJmCZ vF7qVafpMZF25JCASOx1elEx3dBiNNs7Hu9Vmz8YD8V3WQPh6kZEoHnoaxLnZ5GdTDrN vBOcR0rv9iPF1bJpffv/EiwP5cuf7rkJuZ5fjwPd5SnJ2LAKOKCdNKup02R31awIpXXC IbK8C0YIcWu740uhDaDXW3NLXEqAkyMb15mIbIpmV/5WcxN9rDiKmdqCE9lRo0hEvqaA asdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736931121; x=1737535921; 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=s7if4vkYI6vy13WnUU24Jcsd6oMt/MiKFZwJ84dcQU0=; b=IyyEOCFd5Ytqt3ntufH+h6GmI/cNLRh8IRjoN4TjeZjZAfkZU8m0Qp1JGqvq2wtUUC DDo9QfFzd62nT7GfrHneM/geeuvqUO4UNQs2IoprCIDcgP6kTp37O5W6UR9TJFIdxLx3 iE71I33ebjBx1LJEa+4DwS7AYU6qGsow3BDoU+lcT3F6WpBNq7ZI97nE6ubhE2jsnvMv qbkRkiIpcPAoK/EsDwX9XDLkPShyKUlZc1gK1WFz0kF1PXZ348Oj4Ko9ahnR7xoZctnZ og7l9aTCuVEScymcTMKwOFIhzTs1ZCPFssJ+bEjbPak+rRXsOAo6g0DrYggvtBYKl/Qq nmIQ== X-Forwarded-Encrypted: i=1; AJvYcCXhjUYQmv12wq1OcjMmjGEzvLEuUBiyijiQfV24kQorCZR5t8ZBtsJhN3Oagx9spQECPomjUqb7nMJM@nongnu.org X-Gm-Message-State: AOJu0YxzXCQzS5cTqGBUWFKOeL1oQT1/qq8NhKr53+yhjv/d9TaOT+wR KZcBsjbjSX5lOlqH+D3j6yYbucv2xod5Rpxt1I6Yi+3bRPJFDAyGG9s9MOSHl5Q= X-Gm-Gg: ASbGncu/gP1kOPRXgICvRIOuUAAW6uV2ANqIRJUGcS6P17v7+wKT6ZAfGZZ3rUTSDgu 5tMGBnywhS7OFtVDQ3M8WDICFdRGAMI69nwdydx3zHErI+5cNaXq5ddAkk4zvYX8e6/EIMKDPYB YZVrv0deTuBIsv1I0UlAlYfW7L9UgBLOu6LKY25GaN8Z1WjavNa6B8VH1Hxkjp2Ce5KA6SFhjXv /PdzrRnNoJ8eha/wKsUvbWvZlZbOQpSh1kmnK7Hcv00eH+qTZIJSIn4LhpW/J6Uoo+KlPYbtLvI S9q2wN41xF2YT+IBjD77icOQ X-Google-Smtp-Source: AGHT+IGTv9EsLHcjuUbs267rq+dKbq0PuleQSHP0RGOIa34MTvERJ7pf1SHY6vUEdWRg7TPGPHADtA== X-Received: by 2002:a5d:6d02:0:b0:385:df43:223c with SMTP id ffacd0b85a97d-38a87303941mr26591847f8f.13.1736931120935; Wed, 15 Jan 2025 00:52:00 -0800 (PST) Received: from [192.168.69.181] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a8e4b81e4sm17302021f8f.64.2025.01.15.00.51.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jan 2025 00:52:00 -0800 (PST) Message-ID: Date: Wed, 15 Jan 2025 09:51:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] hw/riscv/riscv-iommu: Remove redundant struct members To: Jason Chien , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Andrew Jones References: <20250115064737.16350-1-jason.chien@sifive.com> Content-Language: en-US From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20250115064737.16350-1-jason.chien@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 15/1/25 07:47, Jason Chien wrote: > Initially, the IOMMU would create a thread, but this thread was removed in > the merged version. The struct members for thread control should have been > removed as well, but they were not removed at that time. ... in commit 0c54acb8243 ("hw/riscv: add RISC-V IOMMU base emulation"). > > Signed-off-by: Jason Chien > Reviewed-by: Daniel Henrique Barboza > Reviewed-by: Andrew Jones > --- > hw/riscv/riscv-iommu.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/hw/riscv/riscv-iommu.h b/hw/riscv/riscv-iommu.h > index 9424989df4..fa8a50fa24 100644 > --- a/hw/riscv/riscv-iommu.h > +++ b/hw/riscv/riscv-iommu.h > @@ -58,11 +58,6 @@ struct RISCVIOMMUState { > /* interrupt notifier */ > void (*notify)(RISCVIOMMUState *iommu, unsigned vector); > > - /* IOMMU State Machine */ > - QemuThread core_proc; /* Background processing thread */ > - QemuCond core_cond; /* Background processing wake up signal */ > - unsigned core_exec; /* Processing thread execution actions */ > - > /* IOMMU target address space */ > AddressSpace *target_as; > MemoryRegion *target_mr;