From: Emre Can Sezer <ecsezer@ncsu.edu>
To: Xen Devel <xen-devel@lists.xensource.com>
Subject: x86 instruction emulation in hvm
Date: Thu, 07 May 2009 15:39:42 -0400 [thread overview]
Message-ID: <4A0338FE.8010400@ncsu.edu> (raw)
In-Reply-To: <20090415083431.GA10010@york.uk.xensource.com>
I'm running an HVM guest using shadow page tables on a 64bit machine.
I'm working on a project where I mark certain pages read-only and
capture the writes into these pages. I then try to emulate the write
instructions using x86_emulate as is done in arch/x86/mm/shadow/multi.c.
The instruction I'm trying to emulate is:
asm("mov %%gs,%0" : "=m" (p->thread.gsindex));
Since the source operand is a segment register, and the x86_emulate_ops
structure that is being used does not have a ops->read_segment function
defined, the emulation fails.
Is there an easy way to add or activate this functionality? Perhaps a
full emulator, since one would expect to see other cases of memory
writes that are not handled as well.
Thanks,
John
next prev parent reply other threads:[~2009-05-07 19:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 22:16 Xen Guest Memory Isolation Ahmed Azab
2009-04-15 8:34 ` Tim Deegan
2009-05-07 19:39 ` Emre Can Sezer [this message]
2009-05-07 20:50 ` x86 instruction emulation in hvm Keir Fraser
2009-05-11 22:15 ` Emre Can Sezer
2009-05-12 7:57 ` Keir Fraser
2009-06-05 18:43 ` Interrupt for HVM guests Emre Can Sezer
2009-06-05 18:58 ` Keir Fraser
2009-06-08 19:24 ` Emre Can Sezer
2009-06-08 21:29 ` Keir Fraser
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=4A0338FE.8010400@ncsu.edu \
--to=ecsezer@ncsu.edu \
--cc=xen-devel@lists.xensource.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 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.