From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcBHN-000174-BF for qemu-devel@nongnu.org; Sat, 06 Sep 2008 23:49:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcBHK-00016a-Jf for qemu-devel@nongnu.org; Sat, 06 Sep 2008 23:49:37 -0400 Received: from [199.232.76.173] (port=57334 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcBHK-00016X-H8 for qemu-devel@nongnu.org; Sat, 06 Sep 2008 23:49:34 -0400 Received: from pf.freedaemonhosting.com ([66.210.104.252]:29978 helo=FreeDaemonHosting.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcBHK-0001DS-42 for qemu-devel@nongnu.org; Sat, 06 Sep 2008 23:49:34 -0400 Date: Sat, 6 Sep 2008 22:48:22 -0500 From: qemu-devel@email.fries.net Subject: Re: [Qemu-devel] [PATCH 1/1] Make vmport an optional feature at run time. Message-ID: <20080907034822.GA31050@fries.net> References: <1219578445-25610-1-git-send-email-blob@blob.co.uk> <48B1B8C5.4040902@codemonkey.ws> <48B1FB9F.3090405@codemonkey.ws> <20080825055840.GA683@fries.net> <48C33B6D.5080606@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48C33B6D.5080606@codemonkey.ws> Reply-To: todd@fries.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org Maybe I'm missing the point of this exercise. I can use the rtc and other mechanisms to get the guests version of system time. vmport I understand is to help the guest stay in sync with real time (i.e. the hosts idea of time). Am I missing something? -- Todd Fries .. todd@fries.net _____________________________________________ | \ 1.636.410.0632 (voice) | Free Daemon Consulting, LLC \ 1.405.227.9094 (voice) | http://FreeDaemonConsulting.com \ 1.866.792.3418 (FAX) | "..in support of free software solutions." \ 250797 (FWD) | \ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 37E7 D3EB 74D0 8D66 A68D B866 0326 204E 3F42 004A http://todd.fries.net/pgp.txt Penned by Anthony Liguori on 20080906 21:24.45, we have: > Todd T. Fries wrote: >> Just incase a 'more complete' vmport codeset is useful, here is my >> stab at extending it. I haven't extended it far enough yet that >> OpenBSD's vmt(4) interface works, but would be more than happy >> if someone else were to carry this flag and run with it.. >> >> >> >> +static uint32_t vmport_cmd_get_time(void *opaque, uint32_t addr) >> +{ >> + CPUState *env = opaque; >> + struct timeval tv; >> + gettimeofday(&tv, NULL); >> + env->regs[R_EAX] = tv.tv_sec; >> + env->regs[R_EBX] = tv.tv_usec; >> + return tv.tv_sec; >> +} >> >> > > FWIW, this is incorrect. You are presenting the host's version of wall > clock time, not the guest's version. > > Regards, > > Anthony Liguori