WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Jonathan White <jonxwhite@xxxxxxxxx>
Subject: Re: [Xen-devel] Writing VM Exit handlers in Xen
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=cFt6NsbI9F0081mnkRCMX0X7uuFOhkR6c/OnkwQJRFw=; b=LsROQ79dw0Ju3pVFnFLMuTlJzYlarPB4sSx4cWKbdOqtYxQNYZfgCA/x5dHgRr2QLm TSrPEWfTN5kH1iZxMARzxZ93DVHCgktNlOh2h5M77gctAzZKXphbqGc44CLxL1owylSd Cbq+YrY26f623Nkzz7umYcAVv6wITlqLwducw=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTini9p9kLB4xbgCg6An3qWTdiRtfsiuo-1cYXROx@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTini9p9kLB4xbgCg6An3qWTdiRtfsiuo-1cYXROx@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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