All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dong, Eddie" <eddie.dong@intel.com>
To: "Zhang, Yang Z" <yang.z.zhang@intel.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: "Dong, Eddie" <eddie.dong@intel.com>,
	"JBeulich@suse.com" <JBeulich@suse.com>
Subject: Re: [PATCH 3/3] Nested VMX: Setup the virtual NMI exiting info
Date: Wed, 18 Dec 2013 09:00:38 +0000	[thread overview]
Message-ID: <A12AC9D104E08D47BAF23C492F83C53B256C8C7F@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <1386814004-5574-4-git-send-email-yang.z.zhang@intel.com>

Acked by Eddie Dong <eddie.dong@intel.com>

-----Original Message-----
From: Zhang, Yang Z 
Sent: Thursday, December 12, 2013 10:07 AM
To: xen-devel@lists.xen.org
Cc: JBeulich@suse.com; Dong, Eddie; Zhang, Yang Z
Subject: [PATCH 3/3] Nested VMX: Setup the virtual NMI exiting info

From: Yang Zhang <yang.z.zhang@Intel.com>

When inject a virtual nmi exit to L1, hypervisor need to set the
virtual vmcs with right vaule which is missing in current Xen.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
---
 xen/arch/x86/hvm/vmx/vvmx.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c
index 0daad79..41db52b 100644
--- a/xen/arch/x86/hvm/vmx/vvmx.c
+++ b/xen/arch/x86/hvm/vmx/vvmx.c
@@ -1293,6 +1293,12 @@ static void sync_exception_state(struct vcpu *v)
                     nvmx->intr.error_code);
         break;
     case X86_EVENTTYPE_NMI:
+        __set_vvmcs(nvcpu->nv_vvmcx, VM_EXIT_REASON,
+                    EXIT_REASON_EXCEPTION_NMI);
+        __set_vvmcs(nvcpu->nv_vvmcx, EXIT_QUALIFICATION, 0);
+        __set_vvmcs(nvcpu->nv_vvmcx, VM_EXIT_INTR_INFO,
+                    nvmx->intr.intr_info);
+        break;
     default:
         gdprintk(XENLOG_ERR, "Exception state %lx not handled\n",
                nvmx->intr.intr_info); 
-- 
1.7.1

  reply	other threads:[~2013-12-18  9:00 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-12  2:06 [PATCH 0/3] some nested vmx fixing to hyper-v Yang Zhang
2013-12-12  2:06 ` [PATCH 1/3] Nested VMX: update nested paging mode when vmswitch is in progress Yang Zhang
2013-12-12 11:04   ` Egger, Christoph
2013-12-13  3:30     ` Zhang, Yang Z
2013-12-17  1:10     ` Zhang, Yang Z
2013-12-18  8:58   ` Dong, Eddie
2013-12-18 10:08     ` Jan Beulich
2013-12-18 10:24       ` Zhang, Yang Z
2013-12-18 12:05         ` Egger, Christoph
2013-12-23  1:34           ` Zhang, Yang Z
2013-12-24 11:35           ` Zhang, Yang Z
2014-01-14  2:33           ` Zhang, Yang Z
2014-01-14  7:29             ` Jan Beulich
2014-01-14  7:38               ` Zhang, Yang Z
2014-01-20  9:07                 ` Egger, Christoph
2014-01-21  8:49                   ` Zhang, Yang Z
2014-01-21  9:46                     ` Egger, Christoph
2013-12-18 15:56       ` Dong, Eddie
2013-12-12  2:06 ` [PATCH 2/3] VMX, apicv: Set "NMI-window exiting" for NMI Yang Zhang
2014-01-08  1:23   ` Zhang, Yang Z
2014-01-08  1:28     ` Andrew Cooper
2014-01-08  1:36       ` Zhang, Yang Z
2014-01-08  1:41   ` Zhang, Yang Z
2013-12-12  2:06 ` [PATCH 3/3] Nested VMX: Setup the virtual NMI exiting info Yang Zhang
2013-12-18  9:00   ` Dong, Eddie [this message]
2013-12-18  5:39 ` [PATCH 0/3] some nested vmx fixing to hyper-v Zhang, Yang Z

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=A12AC9D104E08D47BAF23C492F83C53B256C8C7F@SHSMSX104.ccr.corp.intel.com \
    --to=eddie.dong@intel.com \
    --cc=JBeulich@suse.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@intel.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.