Skip to contentSkip to conversation

remove unused xc_evtchn_status()

PATCH In review John Levon 2 participants 5 messages Aug 14, 2006 Arm/actions semi architecture

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 remove unused xc_evtchn_status()

# HG changeset patch
# User [email protected]
# Date 1155566436 -3600
# Node ID 09bc238664cb7b6d0f960f5e135ac80a75b342f1 # Parent ca3c77c0fd1e94ec01431aff0257da458a1b83f3 Remove unused xc_evtchn_status().

tools/libxc/xc_evtchn.c +0 -11
diff -r ca3c77c0fd1e -r 09bc238664cb tools/libxc/xc_evtchn.c
@@ -49,14 +49,3 @@ int xc_evtchn_alloc_unbound(int xc_handl
 
     return rc;
 }
-
-
-int xc_evtchn_status(int xc_handle,
-                     uint32_t dom,
-                     evtchn_port_t port,
-                     xc_evtchn_status_t *status)
-{
-    status->dom  = (domid_t)dom;
-    status->port = port;
-    return do_evtchn_op(xc_handle, EVTCHNOP_status, status, sizeof(*status));
-}
tools/libxc/xenctrl.h +0 -7
diff -r ca3c77c0fd1e -r 09bc238664cb tools/libxc/xenctrl.h
@@ -367,8 +367,6 @@ int xc_sched_credit_domain_get(int xc_ha
                                uint32_t domid,
                                struct sched_credit_adjdom *sdom);
 
-typedef evtchn_status_t xc_evtchn_status_t;
-
 /*
  * EVENT CHANNEL FUNCTIONS
  */
@@ -386,11 +384,6 @@ int xc_evtchn_alloc_unbound(int xc_handl
 int xc_evtchn_alloc_unbound(int xc_handle,
                             uint32_t dom,
                             uint32_t remote_dom);
-
-int xc_evtchn_status(int xc_handle,
-                     uint32_t dom, /* may be DOMID_SELF */
-                     evtchn_port_t port,
-                     xc_evtchn_status_t *status);
 
 int xc_physdev_pci_access_modify(int xc_handle,
                                  uint32_t domid,
tools/python/xen/lowlevel/xc/xc.c +0 -69

81 lines not on this page · raw message

#1 lore raw
Quoted 8 lines · John Levon

# HG changeset patch
# User [email protected]
# Date 1155566436 -3600
# Node ID 09bc238664cb7b6d0f960f5e135ac80a75b342f1 # Parent ca3c77c0fd1e94ec01431aff0257da458a1b83f3 Remove unused xc_evtchn_status().

If we're going to rip it out we should remove it from Xen as well.

-- Keir

author
#2 lore raw
Quoted 10 lines · Keir Fraser
Quoted 8 lines

# HG changeset patch
# User [email protected]
# Date 1155566436 -3600
# Node ID 09bc238664cb7b6d0f960f5e135ac80a75b342f1 # Parent ca3c77c0fd1e94ec01431aff0257da458a1b83f3 Remove unused xc_evtchn_status().

If we're going to rip it out we should remove it from Xen as well.

That breaks the ABI. (And we're currently using it for some debug stuff in Solaris, though it seems pretty useless there, and should probably be removed.)

regards,
john

#3 lore raw
Quoted 7 lines · John Levon
Quoted 7 lines
Quoted 7 lines

# HG changeset patch
# User [email protected]
# Date 1155566436 -3600
# Node ID 09bc238664cb7b6d0f960f5e135ac80a75b342f1 # Parent ca3c77c0fd1e94ec01431aff0257da458a1b83f3 Remove unused xc_evtchn_status().

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

If we're going to rip it out we should remove it from Xen as well.

That breaks the ABI. (And we're currently using it for some debug stuff in Solaris, though it seems pretty useless there, and should probably be removed.)

Then let's leave it in libxc too.

-- Keir

author
#4 lore raw
Quoted 7 lines · Keir Fraser
Quoted 5 lines
Quoted 1 line

If we're going to rip it out we should remove it from Xen as well.

That breaks the ABI. (And we're currently using it for some debug stuff in Solaris, though it seems pretty useless there, and should probably be removed.)

Then let's leave it in libxc too.

Why? It's completely dead code. (I'm slowly going through the huge number of calls that dom0 tools can make; it's easier to manage if the code is actually used...)

regards
john