* pin ctxt in xc_domain_getfullinfo
@ 2005-04-22 20:49 Kip Macy
0 siblings, 0 replies; only message in thread
From: Kip Macy @ 2005-04-22 20:49 UTC (permalink / raw)
To: xen-devel
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/04/22 13:45:41-07:00 kmacy@curly.lab.netapp.com
# mlock ctxt in xc_domain_getfullinfo
# this is the most general solution to the recent problem seen in xc_ptrace
# Signed-off-by: Kip Macy <kmacy@fsmware.com>
#
# tools/libxc/xc_domain.c
# 2005/04/22 13:45:38-07:00 kmacy@curly.lab.netapp.com +7 -0
# mlock ctxt in xc_domain_getfullinfo
#
diff -Nru a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c 2005-04-21 13:52:32 -07:00
+++ b/tools/libxc/xc_domain.c 2005-04-21 13:52:32 -07:00
@@ -134,7 +134,14 @@
op.u.getdomaininfo.exec_domain = (u16)vcpu;
op.u.getdomaininfo.ctxt = ctxt;
+ if ( ctxt )
+ if ( mlock(ctxt, sizeof(*ctxt)) != 0 )
+ return -1;
+
rc = do_dom0_op(xc_handle, &op);
+
+ if ( ctxt )
+ munlock(ctxt, sizeof(*ctxt));
if ( info )
memcpy(info, &op.u.getdomaininfo, sizeof(*info));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-22 20:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-22 20:49 pin ctxt in xc_domain_getfullinfo Kip Macy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.