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

[Xen-devel] different function parameter in xen 3.0.1 and xen 4.1.0


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: 王聲浩 <howz.wang@xxxxxxxxx>
  • Date: Wed, 6 Oct 2010 10:34:12 +0800
  • Delivery-date: Tue, 05 Oct 2010 19:35:17 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type :x-priority:x-msmail-priority:importance:x-mailer:x-mimeole; b=LLhK9oREmQ1jEOhK82zKpbKLNE0Fqzfl2sLpxTV/beU20J/AL7cJHxJ7nUxB1doYf6 i6b09nYfDvpwq70Uum5dEyx/m1ZYZrU/0lFrwd0i048JISBhxUN5+VNWMMWshF98yji4 Crc8r3b6KDIeLl8guYAyukD6R36SeweOUPkkU=
  • Importance: Normal
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,
 
I am trying to develop a function in xen 4.0.1 which has worked well in xen 3.1.0.
but in xen 4.0.1, I found there are three functions contain more parameters than in xen 3.1.0,
 
1. guest_walk_tables
in 3.1.0 Multi.c: 

guest_walk_tables(

struct vcpu *v, unsigned long va, walk_t *gw, int guest_op)

 

in 4.0.1 Guest_walk.c:

guest_walk_tables(

struct vcpu *v, unsigned long va, walk_t *gw, uint32_t pfec, mfn_t top_mfn, void *top_map)

 
2. shadow_set_l1e
in 3.1.0 Multi.c: 

static int shadow_set_l1e(

struct vcpu *v,  shadow_l1e_t *sl1e, shadow_l1e_t ew_sl1e, mfn_t sl1mfn)

 
in 4.0.1 Multi.c: 

static int shadow_set_l1e(

struct vcpu *v,  shadow_l1e_t *sl1e,  shadow_l1e_t new_sl1e, p2m_type_t new_type, mfn_t sl1mfn)

 
3. shadow_get_and_create_l2e
in 3.1.0 Multi.c: 

static shadow_l2e_t * shadow_get_and_create_l2e(

struct vcpu *v, walk_t *gw, mfn_t *sl2mfn, fetch_type_t ft)

 
in 4.0.1 Multi.c: 

static shadow_l2e_t * shadow_get_and_create_l2e(

struct vcpu *v,   walk_t *gw, mfn_t *sl2mfn, fetch_type_t ft, int *resync)

 
I want to know if I use the functions in xen 4.0.1 directly to build my new function,will it still work?
Or, I have to convert the parameters?
 
Thank you very much.
 
Best Regards,
Sam S. H. Wang
_______________________________________________
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®.