From: "Jan Beulich" Subject: Re: [PATCH] hvm/hpet: Correctly gate the virtual HPET on HVM_PARAM_HPET_ENABLE Date: Thu, 15 Jan 2015 15:34:55 +0000 Message-ID: <54B7EC2F02000078000557DF@mail.emea.novell.com> References: <1421332842-28693-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1421332842-28693-1-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Tim Deegan , Keir Fraser , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 15.01.15 at 15:40, wrote: > c/s 3f8e22de7 "x86 hvm: Allow HPET to be configured as a per-domain config > option" introduced the parameter to conditionally enable the HPET. > > However, having the check in hpet_range() does not have the intended effect. > As currently implemented, when the HPET is disabled, the range is not > claimed > and an ioreq is forwarded to qemu, which implements an HPET itself. > > Properly disable the HPET by always claiming the range, dropping writes and > reading ~0. Hmm, while the patch certainly does what you describe above, is that really correct? There could be something else at that address when the HPET is disabled. Therefore I would rather think that qemu should be told to also not make a HPET available when the option is off. Jan