Skip to contentSkip to conversation

tools/libxc: Use xc_hvm_param_get() instead of xc_get_hvm_param()

PATCH In review Aravindh Puthiyaparambil 2 participants 2 messages Jul 3, 2014 – Jul 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libxc: Use xc_hvm_param_get() instead of xc_get_hvm_param()

Use xc_hvm_param_get() instead of xc_get_hvm_param() as the latter has been deprecated.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
---
 tools/libxc/xc_mem_event.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/libxc/xc_mem_event.c +2 -2
index 0b2eecb..faf1cc6 100644
@@ -60,7 +60,7 @@ void *xc_mem_event_enable(xc_interface *xch, domid_t domain_id, int param,
                           uint32_t *port)
 {
     void *ring_page = NULL;
-    unsigned long pfn;
+    uint64_t pfn;
     xen_pfn_t ring_pfn, mmap_pfn;
     unsigned int op, mode;
     int rc1, rc2, saved_errno;
@@ -80,7 +80,7 @@ void *xc_mem_event_enable(xc_interface *xch, domid_t domain_id, int param,
     }
 
     /* Get the pfn of the ring page */
-    rc1 = xc_get_hvm_param(xch, domain_id, param, &pfn);
+    rc1 = xc_hvm_param_get(xch, domain_id, param, &pfn);
     if ( rc1 != 0 )
     {
         PERROR("Failed to get pfn of ring page\n");
Signature · 1 line
1.9.1