From: Frank van der Linden <frank.van.der.linden@oracle.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH 0 of 5] PV on HVM Xen
Date: Mon, 15 Mar 2010 17:24:19 -0600 [thread overview]
Message-ID: <4B9EC1A3.1070200@oracle.com> (raw)
In-Reply-To: <4B9EBE03.4080105@goop.org>
On 03/15/10 05:08 PM, Jeremy Fitzhardinge wrote:
> On 03/15/2010 05:28 AM, Stefano Stabellini wrote:
>> I like your pv clocksource implementation.
>> The only reason why I would defer the patch is that I don't particularly
>> like the "enable_pv" hypercall, so I would try to get away without it,
>> resetting the tsc offset automatically when enabling the VIRQ_TIMER on
>> an HVM domain.
>
> Ah, so the issue is that if we're using the pvclock, the host and
> guest need to share the same tsc, so we can't deal with any kind of
> tsc offset?
>
> In that case, I'd prefer to have an explicit "set/remove tsc offset"
> vcpu op rather than making it the implicit side-effect of anything
> else. In particular, since clock sources and event sources are
> completely distinct, making tsc offset (a clock source thing) affected
> VIRQ_TIMER (and event source thing) seems like a particularly poor idea.
>
> That, or make the pvclock structure the HVM vcpu sees have timing
> parameters which already incorporate the tsc offset. We've already
> demonstrated that there's no need to have the time info in the real
> shared memory between Xen and the domain (it can be updated via copy
> when needed).
I'd like to see it done explicitly too. You could use PV timestamps
without actually using VIRQ_TIMER. It would not be an optimal
combination, but you could do it. In fact, just today I looked at an old
patch that I had lying around to do just this for Solaris PV domU.
Also, relying on side-effects makes for bad interfaces.
- Frank
next prev parent reply other threads:[~2010-03-15 23:24 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 15:46 [PATCH 0 of 5] PV on HVM Xen Stefano Stabellini
2010-03-10 17:33 ` [Xen-devel] " Pasi Kärkkäinen
2010-03-10 17:55 ` Stefano Stabellini
2010-03-10 19:45 ` Jeremy Fitzhardinge
2010-03-12 3:23 ` Sheng Yang
2010-03-12 3:23 ` Sheng Yang
2010-03-12 10:42 ` [Xen-devel] " Stefano Stabellini
2010-03-12 16:00 ` Stefano Stabellini
2010-03-15 4:05 ` Sheng Yang
2010-03-15 8:29 ` Sheng Yang
2010-03-15 12:22 ` Stefano Stabellini
2010-03-17 9:38 ` Sheng Yang
2010-03-17 14:18 ` Konrad Rzeszutek Wilk
2010-03-17 15:21 ` Stefano Stabellini
2010-03-17 16:13 ` Jeremy Fitzhardinge
2010-03-18 1:30 ` Sheng Yang
2010-03-19 20:38 ` Jeremy Fitzhardinge
2010-03-22 6:26 ` MSI proposal and work transfer...(was: Re: [PATCH 0 of 5] PV on HVM Xen) Sheng Yang
2010-03-23 20:47 ` Jeremy Fitzhardinge
2010-03-24 8:19 ` Sheng Yang
2010-03-23 23:16 ` Stefano Stabellini
2010-03-24 8:25 ` Sheng Yang
2010-03-18 2:19 ` [PATCH 0 of 5] PV on HVM Xen Sheng Yang
2010-03-18 16:42 ` Jeremy Fitzhardinge
2010-03-17 16:13 ` Jeremy Fitzhardinge
2010-03-15 12:28 ` Stefano Stabellini
2010-03-15 23:08 ` Jeremy Fitzhardinge
2010-03-15 23:24 ` Frank van der Linden [this message]
2010-03-16 0:32 ` Dan Magenheimer
2010-03-16 6:09 ` Sheng Yang
2010-03-16 16:46 ` Dan Magenheimer
2010-03-16 11:07 ` Stefano Stabellini
2010-03-16 17:23 ` Jeremy Fitzhardinge
2010-03-16 17:32 ` Stefano Stabellini
2010-03-16 17:41 ` Jeremy Fitzhardinge
2010-03-16 18:06 ` Stefano Stabellini
2010-03-16 18:26 ` Jeremy Fitzhardinge
2010-03-16 18:37 ` Stefano Stabellini
2010-03-17 8:51 ` Sheng Yang
2010-03-17 9:18 ` Sheng Yang
2010-03-17 15:17 ` Stefano Stabellini
2010-03-17 18:20 ` Ian Campbell
2010-03-18 1:42 ` Sheng Yang
2010-03-18 1:35 ` Sheng Yang
2010-03-18 14:22 ` Stefano Stabellini
2010-03-18 16:50 ` Jeremy Fitzhardinge
2010-03-18 17:30 ` Jeremy Fitzhardinge
2010-03-12 21:53 ` [Xen-devel] " Jeremy Fitzhardinge
-- strict thread matches above, loose matches on Subject: below --
2010-03-12 11:44 Boris Derzhavets
2010-03-12 11:59 ` Stefano Stabellini
2010-03-12 15:01 ` Boris Derzhavets
2010-03-12 15:08 ` Stefano Stabellini
2010-03-12 15:09 ` Boris Derzhavets
2010-03-12 20:10 ` Jeremy Fitzhardinge
2010-03-12 21:14 ` Boris Derzhavets
2010-03-12 21:22 ` Jeremy Fitzhardinge
2010-03-12 21:28 ` Boris Derzhavets
2010-03-12 21:25 ` Boris Derzhavets
2010-03-12 21:29 ` Jeremy Fitzhardinge
2010-03-12 22:08 ` Boris Derzhavets
2010-03-12 22:11 ` Jeremy Fitzhardinge
2010-03-12 22:13 ` Boris Derzhavets
2010-03-12 22:22 ` Jeremy Fitzhardinge
2010-03-15 15:53 ` Stefano Stabellini
2010-03-15 16:02 ` Boris Derzhavets
2010-03-15 17:27 ` Stefano Stabellini
2010-03-15 17:49 ` Boris Derzhavets
2010-03-15 18:01 ` Stefano Stabellini
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=4B9EC1A3.1070200@oracle.com \
--to=frank.van.der.linden@oracle.com \
--cc=jeremy@goop.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.