[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Writing VM Exit handlers in Xen


  • To: Jonathan White <jonxwhite@xxxxxxxxx>
  • From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
  • Date: Thu, 29 Jul 2010 09:59:42 +0100
  • Cc: Xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 29 Jul 2010 02:02:10 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=fJqnVuhz/VMX9iSh+XZKiwwRERlKUwYcZlFc7bFDgS9KwJCdfljIAKiQy5CKP7FyjB /yMfKCC7dYTuZrzhA3oNNbfLFMAXYWA6fywezXUAw0mCuvrMrF8cc8SRBQyJQOjELEFl MS2VUNx0ryGF7R9HLrGZpb3wU1opsMoPbgXiU=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

It sounds like you've already got a basic understanding of how vmexits
work at a high level?

The main vmexit handling code is in
xen/arch/x86/hvm/vmx/vmx.c:vmx_vmexit_handler().  It already has code
to handle cpuid exits.  So you'd just need to add code to the cpuid
handling function, possibly enable CPUID vmexits (if they're not
enabled already).

 -George

On Thu, Jul 29, 2010 at 9:45 AM, Jonathan White <jonxwhite@xxxxxxxxx> wrote:
> Hi,
>
> I would like to start write some simple Intel-VT VMExit handlers in Xen -
> for e.g. when CPUID is executed, or some other VM Exit condition is
> satisfied.
> How can I define new VMExit conditions for a Intel-VT based HVM guest
> (WinXP) in Xen? and how can I write simple handlers for those conditions?
>
> What is a good place to start in the Xen (or Dom0?) code for the above
> requirements?
>
> Thanks a lot,
> Jon
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.