map_domain_page_global() uses vmap under the hood, which is set up immediately
after switching to SYS_STATE_boot. Relax the local_irq_is_enabled() part of
the assertion before Xen has finished booting, so map_domain_page_global() can
be used duing SMP preparation.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
void *map_domain_page_global(mfn_t mfn)
{
- ASSERT(!in_irq() && local_irq_is_enabled());
+ ASSERT(!in_irq() &&
+ ((system_state >= SYS_STATE_boot &&
+ system_state < SYS_STATE_active) ||
+ local_irq_is_enabled()));
#ifdef NDEBUG
if ( mfn_x(mfn) <= PFN_DOWN(__pa(HYPERVISOR_VIRT_END - 1)) )