kexec: fix the missing i386 part in commit 1100580b05e
Subsystems (2)
PATCH 1/1 kexec: fix the missing i386 part in commit 1100580b05e
Vivek pointed out that I missed the i386 part in this commit,
commit 1100580b05e3fdfe648d9be8617d962b11f4b88b Author: Amerigo Wang <[email protected]> Date: Thu Mar 3 00:10:43 2011 +0800 get the backup area dynamically
Yes. The customer who reported that bug definitely only tested it on x86_64. Now make it complete.
---
kexec/arch/i386/kexec-x86.c +4 -0
@@ -184,6 +184,10 @@ void arch_update_purgatory(struct kexec_info *info) &arch_options.console_vga, sizeof(arch_options.console_vga));elf_rel_set_symbol (&info->rhdr,"console_serial" , &arch_options.console_serial,sizeof (arch_options.console_serial)); +elf_rel_set_symbol (&info->rhdr,"backup_src_start" , + &info->backup_src_start,sizeof (info->backup_src_start)); +elf_rel_set_symbol (&info->rhdr,"backup_src_size" , + &info->backup_src_size,sizeof (info->backup_src_size));if (info->kexec_flags &KEXEC_ON_CRASH ) { panic_kernel =1 ; elf_rel_set_symbol(&info->rhdr, "backup_start",
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 10 lines · Amerigo Wang
Vivek pointed out that I missed the i386 part in this commit,
commit 1100580b05e3fdfe648d9be8617d962b11f4b88b Author: Amerigo Wang <[email protected]> Date: Thu Mar 3 00:10:43 2011 +0800 get the backup area dynamicallyYes. The customer who reported that bug definitely only tested it on
x86_64. Now make it complete.
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 10 lines · Amerigo Wang
Vivek pointed out that I missed the i386 part in this commit,
commit 1100580b05e3fdfe648d9be8617d962b11f4b88b Author: Amerigo Wang <[email protected]> Date: Thu Mar 3 00:10:43 2011 +0800 get the backup area dynamicallyYes. The customer who reported that bug definitely only tested it on
x86_64. Now make it complete.
Hi Amerigo,
Have you verified the contents of backup area? I want to make sure that everything is working and in second kernel when we read up vmcore, we do read contents properly.
Thanks
Vivek
Quoted 11 lines
Signed-off-by Amerigo Wang <[email protected]>Cc Vivek Goyal <[email protected]>Cc Simon Horman <[email protected]>---
kexec/arch/i386/kexec-x86.c +0
-0
kexec/arch/i386/kexec-x86.c void arch_update_purgatory(struct kexec_info *info) · line 193
Quoted 10 lines
kexec/arch/i386/kexec-x86.c +4
-0@@ -184,6 +184,10 @@ void arch_update_purgatory(struct kexec_info *info) &arch_options.console_vga, sizeof(arch_options.console_vga));elf_rel_set_symbol (&info->rhdr,"console_serial" , &arch_options.console_serial,sizeof (arch_options.console_serial)); +elf_rel_set_symbol (&info->rhdr,"backup_src_start" , + &info->backup_src_start,sizeof (info->backup_src_start)); +elf_rel_set_symbol (&info->rhdr,"backup_src_size" , + &info->backup_src_size,sizeof (info->backup_src_size));if (info->kexec_flags &KEXEC_ON_CRASH ) { panic_kernel =1 ; elf_rel_set_symbol(&info->rhdr, "backup_start",
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 9 lines · Vivek Goyal
Quoted 8 lines · Amerigo Wang
Vivek pointed out that I missed the i386 part in this commit,
commit 1100580b05e3fdfe648d9be8617d962b11f4b88b Author: Amerigo Wang<[email protected]> Date: Thu Mar 3 00:10:43 2011 +0800 get the backup area dynamically
Quoted 9 lines
Quoted 2 lines
Yes. The customer who reported that bug definitely only tested it on
x86_64. Now make it complete.Hi Amerigo,
Have you verified the contents of backup area? I want to make sure that everything is working and in second kernel when we read up vmcore, we do read contents properly.
Not yet, I am still trying to figure out what the problem is. I will send another patch once I know how to fix it, so, although this patch doesn't fix that problem, it is clearly needed.
Thanks.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 9 lines · Cong Wang
Quoted 4 lines · Vivek Goyal
Have you verified the contents of backup area? I want to make sure that everything is working and in second kernel when we read up vmcore, we do read contents properly.
Not yet, I am still trying to figure out what the problem is. I will send another patch once I know how to fix it, so, although this patch doesn't fix that problem, it is clearly needed.
Ok, the issue I discussed with Vivek does _not_ apply to upstream, that is a mistake when I backported the patch to RHEL5.
So, for upstream the patch in this thread is enough.
Hope this is clear now.
Thanks.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 11 lines · Cong Wang
Quoted 9 lines · Cong Wang
Quoted 4 lines · Vivek Goyal
Have you verified the contents of backup area? I want to make sure that everything is working and in second kernel when we read up vmcore, we do read contents properly.
Not yet, I am still trying to figure out what the problem is. I will send another patch once I know how to fix it, so, although this patch doesn't fix that problem, it is clearly needed.
Quoted 6 lines
Ok, the issue I discussed with Vivek does _not_ apply to upstream, that is a mistake when I backported the patch to RHEL5.
So, for upstream the patch in this thread is enough.
Hope this is clear now.
So again, have you done testing on upstream kernels to make sure backup area contents are fine?
Thanks
Vivek
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 15 lines · Vivek Goyal
Quoted 14 lines · Cong Wang
Quoted 9 lines · Cong Wang
Quoted 4 lines · Vivek Goyal
Have you verified the contents of backup area? I want to make sure that everything is working and in second kernel when we read up vmcore, we do read contents properly.
Not yet, I am still trying to figure out what the problem is. I will send another patch once I know how to fix it, so, although this patch doesn't fix that problem, it is clearly needed.
Ok, the issue I discussed with Vivek does _not_ apply to upstream, that is a mistake when I backported the patch to RHEL5.
Quoted 6 lines
Quoted 3 lines
So, for upstream the patch in this thread is enough.
Hope this is clear now.
So again, have you done testing on upstream kernels to make sure backup area contents are fine?
I did a crash reboot test and didn't see any problems, but I didn't check the backup area contents. :-/
I will look at this shortly.
Thanks.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec