From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel List <xen-devel@lists.xen.org>,
Jan Beulich <JBeulich@suse.com>
Cc: Tim Deegan <tim@xen.org>, Keir Fraser <keir@xen.org>
Subject: Segment registers at top of stack
Date: Thu, 3 Jan 2013 16:00:46 +0000 [thread overview]
Message-ID: <50E5AB2E.7030608@citrix.com> (raw)
Hello,
While debugging an issue of 0xdeadbeef's appearing in a crash report, I
have discovered that the es thru gs entries in cpu_user_regs appear to
be completely unused on a 64bit hypervisor per-cpu stack.
In 64bit mode, all segment register changes happen in
{load,save}segments(). The only code I can find which ever sets these
values is the NDEBUG poisoning on the VMX/SVM vmexit hypervisor entry paths.
If the values are indeed completely unused, would it be sensible to
remove them from the per-cpu stacks as we have now dropped support for
the 32bit hypervisor (which certainly does use them)?
On the plus side, it would mean that our hypervisor entry points would
be at the start of a cache line, rather than half way along it, and we
gain an extra 32 bytes of space on the cpu stacks. On the other hand,
doing it neatly would be rather more difficult, and might just be a lot
of effort for minimal gains.
~Andrew
next reply other threads:[~2013-01-03 16:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-03 16:00 Andrew Cooper [this message]
2013-01-03 16:34 ` Segment registers at top of stack Jan Beulich
2013-01-03 17:14 ` 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=50E5AB2E.7030608@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).