From: Alex Williamson <alex.williamson@hp.com>
To: ncmike@us.ibm.com
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: xsm: Consolidate xsm processing within domain control hypercall.
Date: Tue, 04 Dec 2007 17:19:32 -0700 [thread overview]
Message-ID: <1196813973.19310.83.camel@lappy> (raw)
In-Reply-To: <1196805907.19310.70.camel@lappy>
On Tue, 2007-12-04 at 15:05 -0700, Alex Williamson wrote:
> On Tue, 2007-12-04 at 16:49 -0500, Mike D. Day wrote:
> > On 04/12/07 13:06 -0700, Alex Williamson wrote:
> > >
> > > Does this work right across a PV domain save/restore on x86? On ia64
> > > I end up with "Domain-Unnamed" after I save a PV domain and another
> > > after I restore it, then do a shutdown. Reverting this patch restores
> > > correct behavior. Thanks,
> >
> > I'll investigate this regression. Do you have any ideas as to why this
> > is happening?
>
> Nope, that's why I'm hoping x86 does something similar ;^) Since I'm
> not using XSM_ENABLE, xsm_call should just be (0), which means the
> changed code should all be noops... but apparently something changes.
> BTW, xsm_call(domctl(domctl)) seems unnecessarily obfuscated. Thanks,
Looks like the problem is that XEN_DOMCTL_destroydomain now always
returns -ESRCH. The patch below seems to fix it although it may be just
as correct to hard code ret to 0. I also took the liberty of returning
the error value xsm_domctl() returns, which seems to match previous
behavior. Thanks,
Alex
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---
diff -r 62451388f630 xen/common/domctl.c
--- a/xen/common/domctl.c Tue Dec 04 11:52:10 2007 +0000
+++ b/xen/common/domctl.c Tue Dec 04 17:11:07 2007 -0700
@@ -193,7 +193,8 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc
spin_lock(&domctl_lock);
- if ( xsm_domctl(op) )
+ ret = xsm_domctl(op);
+ if ( ret != 0 )
goto domctl_out;
switch ( op->cmd )
@@ -400,7 +401,7 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc
ret = -ESRCH;
if ( d != NULL )
{
- domain_kill(d);
+ ret = domain_kill(d);
rcu_unlock_domain(d);
}
}
next prev parent reply other threads:[~2007-12-05 0:19 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200712041026.lB4AQPM6004133@latara.uk.xensource.com>
2007-12-04 20:06 ` [Xen-staging] [xen-unstable] xsm: Consolidate xsm processing within domain control hypercall Alex Williamson
2007-12-04 20:44 ` Alex Williamson
2007-12-04 21:20 ` George S. Coker, II
2007-12-04 21:46 ` Mike D. Day
2007-12-04 21:54 ` George S. Coker, II
2007-12-04 21:59 ` Mike D. Day
2007-12-04 23:26 ` George S. Coker, II
2007-12-04 23:22 ` George S. Coker, II
2007-12-04 21:36 ` Mike D. Day
2007-12-04 21:52 ` Alex Williamson
2007-12-04 21:58 ` George S. Coker, II
2007-12-04 22:26 ` Mike D. Day
2007-12-04 21:49 ` Mike D. Day
2007-12-04 22:05 ` Alex Williamson
2007-12-04 22:23 ` George S. Coker, II
2007-12-05 0:19 ` Alex Williamson [this message]
2007-12-04 22:44 ` Mike D. Day
2007-12-04 23:27 ` George S. Coker, II
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=1196813973.19310.83.camel@lappy \
--to=alex.williamson@hp.com \
--cc=ncmike@us.ibm.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.