From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
"Keir (Xen.org)" <keir@xen.org>, Jan Beulich <jbeulich@suse.com>,
Tim Deegan <tim@xen.org>
Subject: Xen RTC emulation
Date: Tue, 19 Nov 2013 12:01:28 +0000 [thread overview]
Message-ID: <528B5318.7010308@citrix.com> (raw)
Hello,
In what we believe is now the final regression discovered when upgrading
XenServer from Xen 4.1 to 4.3, there is an issue with RTC emulation.
Win2003 SP2 is a WAET unaware operating system, whose RTC access pattern
triggers Xen's rtc_mode_no_ack logic. The result is that the domain
falls into a tight loop reading RTC RegC, whoes value is always 0xc0.
I have confirmed that switching Xen back to RTC strict mode fixes the
regression, but I am presuming that this alone would be an unpopular fix
upstream.
At the moment, HVMloader unconditionally advertises the RTC_NO_ACK bit
in the WAET table, and Xen unconditionally decides that the domain has
been informed that it should not ack RTC interrupts as per the
specification.
This logic is broken. There is no guarantee that the domain has read
the WAET table, but even if it has, there is no guarantee that it will
act on the information it has been given. One option would be the
toolstack to set this parameter up; it is in the best place to know
whether a certain domain will correctly use the new available mode.
This would involve moving the rtc mode in Xen to a per-domain setting.
On the other hand, there are obvious advantages from Xen's point of view
with rtc_mode_no_ack, which couldn't be taken with the above toolstack
changes.
So, I would like peoples opinions on what is the best course of action?
Playing with this code has proved incredibly fragile in the past and I
am not sure whether it is better to fix up Xen's detection logic and
hope nothing else breaks, or defer the decision to the toolstack and
take the performance hit of running extra timers in Xen.
~Andrew
next reply other threads:[~2013-11-19 12:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 12:01 Andrew Cooper [this message]
2013-11-19 13:13 ` Xen RTC emulation Jan Beulich
2013-11-19 17:28 ` Andrew Cooper
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=528B5318.7010308@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 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).