Constructing dom0 may take a few seconds, particularly if the slow VESA
graphics terminal is used. Process pending softirqs a few times to avoid
tripping a watchdog with a short timeout.
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Move inclusion of xen/softirq.h (and at once clean up other includes).
Signed-off-by: Jan Beulich <jbeulich@suse.com>
BUG_ON(d->vcpu[0] == NULL);
BUG_ON(v->is_initialised);
+ process_pending_softirqs();
+
printk("*** LOADING DOMAIN 0 ***\n");
d->max_pages = ~0U;
_p(v_start), _p(v_end));
printk(" ENTRY ADDRESS: %p\n", _p(parms.virt_entry));
+ process_pending_softirqs();
+
mpt_alloc = (vpt_start - v_start) + pfn_to_paddr(alloc_spfn);
if ( vinitrd_start )
mpt_alloc -= PAGE_ALIGN(initrd_len);
ELF_HANDLE_PTRVAL(note) < parms->elf_note_end;
note = elf_note_next(elf, note) )
{
+#ifdef __XEN__
+ process_pending_softirqs();
+#endif
+
if ( *total_note_count >= ELF_MAX_TOTAL_NOTE_COUNT )
{
elf_mark_broken(elf, "too many ELF notes");
#ifdef __XEN__
-#include <xen/config.h>
-#include <xen/types.h>
-#include <xen/string.h>
#include <xen/lib.h>
#include <xen/libelf.h>
+#include <xen/softirq.h>
#include <asm/byteorder.h>
#include <public/elfnote.h>