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

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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] different function parameter in xen 3.0.1 and xen 4.1.0
From: 王聲浩 <howz.wang@xxxxxxxxx>
Date: Wed, 6 Oct 2010 10:34:12 +0800
Delivery-date: Tue, 05 Oct 2010 19:35:17 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject :date:mime-version:content-type:x-priority:x-msmail-priority :importance:x-mailer:x-mimeole; bh=tp1fMR478GY4Y4XtuPCRxvnZ4reOrt9pjWRVVjzqJyU=; b=VimgYcrXri33+gGwxXlYUvF/wNZPqEC7wzSFDIMIZ4cJZZAzQUdHxGpuD2Afd/761V nIXXFcoYeKWpUiwS+stZNbsS7aMFpJp02nWM5frCD0xQpSleAa54841VxvKngKxswR0U z/gMezsUGGkKuntF2MNc38YREMABq+sTjjA2M=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] different function parameter in xen 3.0.1 and xen 4.1.0, 王聲浩 <=