diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-03-12 12:36:17 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-03-13 16:50:37 +0100 |
commit | 143a68959277e01f8fb90f09e2ba9e9d4b0fd9d1 (patch) | |
tree | 48e1156bf29540a2ac9d5a3dba8fa1dd913c0db5 /virtinst/capabilities.py | |
parent | 4f7f1adc47d0a9524d677ae635fc94f1374e1bb8 (diff) | |
download | virt-manager-143a68959277e01f8fb90f09e2ba9e9d4b0fd9d1.tar.gz |
virtinst: drop cpu_map parsing of arch features
This information is not used anywhere and there is no way to read
it directly from libvirt without parsing the cpu_map.xml file.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'virtinst/capabilities.py')
-rw-r--r-- | virtinst/capabilities.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/virtinst/capabilities.py b/virtinst/capabilities.py index b8d33303..2fe2c0a9 100644 --- a/virtinst/capabilities.py +++ b/virtinst/capabilities.py @@ -1,7 +1,7 @@ # # Some code for parsing libvirt's capabilities XML # -# Copyright 2007, 2012-2013 Red Hat, Inc. +# Copyright 2007, 2012-2014 Red Hat, Inc. # Mark McLoughlin <markmc@redhat.com> # # This program is free software; you can redistribute it and/or modify @@ -75,7 +75,6 @@ class CPUValuesArch(object): self.arch = arch self.vendors = [] self.cpus = [] - self.features = [] if node: self._parseXML(node) @@ -85,8 +84,6 @@ class CPUValuesArch(object): while child: if child.name == "vendor": self.vendors.append(child.prop("name")) - if child.name == "feature": - self.features.append(child.prop("name")) if child.name == "model": newcpu = CPUValuesModel(child) if newcpu.parent: @@ -98,7 +95,6 @@ class CPUValuesArch(object): child = child.next self.vendors.sort() - self.features.sort() def get_cpu(self, model): for c in self.cpus: |