From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: ioemu & settimeoffset [Was: Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain()]
Date: Thu, 10 Apr 2008 16:43:46 +0100 [thread overview]
Message-ID: <20080410154346.GA12609@implementation.uk.xensource.com> (raw)
In-Reply-To: <C413DCED.1587C%keir.fraser@eu.citrix.com>
Keir Fraser, le Sat 29 Mar 2008 11:47:57 +0000, a écrit :
> > DOMCTL_settimeoffset is needed.
>
> Why is this done in ioemu and not in xend (it's already done there for PV
> guests).
I don't see a reason indeed, the attached patch seems to work fine.
Samuel
Make xend set time offset for all kinds of domains,
so that ioemu doesn't need to do it.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 8d750b7acfa3 tools/ioemu/target-i386-dm/helper2.c
--- a/tools/ioemu/target-i386-dm/helper2.c Thu Apr 10 11:11:25 2008 +0100
+++ b/tools/ioemu/target-i386-dm/helper2.c Thu Apr 10 16:36:05 2008 +0100
@@ -391,8 +391,6 @@
fprintf(logfile, "Time offset set %ld\n", time_offset);
else
time_offset = 0;
-
- xc_domain_set_time_offset(xc_handle, domid, time_offset);
free(p);
}
--- a/tools/python/xen/xend/image.py Thu Apr 10 11:11:25 2008 +0100
+++ b/tools/python/xen/xend/image.py Thu Apr 10 16:36:05 2008 +0100
@@ -99,7 +99,9 @@ ImageHandler configure
self.vncconsole = vmConfig['platform'].get('vncconsole')
self.dmargs = self.parseDeviceModelArgs(vmConfig)
self.pid = None
-
+ rtc_timeoffset = vmConfig['platform'].get('rtc_timeoffset')
+ if rtc_timeoffset is not None:
+ xc.domain_set_time_offset(self.vm.getDomid(), int(rtc_timeoffset))
def cleanupBootloading(self):
@@ -419,9 +421,6 @@ LinuxImageHandler configure
def configure(self, vmConfig):
ImageHandler.configure(self, vmConfig)
- rtc_timeoffset = vmConfig['platform'].get('rtc_timeoffset')
- if rtc_timeoffset is not None:
- xc.domain_set_time_offset(self.vm.getDomid(), int(rtc_timeoffset))
def buildDomain(self):
store_evtchn = self.vm.getStorePort()
prev parent reply other threads:[~2008-04-10 15:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200803290750.m2T7o8pP027589@xenbits.xensource.com>
2008-03-29 11:23 ` [Xen-changelog] [xen-unstable] Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain() Samuel Thibault
2008-03-29 11:47 ` Keir Fraser
2008-03-29 11:58 ` Samuel Thibault
2008-04-05 14:28 ` Samuel Thibault
2008-04-05 16:31 ` Keir Fraser
2008-04-11 14:27 ` Samuel Thibault
2008-04-05 16:25 ` Samuel Thibault
2008-04-10 15:43 ` Samuel Thibault [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080410154346.GA12609@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.