From: Dan Magenheimer <dan.magenheimer@hp.com>
To: xen-devel@lists.sourceforge.net
Subject: Re: XEN/IA64 VHPT support
Date: Thu, 6 Jan 2005 17:00:38 +0000 (UTC) [thread overview]
Message-ID: <loom.20050106T174025-114@post.gmane.org> (raw)
In-Reply-To: 37FBBA5F3A361C41AB7CE44558C3448E05883E63@pdsmsx403
> Probably you can rely on us for the long format VHPT although
> the detail plan is not done yet. BTW, for the hypercall, I am thinking
> how it will be implemented in IA64 architecture. I think a straight
> forward way is to use break instruction like linux system call, any idea
> in your mind?
Re LVHPT. Please let me know if you work on it as it has been
something I've been wanting to get done for some time, mostly because
it will make simulations run faster too. So if you don't get to
it soon, I might work on it, and it would be bad if we both
finished at the same time :-)
Re hypercalls. Actually there are hypercalls already in Xen/ia64
and they do use the break instruction. It's just that the domain
calls them indirectly so perhaps they are better called "hyperthunks"
("Thunk" is a rarely used compiler term which originated in Algol 60
that means: "code that is used to convert calls to one interface
into calls to another"):
When a domain is created, fake EFI/SAL/PAL (firmware) calls are created
that contain the hypercalls. Thus when domain0 invokes an EFI/SAL/PAL
call, it calls a "stub" routine that invokes a break instruction/fault
that is recognized in Xen/ia64 as a hypercall, with arguments passed
in general registers (unlike Xen/x86 which passes hypercall arguments
in memory).
You may want to step through a domain0 firmware call to see this work.
If I recall correctly, the code that creates the hyperthunks is
in arch/ia64/dom_fw.c
While my intent is to use the same mechanism (breaks) for "real" hypercalls,
I also want to explore the use of fast system calls (recently added
in Linux/ia64 by David Mosberger) using the epc instruction in certain
cases.
Dan
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
next prev parent reply other threads:[~2005-01-06 17:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-06 5:47 XEN/IA64 VHPT support Dong, Eddie
2005-01-06 10:50 ` kernel BUG error message Perry Couprie
2005-01-06 17:00 ` Dan Magenheimer [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-01-05 3:51 XEN/IA64 VHPT support Dong, Eddie
2005-01-05 15:17 ` Dan Magenheimer
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=loom.20050106T174025-114@post.gmane.org \
--to=dan.magenheimer@hp.com \
--cc=xen-devel@lists.sourceforge.net \
/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.