All of lore.kernel.org
 help / color / mirror / Atom feed
From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Behaviour when setting CPU_BASED_MONITOR_TRAP_FLAG in hvm_do_resume()
Date: Sun, 6 Mar 2016 15:35:38 +0200	[thread overview]
Message-ID: <56DC322A.8030000@bitdefender.com> (raw)

Hello,

Assuming I set v->arch.hvm_vmx.exec_control |=
CPU_BASED_MONITOR_TRAP_FLAG; in hvm_do_resume(), would that cause a
VMEXIT with EXIT_REASON_MONITOR_TRAP_FLAG _before_ the instruction at he
current rIP runs, or _after_ it?

A few tests I've ran suggest that the VMEXIT occurs _before_, i.e. the
instruction is not running between setting the flag and the VMEXIT, but
the actual code is a bit more involved and I might have just come across
a corner case, so I thought it would be best to have official
confirmation on the list.


Thanks,
Razvan

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

             reply	other threads:[~2016-03-06 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-06 13:35 Razvan Cojocaru [this message]
2016-03-07 13:13 ` Behaviour when setting CPU_BASED_MONITOR_TRAP_FLAG in hvm_do_resume() Andrew Cooper
2016-03-07 14:49   ` Razvan Cojocaru

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=56DC322A.8030000@bitdefender.com \
    --to=rcojocaru@bitdefender.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.