[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 1/1] Fix cpu check for ppc64



 ppc64 pseries architecture requires that the cpus
 be numbered in a certain way.
 According to SMT, if SMT equals 4, 0-3 on core 0,
 4-7 on core 1 and so on. So, depending on how guest
 topology has been specified, one cannot assume that
 the vcpus will be numbered 0-N. For example, for
 smp=2, core=2, threads=1, the two cpus will be 0 and
 4 - one HW thread on each core. libvirt needs to take
 into account.

 Signed-off-by: Dipankar <dipankar in ibm com>
 Signed-off-by: Li Zhang <zhlcindy linux vnet ibm com>
---
 src/qemu/qemu_monitor_json.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index e1f5453..aee5265 100644
--- a/src/qemu/qemu_monitor_json.c
+++ b/src/qemu/qemu_monitor_json.c
@@ -1231,13 +1231,6 @@ qemuMonitorJSONExtractCPUInfo(virJSONValuePtr reply,
             goto cleanup;
         }
 
-        if (cpu != i) {
-            qemuReportError(VIR_ERR_INTERNAL_ERROR,
-                            _("unexpected cpu index %d expecting %d"),
-                            i, cpu);
-            goto cleanup;
-        }
-
         threads[i] = thread;
     }
 
-- 
1.7.9.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]