The idle_pg_table L4 is cloned to create all the other L4 Xen uses, and hence
it shouldn't be modofied once further L4 are created.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Could idle_pg_table also be placed in .data.ro_after_init also?
mfn_t l3mfn;
l3_pgentry_t *l3t = alloc_mapped_pagetable(&l3mfn);
+ /*
+ * dom0 is build at smp_boot, at which point we already create new L4s
+ * based on idle_pg_table.
+ */
+ BUG_ON(system_state >= SYS_STATE_smp_boot);
+
if ( !l3t )
return NULL;
UNMAP_DOMAIN_PAGE(l3t);