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/
Home Products Support Community News


[Xen-ia64-devel] [PATCH 0/8] RFC: ia64/xen TAKE 2: paravirtualization of

To: linux-ia64@xxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 0/8] RFC: ia64/xen TAKE 2: paravirtualization of hand written assembly code
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Tue, 26 Feb 2008 22:58:51 +0900
Cc: yamahata@xxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx, kvm-ia64-devel@xxxxxxxxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 26 Feb 2008 05:59:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi. I rewrote the patch according to the comments. I adopted generating
in-place code because it looks the quickest way.

The point Eddie wanted to discuss is how to generate code and its ABI.
i.e. in-place generating v.s. direct jump v.s. indirect function call
Indirect function call doesn't make sense because ivt.S is compiled
multi times. And it is up to pv instances to choose in-place generating
or direct jump. So what we should define is its clobbered registers.
The ABI which this patch adopted is xen biased. Presumably we want to
twist those macros to make more hypervisor neutral. (i.e. add more
clobbered registers) Please comment.

- more clean ups
  some macro needs clean up to be aware register usage r8, r9.
- Free xen_ivt ares somehow. No waste kernel space
  From Keith Owens idea.
  Probably after defining ABI because this is just optimization.

Changes from TAKE 1:
Single IVT source code. compile multitimes using assembler macros.

 arch/ia64/kernel/Makefile                          |   32 +-
 arch/ia64/kernel/entry.S                           |  568 +------------------
 arch/ia64/kernel/inst_native.h                     |  153 +++++
 arch/ia64/kernel/ivt.S                             |  159 +++---
 arch/ia64/kernel/minstate.h                        |    2 +
 arch/ia64/kernel/switch_leave.S                    |  609 ++++++++++++++++++++
 arch/ia64/xen/inst_xen.h                           |  307 ++++++++++
 arch/ia64/{kernel/minstate.h => xen/xenminstate.h} |   95 +---
 include/asm-ia64/privop.h                          |   26 +
 9 files changed, 1245 insertions(+), 706 deletions(-)

Xen-ia64-devel mailing list