On Thu, Feb 11, 2010 at 04:43:55PM +0100, Jiri Denemark wrote: > Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx> > --- > src/driver.h | 6 ++++++ > src/esx/esx_driver.c | 1 + > src/lxc/lxc_driver.c | 1 + > src/opennebula/one_driver.c | 1 + > src/openvz/openvz_driver.c | 1 + > src/phyp/phyp_driver.c | 1 + > src/qemu/qemu_driver.c | 1 + > src/remote/remote_driver.c | 1 + > src/test/test_driver.c | 1 + > src/uml/uml_driver.c | 1 + > src/vbox/vbox_tmpl.c | 1 + > src/xen/xen_driver.c | 1 + > 12 files changed, 17 insertions(+), 0 deletions(-) > > diff --git a/src/driver.h b/src/driver.h > index 08fe816..fe21ea3 100644 > --- a/src/driver.h > +++ b/src/driver.h > @@ -367,6 +367,11 @@ typedef int > (*virDrvCPUCompare)(virConnectPtr conn, > const char *cpu, > unsigned int flags); > +typedef char * > + (*virDrvCPUBaseline)(virConnectPtr conn, > + const char **xmlCPUs, > + unsigned int ncpus, > + unsigned int flags); > > /** > * _virDriver: > @@ -458,6 +463,7 @@ struct _virDriver { > virDrvDomainIsActive domainIsActive; > virDrvDomainIsPersistent domainIsPersistent; > virDrvCPUCompare cpuCompare; > + virDrvCPUBaseline cpuBaseline; > }; > > typedef int > diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c > index 535ec43..e125a09 100644 > --- a/src/esx/esx_driver.c > +++ b/src/esx/esx_driver.c > @@ -3403,6 +3403,7 @@ static virDriver esxDriver = { > esxDomainIsActive, /* domainIsActive */ > esxDomainIsPersistent, /* domainIsPersistent */ > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > > diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c > index 1a73ca6..679e936 100644 > --- a/src/lxc/lxc_driver.c > +++ b/src/lxc/lxc_driver.c > @@ -2449,6 +2449,7 @@ static virDriver lxcDriver = { > lxcDomainIsActive, > lxcDomainIsPersistent, > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > static virStateDriver lxcStateDriver = { > diff --git a/src/opennebula/one_driver.c b/src/opennebula/one_driver.c > index b41c418..57825d5 100644 > --- a/src/opennebula/one_driver.c > +++ b/src/opennebula/one_driver.c > @@ -785,6 +785,7 @@ static virDriver oneDriver = { > NULL, /* domainIsActive */ > NULL, /* domainIsPersistent */ > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > static virStateDriver oneStateDriver = { > diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c > index 5c07857..68d0398 100644 > --- a/src/openvz/openvz_driver.c > +++ b/src/openvz/openvz_driver.c > @@ -1537,6 +1537,7 @@ static virDriver openvzDriver = { > openvzDomainIsActive, > openvzDomainIsPersistent, > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > int openvzRegister(void) { > diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c > index eef1cc7..1e8ed30 100644 > --- a/src/phyp/phyp_driver.c > +++ b/src/phyp/phyp_driver.c > @@ -1653,6 +1653,7 @@ virDriver phypDriver = { > NULL, /* domainIsActive */ > NULL, /* domainIsPersistent */ > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > int > diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c > index 0d77d57..e053be8 100644 > --- a/src/qemu/qemu_driver.c > +++ b/src/qemu/qemu_driver.c > @@ -8577,6 +8577,7 @@ static virDriver qemuDriver = { > qemuDomainIsActive, > qemuDomainIsPersistent, > qemuCPUCompare, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > > diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c > index e17db3d..05dea04 100644 > --- a/src/remote/remote_driver.c > +++ b/src/remote/remote_driver.c > @@ -8977,6 +8977,7 @@ static virDriver remote_driver = { > remoteDomainIsActive, /* domainIsActive */ > remoteDomainIsPersistent, /* domainIsPersistent */ > remoteCPUCompare, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > static virNetworkDriver network_driver = { > diff --git a/src/test/test_driver.c b/src/test/test_driver.c > index a17217a..4c2bf05 100644 > --- a/src/test/test_driver.c > +++ b/src/test/test_driver.c > @@ -5241,6 +5241,7 @@ static virDriver testDriver = { > testDomainIsActive, /* domainIsActive */ > testDomainIsPersistent, /* domainIsPersistent */ > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > static virNetworkDriver testNetworkDriver = { > diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c > index 541ff9a..5049c92 100644 > --- a/src/uml/uml_driver.c > +++ b/src/uml/uml_driver.c > @@ -1916,6 +1916,7 @@ static virDriver umlDriver = { > umlDomainIsActive, > umlDomainIsPersistent, > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > > diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c > index 0965021..68dffd2 100644 > --- a/src/vbox/vbox_tmpl.c > +++ b/src/vbox/vbox_tmpl.c > @@ -7060,6 +7060,7 @@ virDriver NAME(Driver) = { > vboxDomainIsActive, > vboxDomainIsPersistent, > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > virNetworkDriver NAME(NetworkDriver) = { > diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c > index d5a0d00..700682c 100644 > --- a/src/xen/xen_driver.c > +++ b/src/xen/xen_driver.c > @@ -1903,6 +1903,7 @@ static virDriver xenUnifiedDriver = { > xenUnifiedDomainIsActive, > xenUnifiedDomainisPersistent, > NULL, /* cpuCompare */ > + NULL, /* cpuBaseline */ > }; > > /** ACK, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@xxxxxxxxxxxx | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list