[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvz-devel
Subject:    [Devel] [PATCH RHEL8 COMMIT] kvm: Don't taint kernel if nested mode is detected
From:       Konstantin Khorenko <khorenko () virtuozzo ! com>
Date:       2020-06-17 14:36:07
Message-ID: 202006171436.05HEa7ah030542 () finist-co8 ! sw ! ru
[Download RAW message or body]

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@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@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;
 
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic