From: Kip Macy <kip.macy@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: pin ctxt in xc_domain_getfullinfo
Date: Fri, 22 Apr 2005 13:49:07 -0700 [thread overview]
Message-ID: <b1fa2917050422134917bedc36@mail.gmail.com> (raw)
# 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));
reply other threads:[~2005-04-22 20:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1fa2917050422134917bedc36@mail.gmail.com \
--to=kip.macy@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.