From: Don Slutz Subject: [PATCH v2 05/10] hvm/hpet: Init comparator64 like comparator. Date: Tue, 8 Apr 2014 10:24:49 -0400 Message-ID: <1396967094-29484-6-git-send-email-dslutz@verizon.com> References: <1396967094-29484-1-git-send-email-dslutz@verizon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1396967094-29484-1-git-send-email-dslutz@verizon.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Keir Fraser , Don Slutz , Jan Beulich List-Id: xen-devel@lists.xenproject.org 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. Signed-off-by: Don Slutz --- xen/arch/x86/hvm/hpet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c index 180fc10..bcd2778 100644 --- a/xen/arch/x86/hvm/hpet.c +++ b/xen/arch/x86/hvm/hpet.c @@ -627,6 +627,7 @@ void hpet_init(struct vcpu *v) h->hpet.timers[i].config = HPET_TN_INT_ROUTE_CAP | HPET_TN_64BIT_CAP | HPET_TN_PERIODIC_CAP; h->hpet.timers[i].cmp = ~0ULL; + h->hpet.comparator64[i] = ~0ULL; h->pt[i].source = PTSRC_isa; } } -- 1.8.4