[PATCH 1/1] Fix cpu check for ppc64

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

 



 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@xxxxxxxxxx>
 Signed-off-by: Li Zhang <zhlcindy@xxxxxxxxxxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]