Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 293587 Details for
Bug 425471
[RHEL5.2]: Under load, an i386 PV guest on i386 HV will hang during save/restore
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
a fix to the last fix!
hotplug-vcpu-stack-overflow.patch (text/plain), 4.24 KB, created by
Don Dutile (Red Hat)
on 2008-01-31 15:05:50 UTC
(
hide
)
Description:
a fix to the last fix!
Filename:
MIME Type:
Creator:
Don Dutile (Red Hat)
Created:
2008-01-31 15:05:50 UTC
Size:
4.24 KB
patch
obsolete
>--- linux-2.6.18.noarch/drivers/xen/core/smpboot.c.orig 2008-01-30 12:13:41.000000000 -0500 >+++ linux-2.6.18.noarch/drivers/xen/core/smpboot.c 2008-01-31 09:39:34.000000000 -0500 >@@ -160,9 +160,9 @@ static void cpu_bringup_and_idle(void) > cpu_idle(); > } > >-static void cpu_initialize_context(unsigned int cpu) >+static int cpu_initialize_context(unsigned int cpu) > { >- vcpu_guest_context_t ctxt; >+ vcpu_guest_context_t *ctxt; > struct task_struct *idle = idle_task(cpu); > #ifdef __x86_64__ > struct desc_ptr *gdt_descr = &cpu_gdt_descr[cpu]; >@@ -171,58 +171,65 @@ static void cpu_initialize_context(unsig > #endif > > if (cpu_test_and_set(cpu, cpu_initialized_map)) >- return; >+ return 0; > >- memset(&ctxt, 0, sizeof(ctxt)); >+ ctxt = kmalloc(sizeof(*ctxt), GFP_KERNEL); >+ if (ctxt == NULL) >+ return -ENOMEM; > >- ctxt.flags = VGCF_IN_KERNEL; >- ctxt.user_regs.ds = __USER_DS; >- ctxt.user_regs.es = __USER_DS; >- ctxt.user_regs.fs = 0; >- ctxt.user_regs.gs = 0; >- ctxt.user_regs.ss = __KERNEL_DS; >- ctxt.user_regs.eip = (unsigned long)cpu_bringup_and_idle; >- ctxt.user_regs.eflags = X86_EFLAGS_IF | 0x1000; /* IOPL_RING1 */ >+ memset(ctxt, 0, sizeof(*ctxt)); > >- memset(&ctxt.fpu_ctxt, 0, sizeof(ctxt.fpu_ctxt)); >+ ctxt->flags = VGCF_IN_KERNEL; >+ ctxt->user_regs.ds = __USER_DS; >+ ctxt->user_regs.es = __USER_DS; >+ ctxt->user_regs.fs = 0; >+ ctxt->user_regs.gs = 0; >+ ctxt->user_regs.ss = __KERNEL_DS; >+ ctxt->user_regs.eip = (unsigned long)cpu_bringup_and_idle; >+ ctxt->user_regs.eflags = X86_EFLAGS_IF | 0x1000; /* IOPL_RING1 */ > >- smp_trap_init(ctxt.trap_ctxt); >+ memset(&ctxt->fpu_ctxt, 0, sizeof(ctxt->fpu_ctxt)); > >- ctxt.ldt_ents = 0; >+ smp_trap_init(ctxt->trap_ctxt); > >- ctxt.gdt_frames[0] = virt_to_mfn(gdt_descr->address); >- ctxt.gdt_ents = gdt_descr->size / 8; >+ ctxt->ldt_ents = 0; >+ >+ ctxt->gdt_frames[0] = virt_to_mfn(gdt_descr->address); >+ ctxt->gdt_ents = gdt_descr->size / 8; > > #ifdef __i386__ >- ctxt.user_regs.cs = __KERNEL_CS; >- ctxt.user_regs.esp = idle->thread.esp0 - sizeof(struct pt_regs); >+ ctxt->user_regs.cs = __KERNEL_CS; >+ ctxt->user_regs.esp = idle->thread.esp0 - sizeof(struct pt_regs); > >- ctxt.kernel_ss = __KERNEL_DS; >- ctxt.kernel_sp = idle->thread.esp0; >+ ctxt->kernel_ss = __KERNEL_DS; >+ ctxt->kernel_sp = idle->thread.esp0; > >- ctxt.event_callback_cs = __KERNEL_CS; >- ctxt.event_callback_eip = (unsigned long)hypervisor_callback; >- ctxt.failsafe_callback_cs = __KERNEL_CS; >- ctxt.failsafe_callback_eip = (unsigned long)failsafe_callback; >+ ctxt->event_callback_cs = __KERNEL_CS; >+ ctxt->event_callback_eip = (unsigned long)hypervisor_callback; >+ ctxt->failsafe_callback_cs = __KERNEL_CS; >+ ctxt->failsafe_callback_eip = (unsigned long)failsafe_callback; > >- ctxt.ctrlreg[3] = xen_pfn_to_cr3(virt_to_mfn(swapper_pg_dir)); >+ ctxt->ctrlreg[3] = xen_pfn_to_cr3(virt_to_mfn(swapper_pg_dir)); > #else /* __x86_64__ */ >- ctxt.user_regs.cs = __KERNEL_CS; >- ctxt.user_regs.esp = idle->thread.rsp0 - sizeof(struct pt_regs); >+ ctxt->user_regs.cs = __KERNEL_CS; >+ ctxt->user_regs.esp = idle->thread.rsp0 - sizeof(struct pt_regs); > >- ctxt.kernel_ss = __KERNEL_DS; >- ctxt.kernel_sp = idle->thread.rsp0; >+ ctxt->kernel_ss = __KERNEL_DS; >+ ctxt->kernel_sp = idle->thread.rsp0; > >- ctxt.event_callback_eip = (unsigned long)hypervisor_callback; >- ctxt.failsafe_callback_eip = (unsigned long)failsafe_callback; >- ctxt.syscall_callback_eip = (unsigned long)system_call; >+ ctxt->event_callback_eip = (unsigned long)hypervisor_callback; >+ ctxt->failsafe_callback_eip = (unsigned long)failsafe_callback; >+ ctxt->syscall_callback_eip = (unsigned long)system_call; > >- ctxt.ctrlreg[3] = xen_pfn_to_cr3(virt_to_mfn(init_level4_pgt)); >+ ctxt->ctrlreg[3] = xen_pfn_to_cr3(virt_to_mfn(init_level4_pgt)); > >- ctxt.gs_base_kernel = (unsigned long)(cpu_pda(cpu)); >+ ctxt->gs_base_kernel = (unsigned long)(cpu_pda(cpu)); > #endif > >- BUG_ON(HYPERVISOR_vcpu_op(VCPUOP_initialise, cpu, &ctxt)); >+ BUG_ON(HYPERVISOR_vcpu_op(VCPUOP_initialise, cpu, ctxt)); >+ >+ kfree(ctxt); >+ return 0; > } > > void __init smp_prepare_cpus(unsigned int max_cpus) >@@ -401,7 +408,9 @@ int __cpuinit __cpu_up(unsigned int cpu) > rc = cpu_up_check(cpu); > if (rc) > return rc; >- cpu_initialize_context(cpu); >+ rc = cpu_initialize_context(cpu); >+ if (rc) >+ return rc; > > if (num_online_cpus() == 1) > alternatives_smp_switch(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 425471
:
289491
|
292173
|
293483
|
293499
|
293504
| 293587