> > Hmm, it's easier, while maybe not good. We should not repeatedly
> > introduce similar things into codes. Here, it's similar as
> > what kexec_apply_relocations() and arch_kexec_apply_relocations() are
> > doing.
> >
> > int machine_kexec_post_load(struct kimage *image)
(As discussed) just
On 3/25/2025 7:27 PM, Baoquan He wrote:
On 03/25/25 at 03:27pm, steven chen wrote:
On 3/24/2025 4:00 AM, Baoquan He wrote:
On 03/21/25 at 09:23am, steven chen wrote:
On 3/19/2025 7:06 PM, Baoquan He wrote:
On 03/17/25 at 06:04pm, steven chen wrote:
...snip...
---
kernel/kexec_file.c
On Thu, Mar 20 2025, Jason Gunthorpe wrote:
> On Wed, Mar 19, 2025 at 01:35:31PM +, Pratyush Yadav wrote:
>> On Tue, Mar 18 2025, Jason Gunthorpe wrote:
>>
>> > On Tue, Mar 18, 2025 at 11:02:31PM +, Pratyush Yadav wrote:
>> >
>> >> I suppose we can serialize all FDs when the box is sealed
From: David Woodhouse
Add a self test which exercises both the kexec-jump facility, and the
kexec exception handling.
Invoke a trivial payload which just does an int3 and returns,
flip-flopping its entry point for the next invocation between two
implementations of the same thing.
Signed-off-by:
On Thu, Mar 20 2025, Jason Gunthorpe wrote:
>> I didn't mean the exact flags value, but the ability to have
>> per-folio flags. The exact bits and their meaning would of course
>> need to be part of the ABI. Shmem uses the dirty and uptodate flags
>> to track some state on the folios, and the flag
From: David Woodhouse
This supports the same 32-bit MMIO-mapped 8250 as the early_printk code.
It's not clear why the early_printk code supports this form and only this
form; the actual runtime 8250_pci doesn't seem to support it. But having
hacked up QEMU to expose such a device, early_printk d
From: David Woodhouse
Reduce the window during which exceptions are unhandled, by leaving the
GDT/IDT in place all the way into the relocate_kernel() function, until
the moment that %cr3 gets replaced.
Signed-off-by: David Woodhouse
---
arch/x86/kernel/machine_kexec_64.c | 10 ++
arc
From: David Woodhouse
If a serial port was configured for early_printk, use it for debug output
from the relocate_kernel exception handler too.
Signed-off-by: David Woodhouse
---
arch/x86/include/asm/kexec.h | 1 +
arch/x86/kernel/early_printk.c | 6 +
arch/x86/kernel/reloc
Continuing the drip-feed of the exception handling support, on top of the
current tip/x86/asm branch. This adds output to the serial port configured
by earlyprintk, reduces the window during which exceptions can't be handled
during the transition from kernel to relocate_kernel environment, and adds