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] how can I find code of hypercall?

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] how can I find code of hypercall?
From: leilei175 <leilei175@xxxxxxxxx>
Date: Wed, 11 Mar 2009 20:37:15 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Jayaraman, Bhaskar" <Bhaskar.Jayaraman@xxxxxxx>
Delivery-date: Wed, 11 Mar 2009 05:37:41 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JvZtt6DN3etyoJGxjjwkCKX/TQIm+hwkT0ImPTULrVQ=; b=dhO7YUn3gmyJtXydoSqV1EUqM6kd4Lq14fZxEZ9Q6M1GmV+Hs4i/DsjRvllV/V83i+ m/ku05x7dM4PELXFnXL8msgL3MiFS6rX6eosd2de52uaI7UbL8J2/X7eXQ9PEICqT+Ln Vzfwu7hMTlKQ0W5Rccc1NGbvw8umwhS5kGbcM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=s6x4olmx18kYiHKZVjwx3CTAf0UtqwsHOXHvNLrgVpFwXiE+6a7d/vvKVWDzW0itbR UTU+fKHd0TMdFbSoOVQWSToQyFAcmleoIpsFZz2lCHjAHugKOZgB99PXLbemd+/BY35B iDOTqS8dnNXSe7h3q6117D9HRgmoEoCYiKlVk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5DD423F.4C68%keir.fraser@xxxxxxxxxxxxx>
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: <C5DD423F.4C68%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
Hi, keir and Jayaraman,
Thanks for your explanation

Keir Fraser wrote:
On 11/03/2009 10:08, "Jayaraman, Bhaskar" <Bhaskar.Jayaraman@xxxxxxx> wrote:

I've done this on an HVM. For Intel, you can go to platform-pci and dump the
hypercall page on the console 4 bytes at a time. Each 4 byte value on the
hypercall page constitutes an Intel x86 instruction, and you should find
something like this: -
0xc1010f00 0xccccccc3

You know x86 instructions are not fixed-length, right? Actually the
instruction sequence is:
 0xb8 <imm32>   : mov imm32,%eax (5-byte instruction)
 0x0f 0x01 0xc1 : vmcall (3-byte instruction)
 0xc3           : ret (1-byte instruction)

See xen/arch/x86/hvm/vmx/vmx.c:vmx_init_hypercall_page().

 -- Keir





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

<Prev in Thread] Current Thread [Next in Thread>