All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Roger Pau Monné" <roger.pau@citrix.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Julien Grall" <julien@xen.org>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Oleksii Kurochko" <oleksii.kurochko@gmail.com>,
	"Shawn Anastasio" <sanastasio@raptorengineering.com>,
	Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v5 1/3] xen/mm: Introduce mm-types.h
Date: Fri, 25 Apr 2025 14:05:08 +0100	[thread overview]
Message-ID: <74bf3a58-6c90-4123-80e3-b72ba67ea46d@citrix.com> (raw)
In-Reply-To: <e5c6b448-945c-4c93-a3d6-e6e598102c2b@suse.com>

On 25/04/2025 1:48 pm, Jan Beulich wrote:
> On 25.04.2025 13:24, Andrew Cooper wrote:
>> The type used for pagetable attributes/permissions is currently unsigned int,
>> but needs to become architecture dependent as PPC needs unsigned long.
>>
>> Introduce mm-types.h to house pte_attr_t.
>>
>> Given the new toolchain baseline, we can use __has_include() now to remove the
>> need for boilerplate on most architectures.
> That's true now, when it's just pte_attr_t that's there. Memory management,
> however, is pretty different between architectures, so I wonder if in the
> longer run any one will remain that actually can use the common header.

Anything in xen/mm.h is common and needs architectures to provide (or
use the defaults) the bits required.

asm/mm{,-types.h} still exist (when necessary) to provide the
arch-specific extensions.

~Andrew


  reply	other threads:[~2025-04-25 13:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-25 11:24 [PATCH v5 0/3] xen/mm: Introduce pte_attr_t Andrew Cooper
2025-04-25 11:24 ` [PATCH v5 1/3] xen/mm: Introduce mm-types.h Andrew Cooper
2025-04-25 11:29   ` Oleksii Kurochko
2025-04-25 12:45     ` Jan Beulich
2025-04-25 12:49       ` Andrew Cooper
2025-04-25 12:48   ` Jan Beulich
2025-04-25 13:05     ` Andrew Cooper [this message]
2025-04-25 13:13       ` Jan Beulich
2025-04-25 13:48         ` Andrew Cooper
2025-04-25 14:42           ` Jan Beulich
2025-05-01 19:42   ` Stefano Stabellini
2025-04-25 11:24 ` [PATCH v5 2/3] xen/mm: Switch some APIs over to pte_attr_t Andrew Cooper
2025-04-25 11:33   ` Oleksii Kurochko
2025-05-01 19:42   ` Stefano Stabellini
2025-04-25 11:24 ` [PATCH v5 3/3] ppc/mm: Introduce mm-types.h Andrew Cooper
2025-04-25 11:37   ` Oleksii Kurochko
2025-04-25 11:39     ` Andrew Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74bf3a58-6c90-4123-80e3-b72ba67ea46d@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=bertrand.marquis@arm.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=oleksii.kurochko@gmail.com \
    --cc=roger.pau@citrix.com \
    --cc=sanastasio@raptorengineering.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.