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