hvm/hpet: Only set comparator or period not both.
authorDon Slutz <dslutz@verizon.com>
Fri, 2 May 2014 20:18:01 +0000 (16:18 -0400)
committerTim Deegan <tim@xen.org>
Thu, 8 May 2014 11:03:53 +0000 (12:03 +0100)
commit02c8401f0cd5f1f7ea3cfd8d98a0f246b2999c88
tree0acc1b0fee3d63fde7c4faff3312382f342a0c9f
parent5383efd4d043e225caaf82a4dbc146c6aeab84e5
hvm/hpet: Only set comparator or period not both.

The current code sets both.  If setting the comparator also set
comparator64 (the hidden version).

Based on:

software-developers-hpet-spec-1-0a.pdf

A write call should only change comparator or period, not both.

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