xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: =?gb18030?B?V2FuZ2JlaQ==?= <wangbei@zju.edu.cn>
To: =?gb18030?B?eGVuLWRldmVs?= <xen-devel@lists.xen.org>
Subject: Question about get the user or kernel mode of vmx vcpu
Date: Thu, 6 Jun 2013 00:24:15 +0800	[thread overview]
Message-ID: <tencent_434FFDEC3836AFB043173957@qq.com> (raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: Type: text/plain; charset="gb18030", Size: 1074 bytes --]

Hi,
     This is Bei Wang, . I am doing research of spinlock optimization to deal with lock holder preemption.
     I want to filter vcpu to make precise scheduling.If the vcpu of vmx hvm is running on user mode in guest,it will be filtered out.In linux-kvm £¬I use vmx_get_cpl function to get  
     But now i have a question to migrate the code into xen platform.I can't find any suitable function to judge cpl of vcpu.It seems that vmx_guest_x86_mode(arch/x86/hvm/vmx/vmx.c)don't output the mode of kernel or user in hvm.
     So what should I do to get the vcpu cpl of vmx in xen? Can you give me some advice?
     By the way ,my server is  x86 architecture.(DELL T710),not IA64
     Thank you very much :)
                                                                                                                                                                          Wangbei
                                                                                                                                                                         2013/6/5

[-- Attachment #1.2: Type: text/html, Size: 4092 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

             reply	other threads:[~2013-06-05 16:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 16:24 =?gb18030?B?V2FuZ2JlaQ==?= [this message]
2013-06-05 16:42 ` Question about get the user or kernel mode of vmx vcpu Andrew Cooper

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=tencent_434FFDEC3836AFB043173957@qq.com \
    --to=wangbei@zju.edu.cn \
    --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 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).