incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mry...@apache.org
Subject svn commit: r740856 - /incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Date Wed, 04 Feb 2009 20:16:52 GMT
Author: mryan3
Date: Wed Feb  4 20:16:52 2009
New Revision: 740856

URL: http://svn.apache.org/viewvc?rev=740856&view=rev
Log:
Clock source fix for Qemu backend.

On our systems, only one VM can use the rtc at a time.  This allows VMs to specify their clock
source, defaulting to dynticks.


Modified:
    incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py

Modified: incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py?rev=740856&r1=740855&r2=740856&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Wed Feb  4 20:16:52 2009
@@ -275,8 +275,9 @@
 		sourceString = "" if not source else "-incoming %s" % (source)
 		snapshotString = "" if diskModel == "persistent" else "-snapshot"
 		modelString = opts.get("nicModel", "e1000")
+		clockString = opts.get("clock", "dynticks")
 		imageLocal = self.dfs.getLocalHandle("images/" + image)
-		cmd = "%s %s -hda %s -net nic,macaddr=%s,model=%s -net tap -clock rtc -m %d -smp %d -serial
none -vnc none -monitor pty %s" % (self.QEMU_BIN, snapshotString, imageLocal, macAddr, modelString,
memory, cores, sourceString)
+		cmd = "%s -clock %s %s -hda %s -net nic,macaddr=%s,model=%s -net tap -m %d -smp %d -serial
none -vnc none -monitor pty %s" % (self.QEMU_BIN, clockString, snapshotString, imageLocal,
macAddr, modelString, memory, cores, sourceString)
 		log.info("QEMU command: %s" % (cmd))
 		lastCmd = cmd
 		cmd = cmd.split()



Mime
View raw message