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 lists1p.gnu.org (lists1p.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 84EB0CCFA13 for ; Thu, 30 Apr 2026 13:34:52 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wIRXW-00052s-RW; Thu, 30 Apr 2026 09:34:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wIRWb-0004tP-1u for qemu-arm@nongnu.org; Thu, 30 Apr 2026 09:33:53 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wIRWY-0003NT-A0 for qemu-arm@nongnu.org; Thu, 30 Apr 2026 09:33:52 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-488b0e1b870so15679145e9.2 for ; Thu, 30 Apr 2026 06:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777556028; x=1778160828; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dEpvF3607F+qemfhpeYGfsinknF3G0PYbhra3ynjbnU=; b=sVoMLJ170faQeixgmjKgvFUrOzt59dlOEK3wKzW4bJBeFyuMOQh4uUS+og47/EEaL6 R9LY+9gSAdEFX4WDpwJNQbIAOOtnSuvR4w/65TwwqzHi6nH470ShH2lSH5AajbMqXPxx KAz21NVNX/630rjG8xJMb9gZU4mkMfcrO3aOaqsvmVudH8KQBdj31o5wNbvfiin/05Tc e3XYr4yYhES09D1eJzTZAxT9/TPMjL/m40y3VMde/u2C5djOp+JL22AttBz4fb27b4G0 NMV946sHsOaEbi3ezLefceIYIGU9KNo7KqGblo1XSdVtENBS25kP/OsLgMKmDaqoaa/j /RqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777556028; x=1778160828; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dEpvF3607F+qemfhpeYGfsinknF3G0PYbhra3ynjbnU=; b=FuZbBX1G5XSKn5YGQmAOlUcjie3lD36E4uAXNv8ADHMTfbLE0WkorvmWBWkamCVYkb LNyNz0bkYo2RFdvgviZUt2ia3pDkl3lAglIQ7aJILmfyzEnG3yC8u6cRgRr4Bbdk/LB7 rczIejfs7NL7HGB3Bq6ilrCzIrXUjBdl9Zf6ySRHZhm0q6Ct0Fq9DxTAxDKV7Q9N6QOe sgN6E85aoZEEO3Eh/utSvVG26BwPta794elKyd/m9ElEJuQy9/UGYvhZABisc17NW8fg nrDaJooI7gKnVqE2gNpgyMSGUsPZYVWr1UszNf9QqKPRPBFMt7qoXkxtictW96Z6W0s8 kI+Q== X-Gm-Message-State: AOJu0Yy1IcmrX/NcWu4DMClDwxg15uGWuycxIrz9k9JPmcrq4trOeK2Z g/BTc8q2ZKgd1OTU6YduAyO9OdvhkAbE9kSPZ02UocoMwH2E0eJfCJD50wfkT3SS9/0= X-Gm-Gg: AeBDievA1me4qBylaw9o+660f4NoOyKRAeUfkaIpvIGzss2TYFk/YFyRgQybjtB2Oyk AjDIPSse7Ex82CCV6f+f9qMyovr4vbB45pfJgB1PQ7OX7uHjtZ0RWQzwtFIg66u/3tR7ZaVaPiv PZ/fhCh99MysIdj0pwEKPO+DxicnoQHERp8Gjtjwzsjno4SYs7F5pfbTCyi1zcf+SDm+EVH07Bu 4r1XvOCAJc5t+ikfkxdvFoR1/1TYIV4AmllVBQNWux73iCqPt9TSQy0WiG7ybXBxbHhiI6ka/ya phHmx7w4gX/CqntJ2mNSzIazvihpGGO5YYT5/edQwClBFjOvNsq+TQqKV+59tbPPqZYOCpe03Ak KzyQb4SJq4HQjsaelsLCwB/bnvMcHYUsOnbYw717reC3hnKTwQJ72CD8M3kWTREguu+dNn5U9Lj q4v6duY7i8KAS1fEd0HfUDtED9tCKlahmv1iV37p2eY/W3ZFcdTtZAJre7uAhBPYYNWSI7MAVIq 1Gp X-Received: by 2002:a05:600c:3e8d:b0:48a:53ea:140b with SMTP id 5b1f17b1804b1-48a844a4728mr50392305e9.28.1777556027849; Thu, 30 Apr 2026 06:33:47 -0700 (PDT) Received: from [192.168.69.210] (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a7c310048sm40810635e9.22.2026.04.30.06.33.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Apr 2026 06:33:47 -0700 (PDT) Message-ID: <71c7f6ef-e22d-4fd8-b57f-1408c1aabaf6@linaro.org> Date: Thu, 30 Apr 2026 15:33:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 01/25] hw/i386/vapic: Cope with non-page-aligned return from cpu_get_phys_page_debug() Content-Language: en-US To: Peter Maydell , qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, Marcel Apfelbaum , Yanan Wang , Zhao Liu , Paolo Bonzini , Richard Henderson , "Dr. David Alan Gilbert" , =?UTF-8?Q?Alex_Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour , Peter Xu , "Edgar E. Iglesias" , Jiaxun Yang , Nicholas Piggin , Chinmay Rath , Glenn Miles , Palmer Dabbelt , Alistair Francis , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Chao Liu , Ilya Leoshkevich , David Hildenbrand , Mark Cave-Ayland , Artyom Tarasenko , Max Filippov References: <20260430093810.2762539-1-peter.maydell@linaro.org> <20260430093810.2762539-2-peter.maydell@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20260430093810.2762539-2-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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 30/4/26 11:37, Peter Maydell wrote: > Currently the i386 implementation of get_phys_page_debug() always > returns an address aligned to a page boundary, and the vapic.c code > assumes this: it adds back in the page offset after the call. Change > this to OR in the page offset, so that it works whether > cpu_get_phys_page_debug() returns the page address or the exact > physical address. This will mean the code continues to work when > we change the semantics to standardize on "return exact > physical address". > > Signed-off-by: Peter Maydell > --- > hw/i386/vapic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé