Skip to content

Commit 2361ede

Browse files
committed
kpatch-build: handle paravirt absence for RHEL in kernel-5.14.0-582.el9+
Signed-off-by: Ryan Sullivan <[email protected]>
1 parent e4799a8 commit 2361ede

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

kpatch-build/kpatch-build

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,14 @@ support_klp_replace()
275275
fi
276276
}
277277

278+
check_paravirt() {
279+
if kernel_is_rhel; then
280+
! rhel_kernel_version_gte 5.14.0-582.el9
281+
else
282+
! kernel_version_gte 6.8.0
283+
fi
284+
}
285+
278286
find_dirs() {
279287
if [[ -e "$SCRIPTDIR/create-diff-object" ]]; then
280288
# git repo
@@ -385,7 +393,7 @@ find_special_section_data() {
385393
"x86_64")
386394
check[a]=true # alt_instr
387395
kernel_version_gte 5.10.0 && check[s]=true # static_call_site
388-
[[ -n "$CONFIG_PARAVIRT" ]] && ! kernel_version_gte 6.8.0 && check[p]=true # paravirt_patch_site
396+
[[ -n "$CONFIG_PARAVIRT" ]] && check_paravirt && check[p]=true # paravirt_patch_site
389397
;;
390398
"ppc64le")
391399
check[f]=true # fixup_entry

0 commit comments

Comments
 (0)