]> xenbits.xensource.com Git - xen.git/commit
xen/livepatch: simplify and unify logic in prepare_payload()
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 25 Nov 2024 11:15:29 +0000 (12:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Nov 2024 11:15:29 +0000 (12:15 +0100)
commit1f82dd558310d134c80b255b3710da09c53c3a8b
tree326038b898a467fe7585b8019a5e11ad18d73900
parentaff7317d9fcb6443c9d37d564c2830d67cf7079d
xen/livepatch: simplify and unify logic in prepare_payload()

The following sections: .note.gnu.build-id, .livepatch.xen_depends and
.livepatch.depends are mandatory and ensured to be present by
check_special_sections() before prepare_payload() is called.

Simplify the logic in prepare_payload() by introducing a generic function to
parse the sections that contain a buildid.  Note the function assumes the
buildid related section to always be present.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 86d09d16dd74298b19a03df492d9503f20cfc17c
master date: 2024-09-26 14:18:03 +0100
xen/common/livepatch.c