[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] own getDayTime return always 0



On Wed, Jul 06, 2016 at 10:07:12PM +0100, gotoc io wrote:
> Hi, I am trying read time from shared_info page as a guest uOS.
> 
> extern shared_info_t * shared_info;
> ..
> 
> seconds = shared_info->wc_sec;
> nanoseconds = shared_info->wc_nsec;
> 
> But during reading I always got 0 from sec/nsec.
> Do I need any action/syscall to update this values, after domainU OS start?
> 

Syscall -- no.

Please have a look at mini-os.git/arch/x86/time.c:update_wallclock. You
need to have proper barriers etc.

Wei.

> I am using Xen 4.8 hypervisor builded for debug.
> 
> 
> Thanks

> _______________________________________________
> Minios-devel mailing list
> Minios-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.