|
|
9bac43 |
From 779370f8d1cf47e46b39b210a43d24804e551071 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
Date: Mon, 12 Feb 2018 12:04:49 +0100
|
|
|
9bac43 |
Subject: [PATCH 04/15] spapr: set vsmt to MAX(8, smp_threads)
|
|
|
9bac43 |
|
|
|
9bac43 |
RH-Author: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
Message-id: <20180212120449.20810-1-lvivier@redhat.com>
|
|
|
9bac43 |
Patchwork-id: 78978
|
|
|
9bac43 |
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH] spapr: set vsmt to MAX(8, smp_threads)
|
|
|
9bac43 |
Bugzilla: 1542421
|
|
|
9bac43 |
RH-Acked-by: David Gibson <dgibson@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Serhii Popovych <spopovyc@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
We ignore silently the value of smp_threads when we set
|
|
|
9bac43 |
the default VSMT value, and if smp_threads is greater than VSMT
|
|
|
9bac43 |
kernel is going into trouble later.
|
|
|
9bac43 |
|
|
|
9bac43 |
Fixes: 8904e5a750
|
|
|
9bac43 |
("spapr: Adjust default VSMT value for better migration compatibility")
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
Reviewed-by: Greg Kurz <groug@kaod.org>
|
|
|
9bac43 |
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|
|
|
9bac43 |
(cherry picked from commit 4ad64cbd0c3f9df15be5f7d1c920285551e802ca)
|
|
|
9bac43 |
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
---
|
|
|
9bac43 |
hw/ppc/spapr.c | 2 +-
|
|
|
9bac43 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
|
|
|
9bac43 |
index 6c4c088..2b991d8 100644
|
|
|
9bac43 |
--- a/hw/ppc/spapr.c
|
|
|
9bac43 |
+++ b/hw/ppc/spapr.c
|
|
|
9bac43 |
@@ -2261,7 +2261,7 @@ static void spapr_set_vsmt_mode(sPAPRMachineState *spapr, Error **errp)
|
|
|
9bac43 |
* the value that we'd get with KVM on POWER8, the
|
|
|
9bac43 |
* overwhelmingly common case in production systems.
|
|
|
9bac43 |
*/
|
|
|
9bac43 |
- spapr->vsmt = 8;
|
|
|
9bac43 |
+ spapr->vsmt = MAX(8, smp_threads);
|
|
|
9bac43 |
}
|
|
|
9bac43 |
|
|
|
9bac43 |
/* KVM: If necessary, set the SMT mode: */
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|