WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Unable to include xen/sched.h

To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Unable to include xen/sched.h
From: "ashutosh mehra" <ashutosh.xen@xxxxxxxxx>
Date: Tue, 13 Nov 2007 15:37:38 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Nov 2007 02:08:28 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=EquDRnGeAFXc7WoLjXpy2TPucH7CmiSjWJQlyeDNV6s=; b=jDcc+8bc7teuwCUYT6gjQbrhXG2f0MZAFet7jO/B5ytMBRc7lAz6jL/dilkUSifsgiT2uqHCKDYUWKveOy4wStwUx4J7neeIiXhl/6qbVibjKsFpCCwXvUh/81n3TCWC9udwzrYgrI/aSI2kQUMuPt8MSdhmB2cwj1Bf+2yy8Z8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HYAiMKuSuF4mCTfZiIpJJK49SSC3QoR0/diKyrkpuRQNiN5+LJcLxnu6vgfUIOk4qP1vNmj06j+epmlpjjvchkOAdHqXasjQldrr2hhnVEkstFqAw2y9npKZYGPmhkw3kks/pd8H/6iAJ9233I8aTQS41oLC1KsttK9anQnkDR8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <57C82567705DA4takebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <bb4253730711112342v2abd3760tbbd637d99cd03ffb@xxxxxxxxxxxxxx> <54C82503D3EA20takebe_akio@xxxxxxxxxxxxxx> <bb4253730711120324t4a8efef5va3f6a16038cc5bf9@xxxxxxxxxxxxxx> <57C82567705DA4takebe_akio@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I tried including public/sysctl.h for  XEN_SYSCTL_getdomaininfolist, but  I get an error: public/sysctl.h: No such file or directory.

Even if the above problem is solved, how will I get the list/domainIds of all the domUs running without using for_each_domain defined in xen/sched.h? I get the same error for this file as well. And what should be the parameters to make for this? Currently my Makefile is obj-m := mymodule.o and I'm running make with the parameters make -C /lib/modules/2.6.18-xen/build/ modules M=`pwd` V=1


This is the output from make:


make: Entering directory
`/usr/local/src/xen-3.1.0-src /build-linux-2.6.18-xen_x86_32'
make -C /usr/local/src/xen-3.1.0-src/linux-2.6.18-xen
O=/usr/local/src/xen-3.1.0-src/build-linux-2.6.18-xen_x86_32 modules
make -C /usr/local/src/xen-3.1.0-src/build-linux-2.6.18-xen_x86_32 \
       KBUILD_SRC=/usr/local/src/xen-3.1.0-src/linux-2.6.18-xen \
       KBUILD_EXTMOD="/home/ashu/Desktop/xenmodule" -f
/usr/local/src/xen-3.1.0-src/linux-2.6.18-xen/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
        \
       echo;                                                           \
       echo "  ERROR: Kernel configuration is invalid.";               \
       echo "         include/linux/autoconf.h or
include/config/auto.conf are missing.";      \
       echo "         Run 'make oldconfig && make prepare' on kernel
src to fix it.";  \
       echo;                                                           \
       /bin/false)
mkdir -p /home/ashu/Desktop/xenmodule/.tmp_versions
rm -f /home/ashu/Desktop/xenmodule/.tmp_versions/*
make -f /usr/local/src/xen-3.1.0-src/linux-2.6.18-xen/scripts/Makefile.build
obj=/home/ashu/Desktop/xenmodule
 gcc -m32 -Wp,-MD,/home/ashu/Desktop/xenmodule/.mymodule.o.d
-nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include
-Iinclude2/asm/mach-xen -D__KERNEL__ -Iinclude -Iinclude2
-I/usr/local/src/xen-3.1.0-src /linux-2.6.18-xen/include -include
include/linux/autoconf.h -D__XEN_INTERFACE_VERSION__=0x00030205
-I/home/ashu/Desktop/xenmodule -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -pipe -msoft-float
-mpreferred-stack-boundary=2 -march=i686 -mtune=generic -mregparm=3
-ffreestanding -I/usr/local/src/xen-3.1.0-src/linux-2.6.18-xen/include/asm-i386/mach-xen
-Iinclude/asm-i386/mach-xen
-I/usr/local/src/xen-3.1.0-src /linux-2.6.18-xen/include/asm-i386/mach-default
-Iinclude/asm-i386/mach-default -fomit-frame-pointer
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign
-DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(mymodule)"
-D"KBUILD_MODNAME=KBUILD_STR(mymodule)" -c -o
/home/ashu/Desktop/xenmodule/.tmp_mymodule.o
/home/ashu/Desktop/xenmodule/mymodule.c
/home/ashu/Desktop/xenmodule/mymodule.c:15:27: error:
public/sysctl.h: No such file or directory
/home/ashu/Desktop/xenmodule/mymodule.c:16:23: error:
xen/sched.h: No such file or directory
make[3]: *** [/home/ashu/Desktop/xenmodule/mymodule.o] Error 1
make[2]: *** [_module_/home/ashu/Desktop/xenmodule] Error 2
make[1]: *** [modules] Error 2
make: *** [modules] Error 2
make: Leaving directory
`/usr/local/src/xen-3.1.0-src/build-linux-2.6.18-xen_x86_32'





Thanks,
Ashutosh



On Nov 13, 2007 1:35 AM, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> wrote:
Hi,

>But is there any way to get domain id of each active domain in guest kernel?
>
Is your module for dom0?
If dom0, you can use hypercall of XEN_SYSCTL_getdomaininfolist.
But If other, you cannot access it.

Best Regards,

Akio Takebe


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel