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 4EEF0C87FCB for ; Mon, 4 Aug 2025 21:23:09 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uj2dx-0000Aj-Rm; Mon, 04 Aug 2025 17:22:54 -0400 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 1uj2du-0008W0-0A for qemu-arm@nongnu.org; Mon, 04 Aug 2025 17:22:50 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uj2ds-00085I-Fl for qemu-arm@nongnu.org; Mon, 04 Aug 2025 17:22:49 -0400 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-31f28d0495fso5218056a91.1 for ; Mon, 04 Aug 2025 14:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1754342567; x=1754947367; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=8SRHEIcqfurbwfU0xYLmg2MGMq+fWhVhfZ23PthYEz8=; b=ZntERK0bm8CJT0EP66MWY5A0kQlyLVtbSsR9jvfxjOh/if0PnKvOAjBIkVLRCPpSGw TnLMSfgUn/ijX93ui8xcmJRVvmo/Gy+D9NqDtPJVU1deRxM+f1SfYPWoMJjT3FgGnfGU yrxSSIZoHicNLX73FsrsZqVe1ZzVHVfHYK5+BChOdSUK0lccIDvizx7l4ssc8Or0ebka 7zS+nR1qjPldSEfff0dq+efWyf/R55INxAlPqMFhhgfrTsirIIV2WkLOh/IuOICzi9m+ i8VWrNZaJDObHwzCqZk1PLCuE6tmdN4c2KGLPCP+Y4oewETg7zaZ2oqG25tQl7ZnEbq1 1XeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754342567; x=1754947367; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8SRHEIcqfurbwfU0xYLmg2MGMq+fWhVhfZ23PthYEz8=; b=Z1cloaj8F4MaOibG9qbv/PMe/5EtnrpHdFG27zclOaHuQvSdR06of15TCNvYeghAl3 1Tqi8aiWmFIwDoo0N7q5Gflf9dl4s3NQlNh5RE9KZTi6qLA9Nrh739V+ZYUuVj7lBjMQ ef67ndNoCywURXsPp8ZdnpxkD4iZ6vc8KJ9fzHMHluzOO+Ldg8o3yOfevjhOP1x9HLrR iAPaPO6CTcue18WleVZpEb0FmowteqLTVRjw6ScInXI4PBxZGshxSBccjonwsFkjUVkn f94pNuyh/4atQHL8+M7uzEFx79g3M0nZqVGxVlp0kJJhJ/KVqMDHGDpq1ThpqcGrhxCL /8+A== X-Forwarded-Encrypted: i=1; AJvYcCWRFt7dQd0y/HSoBvQbO3WjcQ2TfB5HqV/eirhOJA4G6u5VDDuuNME9wukn4A9UQSpRer7Z/Q2Bmw==@nongnu.org X-Gm-Message-State: AOJu0Ywc2EWK+MHJheWktCk6+eJdPhrhUPPITIFcKEJxwG1MvRwwFfLA 346zBNV6uqCfxvEJM5qB61h18ABgJU5iLvMagCPTJdT2YSaqmDTaiBKFJymziGA4r6w= X-Gm-Gg: ASbGncvJrf9vpFJ0HgAyXCn5cuSOE7RC8eeiO0EdQWPcJa0tiQNuazVrajMagzeOzUw laTn1OXdDdb2nvnArDneTI7V+SofbGc69CMWlGxPqxAzpsn5ZlDTY/nBJJILeUnaWg9Q0d/YoPN BUCXUC5UE5CPBKfz12XhUdnteeB7imG89ADxNONJn9l5HuWJA/dkfZ680sOrABumdkkkLTSB+o4 q+y1p8ugoW0AZLqadofygB6nuJtFYVWYREfUl0GJPVOIwKl9bywBsCKPjDNQV8wiJyH73lzLU8D irA8e+VSQAipDtc1jQ8PZVNdHAa5ZCizVODATzGhM6QepLUO3RsTmbMGnDrpLDz0YFM0U3kNdIO /TtJXf/J9u+t3m0bsWAUKxK/2s/I2y1riYfxgvBSXdF4c2A== X-Google-Smtp-Source: AGHT+IF+E2k3dBAkj0K19KJ1oDET/fvDmyauBJReUhlRW5ogOfDfQMErUmgmlRyJDtz8+SM8rCK7lQ== X-Received: by 2002:a17:90b:3b42:b0:321:38e0:d58e with SMTP id 98e67ed59e1d1-32138e0da42mr6148100a91.3.1754342566600; Mon, 04 Aug 2025 14:22:46 -0700 (PDT) Received: from [192.168.1.87] ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b422bb19069sm9380714a12.65.2025.08.04.14.22.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Aug 2025 14:22:45 -0700 (PDT) Message-ID: Date: Mon, 4 Aug 2025 14:22:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Pierrick Bouvier Subject: Re: [PATCH v4 12/17] hw/arm: virt: cleanly fail on attempt to use the platform vGIC together with ITS To: Mohamed Mediouni , Peter Maydell Cc: qemu-devel@nongnu.org, Shannon Zhao , Ani Sinha , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Phil Dennis-Jordan , Roman Bolshakov , Igor Mammedov , Eduardo Habkost , Mads Ynddal , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Sunil Muthuswamy , Zhao Liu , "Michael S. Tsirkin" , Alexander Graf , qemu-arm@nongnu.org, Peter Maydell , Marcel Apfelbaum , Yanan Wang , Richard Henderson , Cameron Esfahani , Paolo Bonzini , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= References: <20250804142326.72947-1-mohamed@unpredictable.fr> <20250804142326.72947-13-mohamed@unpredictable.fr> <2BF73501-00C6-4194-B75C-CD50A8807314@unpredictable.fr> <2bb26ff6-8ee5-4255-b8df-27aec29b56a9@linaro.org> <9A4DE34A-784C-4501-B8AD-A93CBFB795B1@unpredictable.fr> Content-Language: en-US In-Reply-To: <9A4DE34A-784C-4501-B8AD-A93CBFB795B1@unpredictable.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pj1-x1032.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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 8/4/25 1:59 PM, Mohamed Mediouni wrote: > > >> On 4. Aug 2025, at 22:40, Pierrick Bouvier wrote: >> >> On 8/4/25 12:56 PM, Mohamed Mediouni wrote: >>>> On 4. Aug 2025, at 21:50, Pierrick Bouvier wrote: >>>> >>>> Is it equivalent to simply using its=off, or is there a difference? >>>> The info_report seems to imply it's not the same. >>> Not equivalent. >>> Regular system: GICv3 + ITS >>> This configuration (for the newest machine version): GICv3 with no MSIs >>> And its=off explicitly: GICv3 + GICv2m >>> It became not equivalent since the intro of GICv3 + GICv2m in patch 2 of this series. >>> >>> Thank you, >> >> I see. It could be worth adding this information to commit message. >> With that, >> Reviewed-by: Pierrick Bouvier >> >> Slightly off topic for this commit, is there any downside to always have GICv3 + GICv2m setup enabled? Do some systems don't support GICv2m? >> > GICv2m is modelled as a device external from the GIC, and so it can be emulated everywhere. > > It can be done but then it supposes that the same Qemu command line will expose a different device model (instead of just MSI support missing) when ran on a different system. Not sure that’s the right thing to do… > Indeed, it might be surprising, but on the other side, we already do something specific to whpx, so it might be better to choose the default offering the maximum support. From user point of view, the question is how hard it would be for them to guess what is missing in case they need MSI support, and didn't see the warning message about using its=off in this case. Peter, any opinion on this?