Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit e92905f

Browse files
committed
Guest: Stub out <cpu> XML building, refactor a bit
1 parent 705e4a3 commit e92905f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

virtinst/Guest.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,13 @@ def _get_features_xml(self):
711711

712712
return ret + " </features>"
713713

714+
def _get_cpu_xml(self):
715+
"""
716+
Return <cpu> XML
717+
"""
718+
# Just a stub for now
719+
return ""
720+
714721
def _get_clock_xml(self):
715722
"""
716723
Return <clock/> xml
@@ -739,8 +746,6 @@ def _get_osblob(self, install):
739746

740747
xml = _util.xml_append(xml,
741748
self.installer.get_install_xml(self, install))
742-
xml = _util.xml_append(xml, self._get_features_xml())
743-
xml = _util.xml_append(xml, self._get_clock_xml())
744749
return xml
745750

746751
############################
@@ -834,6 +839,9 @@ def get_config_xml(self, install = True, disk_boot = False):
834839
xml = add(" <uuid>%s</uuid>" % self.uuid)
835840
xml = add(desc_xml)
836841
xml = add(" %s" % osblob)
842+
xml = add(self._get_features_xml())
843+
xml = add(self._get_cpu_xml())
844+
xml = add(self._get_clock_xml())
837845
xml = add(" <on_poweroff>destroy</on_poweroff>")
838846
xml = add(" <on_reboot>%s</on_reboot>" % action)
839847
xml = add(" <on_crash>%s</on_crash>" % action)

0 commit comments

Comments
 (0)