On 21.06.2024 13:40, Petr Beneš wrote: > On Thu, Jun 20, 2024 at 9:25 AM Jan Beulich <jbeul...@suse.com> wrote: >> Not exactly. You may not assert on idx. The assertion, if any, wants to >> check d->nr_altp2m against MAX_EPTP. > > In addition to the check in arch_sanitize_domain? As a safeguard?
Well. Such an assertion can only validly be put anywhere because of the checking done in arch_sanitize_domain(). You can view such assertions as both a safeguard and as a comment-like thing. Jan