[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.4] x86: avoid tripping watchdog when constructing dom0
commit 04667d68881f7103547b96e936e48dcde5ad4d21 Author: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx> AuthorDate: Mon Jul 13 14:04:58 2015 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Jul 13 14:04:58 2015 +0200 x86: avoid tripping watchdog when constructing dom0 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@xxxxxxxxxx> Move inclusion of xen/softirq.h (and at once clean up other includes). Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> master commit: c5089fae0f6f71443356530ecec4781788c7377a master date: 2015-06-12 12:07:05 +0200 --- xen/arch/x86/domain_build.c | 4 ++++ xen/common/libelf/libelf-dominfo.c | 4 ++++ xen/common/libelf/libelf-private.h | 4 +--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c index 84ce392..ada4872 100644 --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -366,6 +366,8 @@ int __init construct_dom0( BUG_ON(d->vcpu[0] == NULL); BUG_ON(v->is_initialised); + process_pending_softirqs(); + printk("*** LOADING DOMAIN 0 ***\n"); d->max_pages = ~0U; @@ -587,6 +589,8 @@ int __init construct_dom0( _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); diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c index 86403b9..0771323 100644 --- a/xen/common/libelf/libelf-dominfo.c +++ b/xen/common/libelf/libelf-dominfo.c @@ -235,6 +235,10 @@ static unsigned elf_xen_parse_notes(struct elf_binary *elf, 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"); diff --git a/xen/common/libelf/libelf-private.h b/xen/common/libelf/libelf-private.h index f4b79c7..63c6274 100644 --- a/xen/common/libelf/libelf-private.h +++ b/xen/common/libelf/libelf-private.h @@ -18,11 +18,9 @@ #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> -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.4 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |