All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Big Strong <fangtuo90@gmail.com>
Cc: Tamas Lengyel <tamas.k.lengyel@gmail.com>,
	Wei Liu <wei.liu2@citrix.com>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: xc_altp2m_set_vcpu_enable_notify fail
Date: Wed, 4 May 2016 11:43:04 +0100	[thread overview]
Message-ID: <20160504104304.GK2111@citrix.com> (raw)
In-Reply-To: <CAFnE1f1mOP0gN9oPB2wkyrBwYZRyESdA5QvB_hSxpbdVJ2UnEA@mail.gmail.com>

On Mon, May 02, 2016 at 07:42:34PM +0800, Big Strong wrote:
> >
> > Check the errno please, thats' where the information is stored.
> 
> 
> I looked up in the source code of xen 4.6, and find that errno 4 indicates
> "Interrupted system call
> <http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/public/errno.h;h=8c88bb1d40ff370c2824bb214bddfda4540528ed;hb=b24ad7ba911a9f0688ab179736476e44c52144f1#l36>",
> I'm not sure if it is the cause.
> 

That error number is internal to Xen, so you could be looking at the
wrong source.

The errno business is a bit messy. In general privcmd translates Xen's
errno into OS's errno. So in this case you need to look at your
operating system's errno.

> Another information about VMFUNC error is from the Intel Manual:
> 
> 25.5.5.2 General Operation of the VMFUNC Instruction
> > The VMFUNC instruction causes an invalid-opcode exception (#UD) if the
> > “enable VM functions” VM-execution
> > controls is 0 or the value of EAX is greater than 63 (only VM functions
> > 0–63 can be enable). Otherwise, the
> > instruction causes a VM exit if the bit at position EAX is 0 in the
> > VM-function controls (the selected VM function is
> > not enabled). If such a VM exit occurs, the basic exit reason used is 59
> > (3BH), indicating “VMFUNC”, and the length
> > of the VMFUNC instruction is saved into the VM-exit instruction-length
> > field. If the instruction causes neither an
> > invalid-opcode exception nor a VM exit due to a disabled VM function, it
> > performs the functionality of the
> > VM function specified by the value in EAX.
> 
> 
>  i.e. In conditions when guest software invoked a VM function with the
> VMFUNC instruction and the VM function either was not
> enabled or generated a function-specific condition causing a VM exit.
> 
> But I've already enabled VM function and the conditions described in the
> manual are not true (EAX is 0), so I'm still not clear the real reason

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

  reply	other threads:[~2016-05-04 10:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-02  8:36 xc_altp2m_set_vcpu_enable_notify fail Big Strong
2016-05-02 10:47 ` Wei Liu
2016-05-02 11:42   ` Big Strong
2016-05-04 10:43     ` Wei Liu [this message]
2016-05-04 10:48       ` Wei Liu
2016-05-04 12:59         ` Big Strong
2016-05-06 11:10           ` Wei Liu
2016-05-07  7:34             ` Big Strong
     [not found]               ` <CABfawhkfYqX6t2QFDfE=SF+xjBzqGtn7kvA0hfkDv841CarYBQ@mail.gmail.com>
2016-05-07 14:47                 ` Tamas K Lengyel
2016-05-09  7:37                   ` Big Strong
2016-05-09  8:59                     ` Wei Liu
2016-05-09 15:30                       ` Big Strong
2016-05-10 10:07                         ` Wei Liu
2016-05-10 16:29                           ` Big Strong
2016-05-11  3:37                             ` Big Strong
2016-05-11  7:56                               ` Big Strong
2016-05-11 15:37                                 ` Big Strong
2016-05-11 16:26                                   ` Sahita, Ravi
2016-05-12 13:00                                     ` Big Strong
2016-05-12 15:17                                       ` Wei Liu
2016-05-12 15:53                                         ` Tamas K Lengyel
2016-05-12 15:59                                           ` Sahita, Ravi
2016-05-16  9:06                                         ` Big Strong
2016-05-16 15:05                                           ` Big Strong
2016-05-17 12:05                                             ` Big Strong
2016-05-18  2:43                                               ` Big Strong
2016-05-18  4:56                                                 ` Tamas K Lengyel
2016-05-18  9:48                                               ` Wei Liu
2016-05-18 13:14                                                 ` Tamas K Lengyel
2016-05-18 13:22                                                   ` Wei Liu

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=20160504104304.GK2111@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=fangtuo90@gmail.com \
    --cc=tamas.k.lengyel@gmail.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.