hvm/hpet: Init comparator64 like comparator.
authorDon Slutz <dslutz@verizon.com>
Fri, 2 May 2014 20:18:05 +0000 (16:18 -0400)
committerTim Deegan <tim@xen.org>
Thu, 8 May 2014 11:03:53 +0000 (12:03 +0100)
commitfc7a9f7be97f6ece1e6507f1ee43c841dc3ecfc6
treec18fc78c82246171813cd6629c30aa4ffb656ab2
parenta206319856c6b59b606bb27f1ee896b5ff5a74e7
hvm/hpet: Init comparator64 like comparator.

The software-developers-hpet-spec-1-0a.pdf says that the comparator
starts as all 1's.  Also make the hidden register comparator64 the same.

Since only the hidden register comparator64 is used by hpet_save, it
needs to start out with the right value.

A disabled hpet (like when a guest is starting), should start with
the value the spec says.  Both the guest (via reading the
comparator) and an administrator using xen-hvmctx, will see all 0's
not all 1's.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hpet.c