From: Keir Fraser <keir@xensource.com>
To: "Tian, Kevin" <kevin.tian@intel.com>,
Keir Fraser <keir@xensource.com>,
xen-devel@lists.xensource.com
Cc: "Liu, Jinsong" <jinsong.liu@intel.com>
Subject: Re: trap/interrupt gate for hypercall
Date: Tue, 15 May 2007 16:30:16 +0100 [thread overview]
Message-ID: <C26F9098.EF9B%keir@xensource.com> (raw)
In-Reply-To: <D470B4E54465E3469E2ABBC5AFAC390F013B1DFF@pdsmsx412.ccr.corp.intel.com>
On 15/5/07 16:18, "Tian, Kevin" <kevin.tian@intel.com> wrote:
>> Everything's an interrupt gate on 32-bit Xen, so that we can safely
>> (atomically) save away guest segment register state. NMI is the only real
>> pain, and I suppose MCE too. Coincidentally Jan just emailed about this
>> very point.
>
> So why is atomic save required for hypercall here? NMI can break
> atomic save here for both types, as you said. Normally external
> interrupt handler doesn't need communicate with interrupted
> context. So even when an external interrupt comes in the middle
> of the guest context save for hypercall (if by trap gate), that
> interrupted save process can still continue since interrupt handler
> itself will impose atomic context save/restore on top of interrupted
> context.
Interrupt handlers save and restore segment registers. We could fault on a
reload of a segment register and lose the original segment register value.
-- Keir
next prev parent reply other threads:[~2007-05-15 15:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-15 14:43 trap/interrupt gate for hypercall Tian, Kevin
2007-05-15 15:02 ` Keir Fraser
2007-05-15 15:18 ` Tian, Kevin
2007-05-15 15:30 ` Keir Fraser [this message]
2007-05-16 0:23 ` Liu, Jinsong
2007-05-17 12:36 ` Liu, Jinsong
2007-05-16 3:17 ` Tian, Kevin
2007-05-16 6:50 ` Keir Fraser
2007-05-16 13:42 ` Liu, Jinsong
2007-05-16 14:23 ` Jan Beulich
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=C26F9098.EF9B%keir@xensource.com \
--to=keir@xensource.com \
--cc=jinsong.liu@intel.com \
--cc=kevin.tian@intel.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.