summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-06-13 16:34:06 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-06-28 11:39:09 +0100
commitbcc04993fe8fbeb374cacf990105270579a530c2 (patch)
tree3e9dd357d6d10d1037d35845b196b38fccc5ac3b /nova/context.py
parent5abf5109009359ea1ef49cd7ac59b50a4f55dfbf (diff)
downloadnova-bcc04993fe8fbeb374cacf990105270579a530c2.tar.gz
nova-bcc04993fe8fbeb374cacf990105270579a530c2.tar.xz
nova-bcc04993fe8fbeb374cacf990105270579a530c2.zip
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 <berrange@redhat.com>
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions