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

Submitted by Konstantin Khorenko on June 17, 2020, 2:36 p.m.

Details

Message ID 202006171436.05HEa7ah030542@finist-co8.sw.ru
State New
Series "kvm: Don't taint kernel if nested mode is detected"
Headers show

Commit Message

Konstantin Khorenko June 17, 2020, 2:36 p.m.
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(-)

Patch hide | download patch | download mbox

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;