[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 4/6] xen/p2m: move xenmem_access_to_p2m_access() to common p2m.c
- To: Jason Andryuk <jason.andryuk@xxxxxxx>
- From: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
- Date: Thu, 15 Jan 2026 18:09:00 -0500
- 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=1768518611; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=siaeCtKqcCym2YtgRvOP6EB2cSKk/5lXJOvehqUu0Qw=; b=eBuiZwtYYRI69M3hIBh3AKM6p0r67aEQFdvVvunDmPPXmqX6XUg5mznYjMJ52e36rlegEv80COPuo93+4LQINmC/f4ZVXv9j1JFJhBoy1Yp9jFDHE/mGbV2kY5cTGQOVKqwwFAm6eLSTAFQizZy1DVYOrpi5ClHQzG9rkST9MrY=
- Arc-seal: i=1; a=rsa-sha256; t=1768518611; cv=none; d=zohomail.com; s=zohoarc; b=n869em04m5spi5M/gM3TTvQJycSh60+EuBK/MvRkENyilLSTTQFtwO5IVb0Y3QYx4V+Dc3XmzyFpNALowau1F0oYTgPngt5SxSbQqlgbSMpFBvIoul47BGnITY67qoktEOeN1eqzOnfzetxTdFEuYrHlh/wC+Ctxono40eMFcSg=
- Cc: Penny Zheng <Penny.Zheng@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, ray.huang@xxxxxxx, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Thu, 15 Jan 2026 23:10:16 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2026-01-15 04:28, Penny Zheng wrote:
> Memory access and ALTP2M are two seperate features, while both depending on
> helper xenmem_access_to_p2m_access(). So it betters lives in common p2m.c,
> other than mem_access.c which will be compiled out when VM_EVENT=n && ALTP2M=y.
> Guard xenmem_access_to_p2m_access() with VM_EVENT || ALTP2M, otherwise it
> will become unreachable when both VM_EVENT=n and ALTP2M=n, and hence
> violating Misra rule 2.1
> We also need to move declaration from mem_access.h to p2m-common.h
> An extra blank line is inserted after each case-block to correct coding
> style at the same time.
>
> Signed-off-by: Penny Zheng <Penny.Zheng@xxxxxxx>
> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
|