From: Roman Bogorodskiy
Date: Mon, 21 May 2018 14:53:36 +0000 (+0400)
Subject: bhyve: Add CPU topology support
X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b66fda0a743c02e84dd70fafc48d14544903efe9;p=libvirt.git
bhyve: Add CPU topology support
Recently, bhyve started supporting specifying guest CPU topology.
It looks this way:
bhyve -c cpus=C,sockets=S,cores=C,threads=T ...
The old behaviour was bhyve -c C, where C is a number of vCPUs, is
still supported.
So if we have CPU topology in the domain XML, use the new syntax,
otherwise keep the old behaviour.
Also, document this feature in the bhyve driver page.
Signed-off-by: Roman Bogorodskiy
Reviewed-by: John Ferlan
---
diff --git a/docs/drvbhyve.html.in b/docs/drvbhyve.html.in
index 5b5513d3df..b4d7df2edb 100644
--- a/docs/drvbhyve.html.in
+++ b/docs/drvbhyve.html.in
@@ -444,6 +444,22 @@ be wired and cannot be swapped out as follows:
</memoryBacking>
...
</domain>
+
+
+
+
+Since 4.5.0, it's possible to specify guest CPU topology, if bhyve
+supports that. Support for specifying guest CPU topology was added to bhyve in
+r332298 for -CURRENT.
+Example:
+
+<domain type="bhyve">
+ ...
+ <cpu>
+ <topology sockets='1' cores='2' threads='1'/>
+ </cpu>
+ ...
+</domain>