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

RE: [Xen-devel] Why using hypercall_page ?


  • To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • From: Wu Bingzheng <wubingzheng@xxxxxxxxx>
  • Date: Thu, 23 Oct 2008 09:44:41 +0800
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 22 Oct 2008 18:45:18 -0700
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

To invoke hypercall:

1. Not using hypercall_page:

    mov $__HYPERCALL_sched_op, %eax
    int $0x82


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 $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


 


Rackspace

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