Skip to content

Commit fa3df4e

Browse files
committed
kpatch-build: handle paravirt absence for RHEL in kernel-5.14.0-582.el9+
Signed-off-by: Ryan Sullivan <rysulliv@redhat.com>
1 parent e4799a8 commit fa3df4e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

kpatch-build/kpatch-build

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,13 @@ clang_version_check() {
373373
return
374374
}
375375

376+
check_paravirt() {
377+
if kernel_is_rhel; then
378+
! rhel_kernel_version_gte kernel-5.14.0-582.el9
379+
else
380+
! kernel_version_gte 6.8.0
381+
}
382+
376383
find_special_section_data() {
377384
local -A check
378385

@@ -385,7 +392,7 @@ find_special_section_data() {
385392
"x86_64")
386393
check[a]=true # alt_instr
387394
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
395+
[[ -n "$CONFIG_PARAVIRT" ]] && check_paravirt && check[p]=true # paravirt_patch_site
389396
;;
390397
"ppc64le")
391398
check[f]=true # fixup_entry

0 commit comments

Comments
 (0)