[PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-10-20 Thread Yan Zhao
c_load and kexec_file_load system calls. Cc: Kirill A. Shutemov Reviewed-by: Kirill A. Shutemov Signed-off-by: Yan Zhao --- kernel/kexec_core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index c0caa14880c3..d97376eafc1a 100644 --

Re: [PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-10-21 Thread Yan Zhao
On Mon, Oct 21, 2024 at 09:33:17AM -0500, Eric W. Biederman wrote: > Yan Zhao writes: > > > The kexec destination addresses (incluing those for purgatory, the new > > kernel, boot params/cmdline, and initrd) are searched from the free area of > > memblock or RAM resou

Re: [PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-10-23 Thread Yan Zhao
On Wed, Oct 23, 2024 at 10:44:11AM -0500, Eric W. Biederman wrote: > "Kirill A. Shutemov" writes: > > > Waiting minutes to get VM booted to shell is not feasible for most > > deployments. Lazy is sane default to me. > > Huh? > > Unless my guesses about what is happening are wrong lazy is hiding

Re: [PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-10-23 Thread Yan Zhao
On Thu, Oct 24, 2024 at 08:15:13AM +0800, Yan Zhao wrote: > On Wed, Oct 23, 2024 at 10:44:11AM -0500, Eric W. Biederman wrote: > > "Kirill A. Shutemov" writes: > > > > > Waiting minutes to get VM booted to shell is not feasible for most > > > deployment

Re: [PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-11-28 Thread Yan Zhao
On Thu, Nov 28, 2024 at 11:19:20PM +0800, Baoquan He wrote: > On 11/27/24 at 06:01pm, Yan Zhao wrote: > > On Tue, Nov 26, 2024 at 07:38:05PM +0800, Baoquan He wrote: > > > On 10/24/24 at 08:15am, Yan Zhao wrote: > > > > On Wed, Oct 23, 2024 at 10:44:11AM

Re: [PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-11-27 Thread Yan Zhao
On Tue, Nov 26, 2024 at 07:38:05PM +0800, Baoquan He wrote: > On 10/24/24 at 08:15am, Yan Zhao wrote: > > On Wed, Oct 23, 2024 at 10:44:11AM -0500, Eric W. Biederman wrote: > > > "Kirill A. Shutemov" writes: > > > > > > > Waiting minutes t

Re: [PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-12-03 Thread Yan Zhao
On Mon, Dec 02, 2024 at 10:17:16PM +0800, Baoquan He wrote: > On 11/29/24 at 01:52pm, Yan Zhao wrote: > > On Thu, Nov 28, 2024 at 11:19:20PM +0800, Baoquan He wrote: > > > On 11/27/24 at 06:01pm, Yan Zhao wrote: > > > > On Tue, Nov 26, 2024 at 07:38:05PM +0800, Baoqua

Re: [PATCH] kexec_core: Accept unaccepted kexec destination addresses

2024-12-04 Thread Yan Zhao
On Tue, Dec 03, 2024 at 06:30:36PM +0800, Baoquan He wrote: > On 12/03/24 at 06:06pm, Yan Zhao wrote: > > On Mon, Dec 02, 2024 at 10:17:16PM +0800, Baoquan He wrote: > > > On 11/29/24 at 01:52pm, Yan Zhao wrote: > > > > On Thu, Nov 28, 2024 at 11:19:20PM +0800, Bao

[PATCH v2 0/1] Accept unaccepted kexec segments' destination addresses

2024-12-13 Thread Yan Zhao
unset in the unaccepted bitmap are not accepted repeatedly. The unaccepted table/bitmap is only useful for TDs. For a Linux host, it will detect that the physical firmware does not support the memory acceptance protocol, and accept_memory() will simply bail out. Thanks Yan [1] https://lore.

[PATCH v2 1/1] kexec_core: Accept unaccepted kexec segments' destination addresses

2024-12-13 Thread Yan Zhao
necessary and complicated. Signed-off-by: Yan Zhao Reviewed-by: Kirill A. Shutemov Cc: Kirill A. Shutemov Cc: Baoquan He --- kernel/kexec_core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index c0caa14880c3..f8eee0516bd9 1006

Re: [PATCH v2 0/1] Accept unaccepted kexec segments' destination addresses

2025-01-13 Thread Yan Zhao
On Mon, Jan 13, 2025 at 08:59:29AM -0600, Eric W. Biederman wrote: > Baoquan He writes: > > > On 01/13/25 at 12:01pm, Kirill A. Shutemov wrote: > >> On Fri, Dec 13, 2024 at 05:49:30PM +0800, Yan Zhao wrote: > >> > Hi Eric, > >> > > >&g