From: =?big5?B?pP3Bbq9F?= Subject: different function parameter in xen 3.0.1 and xen 4.1.0 Date: Wed, 6 Oct 2010 10:34:12 +0800 Message-ID: <5DEC9AA62BB74590BC139E9C3927D400@shwang> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1283565793==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 這是 MIME 格式的 Multipart 郵件。 --===============1283565793== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01CB6542.0467CEB0" 這是 MIME 格式的 Multipart 郵件。 ------=_NextPart_000_0015_01CB6542.0467CEB0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable ?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:=20 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:=20 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:=20 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:=20 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:=20 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 ------=_NextPart_000_0015_01CB6542.0467CEB0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hi,
 
I am trying to develop a function in = xen 4.0.1=20 which has worked well in xen 3.1.0.
but in xen 4.0.1, I found there = are three=20 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,=20 unsigned long va, walk_t *gw, int = guest_op)

 

in 4.0.1 Guest_walk.c:

guest_walk_tables(

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

 
2. shadow_set_l1e
in 3.1.0 Multi.c: 

static = int=20 shadow_set_l1e(

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

 
in = 4.0.1 Multi.c: 

static = int=20 shadow_set_l1e(

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

 
3. shadow_get_and_create_l2e
in 3.1.0 Multi.c: 

static=20 shadow_l2e_t * shadow_get_and_create_l2e(

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

 
in 4.0.1 Multi.c: 

static=20 shadow_l2e_t * shadow_get_and_create_l2e(

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

 
I want to know if I use the = functions in xen=20 4.0.1 directly to build my new function,will it still=20 work?
Or, I have to convert the = parameters?
 
Thank you very much.
 
Best Regards,
Sam S. H.=20 Wang
------=_NextPart_000_0015_01CB6542.0467CEB0-- --===============1283565793== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1283565793==--