[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 25/39] xen/riscv: add guest load emulation for trapped MMIO accesses
- To: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
- From: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
- Date: Tue, 22 Sep 2026 13:22:32 +0200
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=20251104 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:Content-Type:In-Reply-To:From:Content-Language:References:Cc:To:Subject:User-Agent:MIME-Version:Date:Message-ID"
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Romain Caritey <Romain.Caritey@xxxxxxxxxxxxx>, Zheng Zhang <zhangzheng@xxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Tue, 22 Sep 2026 11:22:38 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
@@ -179,8 +178,7 @@ static void resolve_faulting_gpa(struct guest_fault *gf)
* Relies on x0..x31 being laid out at the start of struct cpu_user_regs in
* architectural register-number order; see the comment there.
*/
-static __maybe_unused unsigned long *guest_gpr(struct cpu_user_regs *regs,
- unsigned int reg)
Could we unified this function with regs_get_gpr()?
I think it could. I will try to do in the unified way.
Thanks!
~ Oleksii
|