All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Sergey Dyasli <sergey.dyasli@citrix.com>
Cc: Andrew Cooper <Andrew.Cooper3@citrix.com>,
	Kevin Tian <kevin.tian@intel.com>,
	Jun Nakajima <jun.nakajima@intel.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v3 3/4] x86/vvmx: correctly emulate VMWRITE
Date: Wed, 08 Feb 2017 06:42:29 -0700	[thread overview]
Message-ID: <589B2E550200007800137BF7@prv-mh.provo.novell.com> (raw)
In-Reply-To: <20170208100935.30332-4-sergey.dyasli@citrix.com>

>>> On 08.02.17 at 11:09, <sergey.dyasli@citrix.com> wrote:
> --- a/xen/arch/x86/hvm/vmx/vvmx.c
> +++ b/xen/arch/x86/hvm/vmx/vvmx.c
> @@ -305,6 +305,19 @@ void set_vvmcs_real(const struct vcpu *v, u32 encoding, u64 val)
>      virtual_vmcs_vmwrite(v, encoding, val);
>  }
>  
> +enum vmx_insn_errno set_vvmcs_virtual_safe(void *vvmcs, u32 encoding, u64 val)
> +{
> +    set_vvmcs_virtual(vvmcs, encoding, val);
> +
> +    return 0;

I think the growing number of literal zeros requires the introduction
of a "no error" enumerator value, probably even to be used by the
two earlier patches (which, if you did so, wouldn't invalidate my R-b).
Furthermore, didn't earlier discussion result in it being desirable to
at least add a comment here clarifying that the unconditional
returning of success isn't really the intended behavior (i.e. more
work is needed here)?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-02-08 13:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-08 10:09 [PATCH v3 0/4] x86/vvmx: correctly emulate VMREAD and VMWRITE Sergey Dyasli
2017-02-08 10:09 ` [PATCH v3 1/4] x86/vmx: introduce vmwrite_safe() Sergey Dyasli
2017-02-08 13:33   ` Jan Beulich
2017-02-09  0:24   ` Tian, Kevin
2017-02-08 10:09 ` [PATCH v3 2/4] x86/vmx: improve vmread_safe() Sergey Dyasli
2017-02-08 13:35   ` Jan Beulich
2017-02-09  0:25   ` Tian, Kevin
2017-02-08 10:09 ` [PATCH v3 3/4] x86/vvmx: correctly emulate VMWRITE Sergey Dyasli
2017-02-08 13:42   ` Jan Beulich [this message]
2017-02-08 10:09 ` [PATCH v3 4/4] x86/vvmx: correctly emulate VMREAD Sergey Dyasli

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=589B2E550200007800137BF7@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=sergey.dyasli@citrix.com \
    --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 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.