From: Tim Deegan Subject: Re: Testing for shadow modes Date: Mon, 8 Oct 2007 09:29:26 +0100 Message-ID: <20071008082926.GA30414@york.uk.xensource.com> References: <1191765454.7238.5.camel@thinkpad.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <1191765454.7238.5.camel@thinkpad.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org At 15:57 +0200 on 07 Oct (1191772654), Daniel Stodden wrote: > I'm looking for the 'correct' way to inquire about the present shadow > mode of a running domain. OP_ENABLE_TEST sounds interesting, but does > not look like what I mean it to do. > > Is this just missing, or am I missing something? Yep, it's just missing. You _can_ query how much shadow memory is allocated for the domain, and it would be straightforward to add a shadow operation to query the current mode. If you're the control tools, you might remember what you've done to the domain before. Also, operations like enabling shadow mode ought to be idempotent. Cheers, Tim. -- Tim Deegan , XenSource UK Limited Registered office c/o EC2Y 5EB, UK; company number 05334508