From: Keir Fraser <keir.xen@gmail.com>
To: Marek Marczykowski <marmarek@mimuw.edu.pl>
Cc: Dan Magenheimer <dan.magenheimer@oracle.com>,
xen-devel@lists.xensource.com,
Joanna Rutkowska <joanna@invisiblethingslab.com>,
Rafal Wojtczuk <rafal@invisiblethingslab.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: xen-4.1: PV domain hanging at startup, jiffies stopped
Date: Wed, 31 Aug 2011 23:07:52 +0100 [thread overview]
Message-ID: <CA846F48.2014C%keir.xen@gmail.com> (raw)
In-Reply-To: <4E5EA3F2.10702@mimuw.edu.pl>
On 31/08/2011 22:13, "Marek Marczykowski" <marmarek@mimuw.edu.pl> wrote:
>> They really ought to work out to the same thing. This will trivially be the
>> case with tsc_mode=2 because both guest and hypervisor will see the same
>> (real) values from RDTSC, and use the same offsets and sacle factors to turn
>> that into a current system time. When using emulated TSC in the guest
>> (tsc_mode=0,1) then the TSC values it sees, and the offsets and scale
>> factors it applies, are different. It is intended that it should result in
>> the same values being computed for NOW(), but I suppose something could be
>> going wrong there.
>
> NOW() calls get_s_time() which doesn't look to be depended on tsc_mode
> setting. Have I missed something?
I mean the result of xen_clocksource_read() in the guest kernel, which we
expect to match the result of executing NOW() in the hypervisor. The former
does depend on tsc_mode because xen_clocksource_read() uses RDTSC.
-- Keir
prev parent reply other threads:[~2011-08-31 22:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-28 13:13 xen-4.1: PV domain hanging at startup, jiffies stopped Marek Marczykowski
2011-08-29 20:07 ` Konrad Rzeszutek Wilk
2011-08-29 20:21 ` Marek Marczykowski
2011-08-29 20:59 ` Konrad Rzeszutek Wilk
2011-08-29 21:28 ` Pasi Kärkkäinen
2011-08-30 17:18 ` Marek Marczykowski
2011-08-31 16:27 ` Marek Marczykowski
2011-08-31 20:00 ` Dan Magenheimer
2011-08-31 20:49 ` Marek Marczykowski
2011-08-31 21:01 ` Keir Fraser
2011-08-31 21:13 ` Marek Marczykowski
2011-08-31 22:07 ` Keir Fraser [this message]
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=CA846F48.2014C%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=dan.magenheimer@oracle.com \
--cc=joanna@invisiblethingslab.com \
--cc=konrad.wilk@oracle.com \
--cc=marmarek@mimuw.edu.pl \
--cc=rafal@invisiblethingslab.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 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).