[PATCH v4 15/19] PCI: liveupdate: Add feature header to struct pci_ser

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 10 22:16:52 PST 2026


> struct pci_ser currently defines its own PCI-specific required_flags and
> optional_flags bitmasks (capped at 64 bits without recorded structure
> size) and stores dev_ser_size in the parent structure even though KHO
> block headers now record entry_size directly. In addition, struct
> pci_ser and struct pci_dev_ser still carry __packed despite having
> naturally aligned fields on 64-bit architectures.
> 
> Precede struct pci_ser with struct kho_ser_hdr via DECLARE_KHO_SER,
> removing required_flags, optional_flags, and
> PCI_SER_REQUIRED_FLAGS_SUPPORTED. Remove dev_ser_size and
> PCI_DEV_SER_MIN_SIZE so restoration derives the struct pci_dev_ser stride
> from the KHO block header entry_size. Drop __packed from struct pci_ser
> and struct pci_dev_ser, adding an explicit u32 reserved field to struct
> pci_ser for 8-byte alignment, and bump PCI_LUO_FLB_COMPATIBLE from pci to
> pci-v2.
> 
> Signed-off-by: Tarun Sahu <tarunsahu at google.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110050202.529473-1-tarunsahu@google.com?part=15




More information about the kexec mailing list