From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Lalancette Subject: Re: How to determine if I am running under Xen? Date: Fri, 21 Sep 2007 00:30:54 -0400 Message-ID: <46F348FE.20109@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org James Harper wrote: > Does anyone have a code snippet that I could use (in kernel space) to > determine if I am running under Xen or not in a HVM domain? > > Thanks > > James I don't have a code snippet....but a script I saw around here basically did "cat /proc/acpi/dsdt | grep xen" to determine whether they were on an HVM domain or not. You can probably pretty easily call the same functions that generate the dsdt from the kernel to determine the information. Chris Lalancette