[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v12 1/6] altp2m: Drop p2m_altp2m_check() stubs on non-x86, move prototype, and guard uses
- To: Petr Beneš <w1benny@xxxxxxxxx>
- From: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
- Date: Fri, 22 Aug 2025 19:01:35 -0400
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=tklengyel.com; spf=pass smtp.mailfrom=tamas@xxxxxxxxxxxxx; dmarc=pass header.from=<tamas@xxxxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1755903733; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=Cvwk5vsCAJavQOCGfAxBnQH0MMNtw9Z4c5BKExmtyrw=; b=lkAUVi7hh39k9KWmhrjO807DSguYM72Bnresz4QydOHUNHqN5lzVzP9Z9UqytxLP8+oVxDO3iGUCWq2sL2rW82FN/1SRHQkwZF/o3IHUrP0qLP2I8+aaO94Bx2gWfMfjWCY/8QPkMQX65T9qsT50C7uYm+Kpu3b/BntSCReUQUU=
- Arc-seal: i=1; a=rsa-sha256; t=1755903733; cv=none; d=zohomail.com; s=zohoarc; b=bj3TBd5SHvdzTWrRtNiuo9dKCWMaJ1HSVaZYROx9DBCjG0qd+RGf2l8mGL5e1ooGxnzh3D7ZUSsuxN/ys6pnbx+zngXFc/XNZ1c8k7NAkVkT7da9L7WvAkM/3j/rnhxXsiyMk9M0gu4BpDIQwzAnY5E0kcG0TheO50RTalnpzsM=
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>
- Delivery-date: Fri, 22 Aug 2025 23:02:34 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Jul 31, 2025 at 5:28 AM Petr Beneš <w1benny@xxxxxxxxx> wrote:
>
> From: Petr Beneš <w1benny@xxxxxxxxx>
>
> Remove the no‑op stubs from the ARM, PPC, and RISC‑V p2m headers and stop
> providing a stub in arch/x86/include/asm/p2m.h.
>
> Declare p2m_altp2m_check() in xen/include/xen/p2m-common.h and gate all
> call sites with CONFIG_ALTP2M:
> - wrap the fast_single_step block in hvm/monitor.c with #ifdef CONFIG_ALTP2M
> (IS_ENABLED(CONFIG_ALTP2M) is not used here, because in the subsequent
> commit
> hvm_vcpu::fast_single_step will be guarded by CONFIG_ALTP2M)
> - make the vm_event.c path conditional via IS_ENABLED(CONFIG_ALTP2M)
>
> No functional change intended: on builds without ALTP2M the calls are
> compiled out; on builds with ALTP2M behavior is unchanged.
>
> Signed-off-by: Petr Beneš <w1benny@xxxxxxxxx>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
vm_event/monitor bits:
Acked-by: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
|