From: Steve Ofsthun <sofsthun@virtualiron.com>
To: Emre Can Sezer <ecsezer@ncsu.edu>
Cc: xen-devel@lists.xensource.com
Subject: Re: Hypercall from HVM guest
Date: Thu, 25 Sep 2008 14:40:12 -0400 [thread overview]
Message-ID: <48DBDB0C.1050001@virtualiron.com> (raw)
In-Reply-To: <2895.152.14.92.134.1222354516.squirrel@webmail.ncsu.edu>
Emre Can Sezer wrote:
> Hi,
>
> I'm trying to communicate some information from an HVM guest to Xen.
> Passing a pointer to a buffer would suffice and the communication will be
> single sided. What is the best way to do this?
>
> I've looked into making a hypercall from an HVM guest and came across this
> post on this mailing list by Steve Ofsthun:
>
> http://lists.xensource.com/archives/html/xen-devel/2006-04/msg00526.html
This code is quite old and much has changed since then. You should probably use the pv on hvm driver code as an example these days (xen/unmodified_drivers/linux-2.6/platform-pci).
What hypercalls are you trying to use? Note that HVM guests are restricted to a subset of the normal PV guest hypercalls.
Steve
>
> However, I'm unable to get this code to work. I'm running a 64-bit system
> with the linux-2.6.26 kernel downloaded from kernel.org on top of
> xen-3.2.2. When I compile, I get compilation errors resulting from
> hypercall.h. I believe this code is intended for 32 bit guests only as
> the structure definitions are different fot the pte_t type.
>
> The error was:
> In file included from include/asm/xen/hypervisor.h:53,
> from /home/ecsezer/kernels/vmcall/./features.c:11:
> include/asm/xen/hypercall.h: In function 'HYPERVISOR_update_va_mapping':
> include/asm/xen/hypercall.h:230: error: 'pte_t' has no member named 'pte_low'
>
> I tried to modify this code to get rid of compilation errors but a final
> warning still persists and loading the module causes a seg fault. The
> warning I get is:
> CC [M] /home/ecsezer/kernels/hyper/./hypercall.o
> {standard input}: Assembler messages:
> {standard input}:149: Warning: indirect call without `*'
>
> So I tried to compile with mercurial repository version linux-2.6.18-xen
> and that compiles fine. However, due to being a different version, I
> can't use the resulting module.
>
> I would appreciate any insight as to how to proceed. What could be the
> problem? Perhaps there is an easier way of passing the information I want
> without a full blown hypercall interface?
>
> Thanks,
>
> John
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2008-09-25 18:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 14:55 Hypercall from HVM guest Emre Can Sezer
2008-09-25 14:58 ` Emre Can Sezer
2008-09-25 18:40 ` Steve Ofsthun [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-25 20:51 Emre Can Sezer
2007-06-22 10:40 Hypercall from Hvm Guest Koripella Srinivas
2007-06-22 10:46 ` Cui, Dexuan
2007-06-22 10:48 ` Petersson, Mats
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=48DBDB0C.1050001@virtualiron.com \
--to=sofsthun@virtualiron.com \
--cc=ecsezer@ncsu.edu \
--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.