Hi, I am looking to see where "hypercall_page" is declared in Linux kernel. However, I only found the extern prototype of it in arch/i386/kernel/setup-xen.c: extern char hypercall_page[PAGE_SIZE]; So I am wondering where this "hypercall_page" variable is actually declared. Any pointer? Many thanks, Jun _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hi Jun, hypercall_page is declared in arch/{i386,x86_64}/kernel/head-xen.S For i386, this takes the form: ENTRY(hypercall_page) While on x86_64, it looks like: NEXT_PAGE(hypercall_page) Regards, Derek Murray. On Mon, Jul 7, 2008 at 9:43 AM, Jun Koi <junkoi2004@gmail.com> wrote:> Hi, > > I am looking to see where "hypercall_page" is declared in Linux > kernel. However, I only found the extern prototype of it in > arch/i386/kernel/setup-xen.c: > > extern char hypercall_page[PAGE_SIZE]; > > So I am wondering where this "hypercall_page" variable is actually > declared. Any pointer? > > Many thanks, > Jun > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, 2008-07-07 at 17:43 +0900, Jun Koi wrote:> Hi, > > I am looking to see where "hypercall_page" is declared in Linux > kernel. However, I only found the extern prototype of it in > arch/i386/kernel/setup-xen.c: > > extern char hypercall_page[PAGE_SIZE]; > > So I am wondering where this "hypercall_page" variable is actually > declared. Any pointer?Only the space is reserved by guests. Never forget to grep assembly files as well. Contents are built by Xen. Usually during domain build, or when requested by an MSR. The latter is probabily for PV drivers in HVM domains. See the traps.c files for reference. Best, Daniel -- Daniel Stodden LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation Institut für Informatik der TU München D-85748 Garching http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel