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] Why using hypercall_page ?

To: 'Wu Bingzheng' <wubingzheng@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Why using hypercall_page ?
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Thu, 23 Oct 2008 09:24:21 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Wed, 22 Oct 2008 18:24:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1224724677.5628.9.camel@wub>
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: <1224724677.5628.9.camel@wub>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ack0rVhlAm3A62s8Sf+mliVCwiZrIgAAB0mg
Thread-topic: [Xen-devel] Why using hypercall_page ?
>From: Wu Bingzheng
>Sent: Thursday, October 23, 2008 9:18 AM
>
>Hello,
>
>I am studing Xen hypercall now. I found that hypercall is invoked via
>hypercall_page, which is only filled with (in
>no-hypervisor-kernel-mode ):
>
>mov $i, %eax
>int $0x82
>ret
>
>Why not invoked the hypercall directly by "int $0x82" ? What's the
>advantage of using hypercall_page?
>

This allows guest migrated to a newer/older xen with a different
hypercall invocation convention. Xen fills hypercall page by its
convention, and thus release guest from hardcoding specific flow.

Thanks
Kevin

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