All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 3.1.3 (and ??) timer_mode fix in xend for virt-install
@ 2008-01-18 21:22 Dan Magenheimer
  2008-01-18 21:28 ` Keir Fraser
  0 siblings, 1 reply; 10+ messages in thread
From: Dan Magenheimer @ 2008-01-18 21:22 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com


[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]

We have found that virt-install fails to create a domain with 3.1-testing since the timer_mode patches went in.

This patch allows virt-install to run properly again.

Please apply prior to 3.1.3 release.  Though untested, it appears from source examination that the patch is also required on 3.2 and -unstable.

Dan

[-- Attachment #1.2: Type: text/html, Size: 1171 bytes --]

[-- Attachment #2: xen-virt-install-timer-mode.patch --]
[-- Type: application/octet-stream, Size: 1139 bytes --]

diff -Naur a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py	2008-01-18 13:43:47.000000000 -0700
+++ b/tools/python/xen/xend/XendConfig.py	2008-01-18 13:35:21.000000000 -0700
@@ -319,6 +319,7 @@
             'shadow_memory': 0,
             'memory_static_max': 0,
             'memory_dynamic_max': 0,
+            'timer_mode': 0,
             'devices': {},
             'security': None,
             'on_xend_start': 'ignore',
diff -Naur a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py	2008-01-18 13:43:27.000000000 -0700
+++ b/tools/python/xen/xend/XendDomainInfo.py	2008-01-18 13:37:01.000000000 -0700
@@ -1542,7 +1542,7 @@
         # Set timer configration of domain
         if hvm:
             xc.hvm_set_param(self.domid, HVM_PARAM_TIMER_MODE,
-                long(self.info["platform"].get("timer_mode")))
+                long(self.info['timer_mode']))
 
         # Set maximum number of vcpus in domain
         xc.domain_max_vcpus(self.domid, int(self.info['VCPUs_max']))

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-01-18 22:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 21:22 [PATCH] 3.1.3 (and ??) timer_mode fix in xend for virt-install Dan Magenheimer
2008-01-18 21:28 ` Keir Fraser
2008-01-18 21:41   ` Dan Magenheimer
2008-01-18 21:59     ` Daniel P. Berrange
2008-01-18 22:09       ` Keir Fraser
2008-01-18 22:13       ` Dan Magenheimer
2008-01-18 22:19         ` Keir Fraser
2008-01-18 22:20         ` Daniel P. Berrange
2008-01-18 22:39           ` Dan Magenheimer
2008-01-18 22:34       ` Daniel P. Berrange

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.