All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Tim Deegan <tim@xen.org>, Keir Fraser <keir@xen.org>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] hvm/hpet: Correctly gate the virtual HPET on HVM_PARAM_HPET_ENABLE
Date: Thu, 15 Jan 2015 15:49:03 +0000	[thread overview]
Message-ID: <54B7E16F.2010609@citrix.com> (raw)
In-Reply-To: <54B7EC2F02000078000557DF@mail.emea.novell.com>

On 15/01/15 15:34, Jan Beulich wrote:
>>>> On 15.01.15 at 15:40, <andrew.cooper3@citrix.com> 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.

Without out wiring up northbridge chipset reigsters from Qemu to Xen to
control where components such as the HPET appear, I think we can
reasonably assume that there will be nothing there.

Whether the HPET is present or not, the range ought to reserved in the
E820 and not free for arbitrary reuse by the OS.

~Andrew

  reply	other threads:[~2015-01-15 15:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15 14:40 [PATCH] hvm/hpet: Correctly gate the virtual HPET on HVM_PARAM_HPET_ENABLE Andrew Cooper
2015-01-15 15:34 ` Jan Beulich
2015-01-15 15:49   ` Andrew Cooper [this message]
2015-01-19 11:08     ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B7E16F.2010609@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.