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

xen-devel

[Top] [All Lists]

RE: [Xen-devel] Why using hypercall_page ?

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: RE: [Xen-devel] Why using hypercall_page ?
From: Wu Bingzheng <wubingzheng@xxxxxxxxx>
Date: 2008年10月23日 09:44:41 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2008年10月22日 18:45:18 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=nAwZZZaF+GqGfBhG4C/DNKPJlEql0ckUF3J8XyNRURE=; b=MYrLlNbMJIM/YXyuugiRQKKtQyNHL7h6I8JE0XHVcnne6gAgJRW8ois6Hy4bLloRjr nFdbsDE1GFkBXgbEZ4mosXyN+yR5y5xcsr/B9rpl3OxqEsV9iKfGqyjn9pn351cU0xAK RN0bFtjIph93+UQu+DwHjRiUTS1EOjPG2PERY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=WhgwZoQyCCoOx4zoROhEcqhs4b44lGOfmDkf4vMr6hC3cQnQ/HxCqk6M0n/XtVqc8o 3jrgS+zL1Q3gGxee38XSLGt8kpjE1GRAX/ITxn76bXgslnfNDieiqt/PeVKbawR8NlL8 ENk6c1yQltr2166FKkloF1LjFIKNL8RVn4RbE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <D8078B8B3B09934AA9F8F2D5FB3F28CE0930F32567@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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 > <D8078B8B3B09934AA9F8F2D5FB3F28CE0930F32567@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
To invoke hypercall:
1. Not using hypercall_page:
 mov $__HYPERCALL_sched_op, %eax
 int 0ドルx82
2. Using hypercall_page:
 call hypercall_page + __HYPERCALL_sched_op * 32
Besides, using the hypercall_page, guest has to keep a page for hypercall_page.
I do not think the hypercall_page makes the thing much easier.
Is "release guest from hardcoding" the only advantage of using hypercall_page?
Thanks,
Wu
在 2008年10月23日四的 09:24 +0800,Tian, Kevin写道:
> >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 0ドルx82
> >ret
> >
> >Why not invoked the hypercall directly by "int 0ドルx82" ? 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
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: 答复: [Xen-devel] Why using hypercall_page ? , Li Yaqiong
Next by Date: Re: 答复: [Xen-devel] Why using hypercall_page ? , Wu Bingzheng
Previous by Thread: RE: [Xen-devel] Why using hypercall_page ? , Tian, Kevin
Next by Thread: 答复: [Xen-devel] Why using hypercall_page ? , Li Yaqiong
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /