From: Tomas Henzl <[email protected]>

arch/x86/kernel/setup.c: fix rh_check_supported

When in kdump we don't need this messaging and the kernel
is limited to a single cpu single cpu by default
which causes false messaging.
Fix this by inverting the kdump boot test.

Signed-off-by: Tomas Henzl <[email protected]>

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index blahblah..blahblah 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -685,7 +685,7 @@ static void rh_check_supported(void)
 
        /* RHEL supports single cpu on guests only */
        if (((topology_num_threads_per_package() * __max_threads_per_core) == 
1) &&
-           !guest && is_kdump_kernel()) {
+           !guest && !is_kdump_kernel()) {
                pr_crit("Detected single cpu native boot.\n");
                pr_crit("Important:  In this kernel, single threaded, single 
CPU 64-bit physical systems are unsupported.");
        }

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3709

-- 
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to