commit bcc04993fe8fbeb374cacf990105270579a530c2
Author: Daniel P. Berrange <email address hidden>
Date: Wed Jun 13 16:34:06 2012 +0100
Refactor libvirt config classes for representing CPU models/features
The previously added (but not used) LibvirtConfigCPUTest class
was too inflexible. It did not distinguish between parts of the
XML schema which applied to both capabilities & domain XML,
vs those which only applied to the domain XML. By representing
features as a plain string it did not allow for setting attributes
on feature flags like policy. This change replaces the single
LibvirtConfigCPUTest class with 4 new classes:
- LibvirtConfigCPUFeature - base class for defining CPU features
- LibvirtConfigCPU - base class for defining CPU models
- LibvirtConfigGuestCPUFeature - extension for setting the guest
specific feature policy
- LibvirtConfigGuestCPU - extension for setting the guest specific
match policy, and allowing use of host CPU model passthrough
Fixes: bug #1003373
Implements: blueprint libvirt-xml-cpu-model
Change-Id: I0aa0ddfb86cf8b89b2e4dcc95e21bdca304bd6b3
Signed-off-by: Daniel P. Berrange <email address hidden>
Reviewed: https:/ /review. openstack. org/8526 github. com/openstack/ nova/commit/ bcc04993fe8fbeb 374cacf99010527 0579a530c2
Committed: http://
Submitter: Jenkins
Branch: master
commit bcc04993fe8fbeb 374cacf99010527 0579a530c2
Author: Daniel P. Berrange <email address hidden>
Date: Wed Jun 13 16:34:06 2012 +0100
Refactor libvirt config classes for representing CPU models/features
The previously added (but not used) LibvirtConfigCP UTest class igCPUTest class with 4 new classes:
was too inflexible. It did not distinguish between parts of the
XML schema which applied to both capabilities & domain XML,
vs those which only applied to the domain XML. By representing
features as a plain string it did not allow for setting attributes
on feature flags like policy. This change replaces the single
LibvirtConf
- LibvirtConfigCP UFeature - base class for defining CPU features estCPUFeature - extension for setting the guest estCPU - extension for setting the guest specific
- LibvirtConfigCPU - base class for defining CPU models
- LibvirtConfigGu
specific feature policy
- LibvirtConfigGu
match policy, and allowing use of host CPU model passthrough
Fixes: bug #1003373 xml-cpu- model 89b2e4dcc95e21b dca304bd6b3
Implements: blueprint libvirt-
Change-Id: I0aa0ddfb86cf8b
Signed-off-by: Daniel P. Berrange <email address hidden>