X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=host_thread.py;h=d8bca2e2e1ca13d091a34566d29610672f520cb8;hb=refs%2Fchanges%2F17%2F1317%2F3;hp=97c57baa12d2d98218827f8f94a2f4fc6429be56;hpb=18f5de3f9de56ad4b608daf1e9107e65dc22a851;p=osm%2Fopenvim.git
diff --git a/host_thread.py b/host_thread.py
index 97c57ba..d8bca2e 100644
--- a/host_thread.py
+++ b/host_thread.py
@@ -501,8 +501,12 @@ class host_thread(threading.Thread):
self.tab()+'' +\
self.tab()+''+ \
self.dec_tab() +''
- if windows_os or topo=="oneSocket":
- text += self.tab() + " "% vcpus
+ if topo == "oneSocket:hyperthreading":
+ if vcpus % 2 != 0:
+ return -1, 'Cannot expose hyperthreading with an odd number of vcpus'
+ text += self.tab() + " " % vcpus/2
+ elif windows_os or topo == "oneSocket":
+ text += self.tab() + " " % vcpus
else:
text += self.tab() + ""
text += self.tab() + "" +\