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
|