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-ia64-devel

[Xen-ia64-devel] [PATCH] clean up of xcom_hcall.c.

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] clean up of xcom_hcall.c.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 24 Dec 2008 13:33:52 +0900
Delivery-date: Tue, 23 Dec 2008 20:33:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
[IA64] clean up of xcom_hcall.c.

make xencommize_xxx() calling convention consistent.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff --git a/arch/ia64/xen/xcom_hcall.c b/arch/ia64/xen/xcom_hcall.c
--- a/arch/ia64/xen/xcom_hcall.c
+++ b/arch/ia64/xen/xcom_hcall.c
@@ -86,7 +86,7 @@ xencomm_hypercall_event_channel_op(int c
 {
        int rc;
        struct xencomm_handle *desc;
-       XENCOMM_MINI_ALIGNED(xc_area, 2);
+       XENCOMM_MINI_ALIGNED(xc_area, 1);
 
        rc = xencommize_event_channel_op(&xc_area, op, &desc);
        if (rc)
@@ -187,7 +187,7 @@ xencomm_hypercall_physdev_op(int cmd, vo
 {
        int rc;
        struct xencomm_handle *desc;
-       XENCOMM_MINI_ALIGNED(xc_area, 2);
+       XENCOMM_MINI_ALIGNED(xc_area, 1);
 
        rc = xencommize_physdev_op(&xc_area, cmd, op, &desc);
        if (rc)
@@ -419,7 +419,7 @@ xencomm_hypercall_callback_op(int cmd, v
 }
 
 static int
-xencommize_memory_reservation(struct xencomm_mini *xc_area,
+xencommize_memory_reservation(struct xencomm_mini **xc_area,
                              xen_memory_reservation_t *mop)
 {
        struct xencomm_handle *desc;
@@ -427,11 +427,12 @@ xencommize_memory_reservation(struct xen
        desc = __xencomm_map_no_alloc(xen_guest_handle(mop->extent_start),
                        mop->nr_extents *
                        sizeof(*xen_guest_handle(mop->extent_start)),
-                       xc_area);
+                       *xc_area);
        if (desc == NULL)
                return -EINVAL;
 
        set_xen_guest_handle(mop->extent_start, (void *)desc);
+       (*xc_area)++;
        return 0;
 }
 
@@ -456,10 +457,9 @@ xencomm_hypercall_memory_op(unsigned int
                                     xen_guest_handle(xmr->extent_start));
 
                argsize = sizeof(*xmr);
-               rc = xencommize_memory_reservation(xc_area, xmr);
+               rc = xencommize_memory_reservation(&xc_area, xmr);
                if (rc)
                        return rc;
-               xc_area++;
                break;
 
        case XENMEM_maximum_gpfn:
@@ -479,14 +479,12 @@ xencomm_hypercall_memory_op(unsigned int
                                     xen_guest_handle(xme_out->extent_start));
 
                argsize = sizeof(xen_memory_exchange_t);
-               rc = xencommize_memory_reservation(xc_area, xme_in);
+               rc = xencommize_memory_reservation(&xc_area, xme_in);
                if (rc)
                        return rc;
-               xc_area++;
-               rc = xencommize_memory_reservation(xc_area, xme_out);
+               rc = xencommize_memory_reservation(&xc_area, xme_out);
                if (rc)
                        return rc;
-               xc_area++;
                break;
 
        case XENMEM_add_to_physmap:


-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] clean up of xcom_hcall.c., Isaku Yamahata <=