It uses the same functionalities of the qemu driver.
Signed-off-by: Giuseppe Scrivano <gscrivan(a)redhat.com>
---
src/test/test_driver.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index c2e530e..2678247 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -1512,6 +1512,21 @@ static int testConnectGetMaxVcpus(virConnectPtr conn
ATTRIBUTE_UNUSED,
return 32;
}
+static char *
+testConnectBaselineCPU(virConnectPtr conn ATTRIBUTE_UNUSED,
+ const char **xmlCPUs,
+ unsigned int ncpus,
+ unsigned int flags)
+{
+ char *cpu;
+
+ virCheckFlags(VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, NULL);
+
+ cpu = cpuBaselineXML(xmlCPUs, ncpus, NULL, 0, flags);
+
+ return cpu;
+}
+
static int testNodeGetInfo(virConnectPtr conn,
virNodeInfoPtr info)
{
@@ -7177,6 +7192,8 @@ static virDriver testDriver = {
.domainSnapshotCreateXML = testDomainSnapshotCreateXML, /* 1.1.4 */
.domainRevertToSnapshot = testDomainRevertToSnapshot, /* 1.1.4 */
.domainSnapshotDelete = testDomainSnapshotDelete, /* 1.1.4 */
+
+ .connectBaselineCPU = testConnectBaselineCPU, /* 1.1.5 */
};
static virNetworkDriver testNetworkDriver = {
--
1.8.3.1
Show replies by date
On 11/06/2013 11:27 AM, Giuseppe Scrivano wrote:
It uses the same functionalities of the qemu driver.
Signed-off-by: Giuseppe Scrivano <gscrivan(a)redhat.com>
---
src/test/test_driver.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
ACK and pushed.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org