[PATCH v3 2/4] x86/vmware: Add a bounded panic log sender
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sun Nov 8 21:57:19 PST 2026
> A VMware guest may be unable to save its own logs after a crash. Copy
> the newest kernel log records to the host's vmware.log before kdump,
> so they remain available if the capture kernel fails.
>
> Register the sender on the platform panic notifier list and send the
> log through the low-bandwidth register interface. Allocate a fixed
> 8 KiB buffer during early init; 4 KiB can lose useful stack-trace
> context. The callback allocates no memory and emits no printk
> messages. Limit the transfer to the buffer size and make at most three
> attempts, retrying only if a VM checkpoint interrupts the transfer.
>
> Enable logging by default only in guests without memory encryption;
> encrypted guests should send their log to the host only when an
> administrator opts in. The copy is best-effort diagnostics; kdump does
> not depend on it succeeding.
>
> Suggested-by: Michael Kelley <mhklinux at outlook.com>
> Link: https://lore.kernel.org/r/SN6PR02MB41574A11D309A0530C63E0FED4842@SN6PR02MB4157.namprd02.prod.outlook.com
> Link: https://lore.kernel.org/r/20260309235250.2611115-3-alexey.makhalov@broadcom.com
> Co-developed-by: Bo Gan <bo.gan at broadcom.com>
> Signed-off-by: Bo Gan <bo.gan at broadcom.com>
> Co-developed-by: Alexey Makhalov <alexey.makhalov at broadcom.com>
> Signed-off-by: Alexey Makhalov <alexey.makhalov at broadcom.com>
> Signed-off-by: Zack Rusin <zack.rusin at broadcom.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1794201807.git.zack.rusin@broadcom.com?part=2
More information about the kexec
mailing list