virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* Re: Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
       [not found] <C1FB3FEA.98F7%keir@xensource.com>
@ 2007-02-16 17:46 ` Jeremy Fitzhardinge
  2007-02-16 19:00   ` [Xen-devel] " Keir Fraser
  2007-02-16 19:00   ` Keir Fraser
  0 siblings, 2 replies; 6+ messages in thread
From: Jeremy Fitzhardinge @ 2007-02-16 17:46 UTC (permalink / raw)
  To: Keir Fraser
  Cc: xen-devel, Andi Kleen, linux-kernel, Ian Pratt, Chris Wright,
	virtualization, Andrew Morton, Steven Hand, Christian Limpach

Keir Fraser wrote:
> This initial patchset does not include save/restore support anyway, so in
> fact it would be consistent to have CONFIG_PREEMPT configurable. I'm sure
> that we are going to have some nasty bugs to fix up as a result, but we
> can't fix them until we find them! Then we can convert our save/restore code
> to use the freezer before submitting it for inclusion.
OK.  So that makes the only config restriction the 100Hz ticks.

    J

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
  2007-02-16 17:46 ` Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options Jeremy Fitzhardinge
@ 2007-02-16 19:00   ` Keir Fraser
  2007-02-16 19:00   ` Keir Fraser
  1 sibling, 0 replies; 6+ messages in thread
From: Keir Fraser @ 2007-02-16 19:00 UTC (permalink / raw)
  To: Jeremy Fitzhardinge, Keir Fraser
  Cc: xen-devel, Andi Kleen, linux-kernel, Ian Pratt, Chris Wright,
	virtualization, Andrew Morton, Steven Hand, Christian Limpach

On 16/2/07 17:46, "Jeremy Fitzhardinge" <jeremy@goop.org> wrote:

> Keir Fraser wrote:
>> This initial patchset does not include save/restore support anyway, so in
>> fact it would be consistent to have CONFIG_PREEMPT configurable. I'm sure
>> that we are going to have some nasty bugs to fix up as a result, but we
>> can't fix them until we find them! Then we can convert our save/restore code
>> to use the freezer before submitting it for inclusion.
> OK.  So that makes the only config restriction the 100Hz ticks.

We can extend the Xen timer interface quite easily and get rid of this one
too. In fact it doesn't *much* matter if the CONFIG_HZ differs from the Xen
ticker rate -- we modified the Linux timer ISR to handle timer interrupts at
arbitrary times already. The only drawback is that jiffies updates in burts
if CONFIG_HZ is higher than the actual tick rate, and this can affect some
calibration constants and cause Linux to print out some weird values at
start-of-day.

 -- Keir

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Xen-devel] Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
  2007-02-16 17:46 ` Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options Jeremy Fitzhardinge
  2007-02-16 19:00   ` [Xen-devel] " Keir Fraser
@ 2007-02-16 19:00   ` Keir Fraser
  1 sibling, 0 replies; 6+ messages in thread
From: Keir Fraser @ 2007-02-16 19:00 UTC (permalink / raw)
  To: Jeremy Fitzhardinge, Keir Fraser
  Cc: Chris Wright, Andi Kleen, xen-devel, virtualization, Steven Hand,
	Andrew Morton, Ian Pratt, linux-kernel, Christian Limpach

On 16/2/07 17:46, "Jeremy Fitzhardinge" <jeremy@goop.org> wrote:

> Keir Fraser wrote:
>> This initial patchset does not include save/restore support anyway, so in
>> fact it would be consistent to have CONFIG_PREEMPT configurable. I'm sure
>> that we are going to have some nasty bugs to fix up as a result, but we
>> can't fix them until we find them! Then we can convert our save/restore code
>> to use the freezer before submitting it for inclusion.
> OK.  So that makes the only config restriction the 100Hz ticks.

We can extend the Xen timer interface quite easily and get rid of this one
too. In fact it doesn't *much* matter if the CONFIG_HZ differs from the Xen
ticker rate -- we modified the Linux timer ISR to handle timer interrupts at
arbitrary times already. The only drawback is that jiffies updates in burts
if CONFIG_HZ is higher than the actual tick rate, and this can affect some
calibration constants and cause Linux to print out some weird values at
start-of-day.

 -- Keir

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
       [not found] <C1FBAFD7.99AB%keir@xensource.com>
@ 2007-02-16 19:24 ` Jeremy Fitzhardinge
  2007-02-16 21:51 ` Zachary Amsden
  1 sibling, 0 replies; 6+ messages in thread
From: Jeremy Fitzhardinge @ 2007-02-16 19:24 UTC (permalink / raw)
  To: Keir Fraser
  Cc: xen-devel, virtualization, Steven Hand, linux-kernel,
	Chris Wright, Andi Kleen, Andrew Morton, Ian Pratt,
	Christian Limpach

Keir Fraser wrote:
> We can extend the Xen timer interface quite easily and get rid of this one
> too. In fact it doesn't *much* matter if the CONFIG_HZ differs from the Xen
> ticker rate -- we modified the Linux timer ISR to handle timer interrupts at
> arbitrary times already. The only drawback is that jiffies updates in burts
> if CONFIG_HZ is higher than the actual tick rate, and this can affect some
> calibration constants and cause Linux to print out some weird values at
> start-of-day.
>   

I was wondering what would happen if we tried that.  I guess its
equivalent to having stolen time between each Xen tick.

    J

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
       [not found] <C1FBAFD7.99AB%keir@xensource.com>
  2007-02-16 19:24 ` Jeremy Fitzhardinge
@ 2007-02-16 21:51 ` Zachary Amsden
  2007-02-16 22:38   ` [Xen-devel] " Dan Hecht
  1 sibling, 1 reply; 6+ messages in thread
From: Zachary Amsden @ 2007-02-16 21:51 UTC (permalink / raw)
  To: Keir Fraser
  Cc: Jeremy Fitzhardinge, xen-devel, Andi Kleen, linux-kernel,
	Christian Limpach, Chris Wright, virtualization, Andrew Morton,
	Steven Hand, Ian Pratt

Keir Fraser wrote:
> On 16/2/07 17:46, "Jeremy Fitzhardinge" <jeremy@goop.org> wrote:
>
>   
>> Keir Fraser wrote:
>>     
>>> This initial patchset does not include save/restore support anyway, so in
>>> fact it would be consistent to have CONFIG_PREEMPT configurable. I'm sure
>>> that we are going to have some nasty bugs to fix up as a result, but we
>>> can't fix them until we find them! Then we can convert our save/restore code
>>> to use the freezer before submitting it for inclusion.
>>>       
>> OK.  So that makes the only config restriction the 100Hz ticks.
>>     
>
> We can extend the Xen timer interface quite easily and get rid of this one
> too. In fact it doesn't *much* matter if the CONFIG_HZ differs from the Xen
> ticker rate -- we modified the Linux timer ISR to handle timer interrupts at
> arbitrary times already. The only drawback is that jiffies updates in burts
> if CONFIG_HZ is higher than the actual tick rate, and this can affect some
> calibration constants and cause Linux to print out some weird values at
> start-of-day.
>   

That's why we'd very much like to get a get_cpu_speed paravirt-op 
implemented.  I think this would be useful to work around these problems 
for Xen as well.

Zach

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options.
  2007-02-16 22:38   ` [Xen-devel] " Dan Hecht
@ 2007-02-17 15:06     ` Rik van Riel
  0 siblings, 0 replies; 6+ messages in thread
From: Rik van Riel @ 2007-02-17 15:06 UTC (permalink / raw)
  To: Dan Hecht
  Cc: Zachary Amsden, xen-devel, Andi Kleen, Steven Hand, linux-kernel,
	Ian Pratt, Chris Wright, virtualization, Andrew Morton,
	Keir Fraser, Christian Limpach

Dan Hecht wrote:

> Yes, and regardless of whether you run your periodic timer slower than 
> HZ, calibrating time in a VM is always difficult due to the fact the 
> kernel is time sharing the physical cpu.  Why not just ask the 
> underlying hypervisor?

Upstream Xen does just that.

I'm guessing we'll want something similar for KVM paravirt.

-- 
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is.  Each group
calls the other unpatriotic.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-17 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <C1FB3FEA.98F7%keir@xensource.com>
2007-02-16 17:46 ` Re: [patch 14/21] Xen-paravirt: Add XEN config options and disableunsupported config options Jeremy Fitzhardinge
2007-02-16 19:00   ` [Xen-devel] " Keir Fraser
2007-02-16 19:00   ` Keir Fraser
     [not found] <C1FBAFD7.99AB%keir@xensource.com>
2007-02-16 19:24 ` Jeremy Fitzhardinge
2007-02-16 21:51 ` Zachary Amsden
2007-02-16 22:38   ` [Xen-devel] " Dan Hecht
2007-02-17 15:06     ` Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).