From owner-freebsd-questions@FreeBSD.ORG Thu Jan 15 17:19:34 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FC5910656D1; Thu, 15 Jan 2009 17:19:34 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: from mail-bw0-f20.google.com (mail-bw0-f20.google.com [209.85.218.20]) by mx1.freebsd.org (Postfix) with ESMTP id 98CA28FC0C; Thu, 15 Jan 2009 17:19:33 +0000 (UTC) (envelope-from mister.olli@googlemail.com) Received: by bwz13 with SMTP id 13so4123497bwz.19 for ; Thu, 15 Jan 2009 09:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=EhIz6vXXcROC61OxHSi9PeBf+T99MS6vR4ZkY7oNLf4=; b=oxOMC9/xshE6EyVZhbyoYXxMi8f0LBm9SUgNaZtfQVP+fHQ5u0oLamaORK9RaFpbGQ ftrfGgIrDn83SRjuIVgf+ISS3iDM/fiZW7rHfNEAzmjZkwO4WKNZL7Hn77ZUV2TljNpt TAU+gBEhkeXykyKHgYkahwTG4N2eo1XLrP5ik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; b=CbNY7U8MBjyte0kHW318yb7Q02Jxy3+qsLNaH7Lfs7XLAHao5wGAcGIUJEqa2CBJPb 5dO+NwUkW15ECE69/iIPiJ8C8l/CYBO5JW60syUUMr0+MrL/He0LTq8SxleyQonkDSYK iGlUZ5lgaOiJxgu13LKElNchYfCzPPQT5zyF4= Received: by 10.223.110.6 with SMTP id l6mr1081786fap.52.1232039946534; Thu, 15 Jan 2009 09:19:06 -0800 (PST) Received: from ?10.30.1.139? (vpn-or.studi-planet.com [78.47.172.52]) by mx.google.com with ESMTPS id d13sm41202fka.20.2009.01.15.09.19.04 (version=SSLv3 cipher=RC4-MD5); Thu, 15 Jan 2009 09:19:05 -0800 (PST) From: Mister Olli To: Freminlins In-Reply-To: References: <1231950392.18652.0.camel@phoenix.blechhirn.net> Content-Type: text/plain Date: Thu, 15 Jan 2009 18:18:59 +0100 Message-Id: <1232039939.18652.16.camel@phoenix.blechhirn.net> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit Cc: freebsd-xen@freebsd.org, freebsd-questions@freebsd.org Subject: Re: sysctl machdep.independent_wallclock X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mister.olli@googlemail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 17:19:35 -0000 hi... > what is the exact function of this sysctl setting? > > I'm guessing it's something to do with Xen, having seen a few > references in Linux for xen.machdep.independent_wallclock. > > Have a look here: > http://docs.xensource.com/XenServer/4.0.1/guest/ch04s06.html yeah, I know that sysctl from linux, but I wasn't quite sure if it is the same in FreeBSD, since it's known as 'xen.independent_wallclock' in linux and 'machdep.independent_wallclock' in FreeBSD. I started reading the C-code of FreeBSD, and from my understanding the function 'should' be the same, as it's really linked to the clock handling with XEN in FreeBSD. but from my understanding it's not completly implemented in 8-CURRENT (as of 15 jan 2009; see the last lines): ================================ /* * Write system time back to RTC. */ static void domu_resettodr(void) { unsigned long tm; int s; dom0_op_t op; struct shadow_time_info *shadow; shadow = &per_cpu(shadow_time, smp_processor_id()); if (xen_disable_rtc_set) return; s = splclock(); tm = time_second; splx(s); tm -= tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0); if ((xen_start_info->flags & SIF_INITDOMAIN) && !independent_wallclock) { op.cmd = DOM0_SETTIME; op.u.settime.secs = tm; op.u.settime.nsecs = 0; op.u.settime.system_time = shadow->system_timestamp; HYPERVISOR_dom0_op(&op); update_wallclock(); } else if (independent_wallclock) { /* notyet */ ; } } ================================ is that correct??? greetz olli >