From: Keir Fraser <keir.xen@gmail.com>
To: Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Eddie Dong <eddie.dong@intel.com>,
Jun Nakajima <jun.nakajima@intel.com>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCH v3] VMX: don't crash processing 'd' debug key
Date: Mon, 11 Nov 2013 13:13:34 +0000 [thread overview]
Message-ID: <CEA6887E.3DC3A%keir.xen@gmail.com> (raw)
In-Reply-To: <5280E1C00200007800101D47@nat28.tlf.novell.com>
On 11/11/2013 12:55, "Jan Beulich" <JBeulich@suse.com> wrote:
> There's a window during scheduling where "current" and the active VMCS
> may disagree: The former gets set much earlier than the latter. Since
> both vmx_vmcs_enter() and vmx_vmcs_exit() immediately return when the
> subject vCPU is "current", accessing VMCS fields would, depending on
> whether there is any currently active VMCS, either read wrong data, or
> cause a crash.
>
> Going forward we might want to consider reducing the window during
> which vmx_vmcs_enter() might fail (e.g. doing a plain __vmptrld() when
> v->arch.hvm_vmx.vmcs != this_cpu(current_vmcs) but arch_vmx->active_cpu
> == -1), but that would add complexities (acquiring and - more
> importantly - properly dropping v->arch.hvm_vmx.vmcs_lock) that don't
> look worthwhile adding right now.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This is a little ugly but I can't think of a nicer way.
Acked-by: Keir Fraser <keir@xen.org>
next prev parent reply other threads:[~2013-11-11 13:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 10:44 [PATCH] VMX: don't crash processing 'd' debug key Jan Beulich
2013-11-07 14:34 ` Andrew Cooper
2013-11-07 14:49 ` Jan Beulich
2013-11-07 15:35 ` Andrew Cooper
2013-11-07 19:08 ` Tim Deegan
2013-11-08 16:04 ` Jan Beulich
2013-11-08 16:09 ` Andrew Cooper
2013-11-08 16:11 ` Andrew Cooper
2013-11-08 16:15 ` Jan Beulich
2013-11-08 16:55 ` Tim Deegan
2013-11-11 12:55 ` [PATCH v3] " Jan Beulich
2013-11-11 13:13 ` Keir Fraser [this message]
2013-11-08 16:07 ` [PATCH v2] " 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=CEA6887E.3DC3A%keir.xen@gmail.com \
--to=keir.xen@gmail.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=eddie.dong@intel.com \
--cc=jun.nakajima@intel.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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).