RE: [Qemu-devel] [PATCH 1/3]use int64 when compare two time

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

 



> -----Original Message-----
> From: Andreas Färber [mailto:afaerber@xxxxxxx]
> Sent: Saturday, January 07, 2012 1:44 AM
> > use int64 when compare two time
> >
> > int32 only represent only 136 years when comparing two times based on
> second. It would be better to use int64.
> 
> int32 and int64 are softfloat types and should not be used here.
> 
> Do you have an actual use case that breaks with int / int32_t?
> 
The range of int is from (-2^31~2^31-1). This means it only can express (-2^31~2^31-1) seconds, about -68 years ~ +68 years compare with now. 
You can use "-rtc base=YYYY-MM-DD" to set the RTC start date and if (base - now) greater than 68 year, then you will see error message in windows guest and the date will roll back to 1944.

best regards
yang
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux