[Devel] [PATCH RHEL8 COMMIT] kvm: Don't taint kernel if nested mode is detected

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jun 17 17:36:07 MSK 2020


The commit is pushed to "branch-rh8-4.18.0-80.1.2.vz8.3.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-80.1.2.vz8.3.12
------>
commit 0496f95da2dfd1bbf393b33ae36da7d5f2e5a82e
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Wed Jun 17 17:33:55 2020 +0300

    kvm: Don't taint kernel if nested mode is detected
    
    Our QA test look after kernel taint bits
    and we do run kernel in nested VMs sometimes,
    so leave the print, but don't taint.
    
    https://jira.sw.ru/browse/PSBM-104902
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 arch/x86/kvm/x86.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 4fa858b5ad67..faa17aa34080 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -6720,7 +6720,8 @@ int kvm_arch_init(void *opaque)
 
 	/* RHEL-only: running as a nested hypervisor is TechPreview */
 	if (boot_cpu_has(X86_FEATURE_HYPERVISOR))
-		mark_tech_preview("Running as a nested hypervisor", THIS_MODULE);
+		/* Don't taint kernel if nested detected. */
+		printk("Running as a nested hypervisor");
 
 	return 0;
 


More information about the Devel mailing list