]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Emulate RTC to fix system time in guests
authorPekka Enberg <penberg@kernel.org>
Thu, 28 Apr 2011 18:50:17 +0000 (21:50 +0300)
committerPekka Enberg <penberg@kernel.org>
Thu, 28 Apr 2011 19:12:06 +0000 (22:12 +0300)
commitca2e51d9e7020e155a8a90b56e5aa1dd0b55fedc
tree5daa1dfeb4ced1b2c939230cf28db3bf78b0b741
parent0a233a2f126fca3d958b3c2f86914276b7074915
kvm tools: Emulate RTC to fix system time in guests

This patch fixes system time in guests by implementing proper CMOS RTC clock
support.

  # Before:

  sh-2.05b# date
  Fri Aug  7 04:02:01 UTC 2009

  # After:

  sh-2.05b# date
  Thu Apr 28 19:12:21 UTC 2011

Cc: Asias He <asias.hejun@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile
tools/kvm/include/kvm/rtc.h [new file with mode: 0644]
tools/kvm/ioport.c
tools/kvm/kvm-run.c
tools/kvm/rtc.c [new file with mode: 0644]