xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: "Hao, Xudong" <xudong.hao@intel.com>,
	"JBeulich@suse.com" <JBeulich@suse.com>
Cc: Aravindh Puthiyaparambil <aravindh@virtuata.com>,
	"Dong, Eddie" <eddie.dong@intel.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 1/3] xen: Add instruction length parameter in function hvm_inject_exception
Date: Mon, 28 May 2012 07:49:53 +0100	[thread overview]
Message-ID: <CBE8DEA1.34527%keir.xen@gmail.com> (raw)
In-Reply-To: <403610A45A2B5242BD291EDAE8B37D300FDCA0FF@SHSMSX102.ccr.corp.intel.com>

On 28/05/2012 07:24, "Hao, Xudong" <xudong.hao@intel.com> wrote:

> Hi, Keir
> 
> This patch is fine to me, just one small comments: the note below the
> hvm_inject_hw_exception(TRAP*) should change to hvm_inject_hw_exception from
> hvm_inject_exception.

Yes indeed. Thanks!

 -- Keir

> --- a/xen/arch/x86/hvm/svm/nestedsvm.c  Fri May 25 08:21:25 2012 +0100
> +++ b/xen/arch/x86/hvm/svm/nestedsvm.c  Fri May 25 09:45:00 2012 +0100
> @@ -735,7 +735,7 @@ nsvm_vcpu_vmrun(struct vcpu *v, struct c
>      default:
>          gdprintk(XENLOG_ERR,
>              "nsvm_vcpu_vmentry failed, injecting #UD\n");
> -        hvm_inject_exception(TRAP_invalid_op, HVM_DELIVER_NO_ERROR_CODE, 0);
> +        hvm_inject_hw_exception(TRAP_invalid_op, HVM_DELIVER_NO_ERROR_CODE);
>          /* Must happen after hvm_inject_exception or it doesn't work right.
> */
> 
> And I'll add instruction length represented in 'struct hvm_trap', and correct
> the _trap.type in new function vmx_inject_trap() based on the restructuring.
> 
>> 
>>  -- Keir
> 

  reply	other threads:[~2012-05-28  6:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24 19:06 [PATCH 0/3] XEN: fix vmx exception mistake Xudong Hao
2012-05-24 19:06 ` [PATCH 1/3] xen: Add instruction length parameter in function hvm_inject_exception Xudong Hao
2012-05-25  8:53   ` Keir Fraser
2012-05-25 19:17     ` Aravindh Puthiyaparambil
2012-05-25 20:42       ` Keir Fraser
2012-05-28  6:37         ` Hao, Xudong
2012-05-28  6:24     ` Hao, Xudong
2012-05-28  6:49       ` Keir Fraser [this message]
2012-05-29  8:55         ` Hao, Xudong
2012-05-29 12:38           ` Keir Fraser
2012-05-30  0:58             ` Hao, Xudong
2012-05-24 19:06 ` [PATCH 2/3] VMX: Fix the mistake of exception execution Xudong Hao

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=CBE8DEA1.34527%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=aravindh@virtuata.com \
    --cc=eddie.dong@intel.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xiantao.zhang@intel.com \
    --cc=xudong.hao@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 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).