Skip to content

kpatch-build: handle paravirt absence for RHEL in kernel-5.14.0-582.el9+ #1460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion kpatch-build/kpatch-build
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,14 @@ support_klp_replace()
fi
}

check_paravirt() {
if kernel_is_rhel; then
! rhel_kernel_version_gte 5.14.0-582.el9
else
! kernel_version_gte 6.8.0
fi
}

find_dirs() {
if [[ -e "$SCRIPTDIR/create-diff-object" ]]; then
# git repo
Expand Down Expand Up @@ -385,7 +393,7 @@ find_special_section_data() {
"x86_64")
check[a]=true # alt_instr
kernel_version_gte 5.10.0 && check[s]=true # static_call_site
[[ -n "$CONFIG_PARAVIRT" ]] && ! kernel_version_gte 6.8.0 && check[p]=true # paravirt_patch_site
[[ -n "$CONFIG_PARAVIRT" ]] && check_paravirt && check[p]=true # paravirt_patch_site
;;
"ppc64le")
check[f]=true # fixup_entry
Expand Down