Commit Graph
10028 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw a9ca520ba1 [IA64] Enable P2M/VP by default
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-21 07:49:46 -06:00
awilliam@xenbuild.aw 2cb5de3797 [IA64] add missing ia64_trace_syscall privop
This patch adds a missing privop definition for ia64_trace_syscall
when CONFIG_XEN is unset.  It also cleans up some inconsistent
spacing.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:31:02 -06:00
awilliam@xenbuild.aw 9df82c7e67 [IA64] make it possible to disable CONFIG_XEN
This patch helps distro inclusion efforts by making it possible to
build a xen-patched Linux kernel with CONFIG_XEN disabled.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:28:05 -06:00
awilliam@xenbuild.aw c4fde3eb15 [IA64] sparse-merge: check SPARSEDIR for modifications
Check SPARSEDIR for modifications before allowing the merge.
This removes the need for the FIXME.  Additionally clean up
empty diffs at the end of the run.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:24:51 -06:00
awilliam@xenbuild.aw c4f9430994 [IA64] minor fix for sparse-merge
Here's another sparse-merge patch to allow ARCH to be set on the
command-line, and to add -C to the final hg update since it's probably
switching between branches.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-21 07:22:58 -06:00
awilliam@xenbuild.aw d05aa5ad74 [IA64] panic when ioremap hypercall fails.
This can occur when dom0 vp model xenlinux is used on P=M model xen/ia64.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-18 14:05:30 -06:00
awilliam@xenbuild.aw b752ccb8d2 [IA64] pte_xchg added
pte_xchg added to atomically exchange pte.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-17 16:31:46 -06:00
awilliam@xenbuild.aw 911e3e203f [IA64] add parameter check to ioremap hypercall
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-17 15:53:14 -06:00
awilliam@xenbuild.aw 4b5f966ad2 [IA64] struct mm is now a field of struct domain
struct mm is now a field of struct domain (instead of a pointer).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-17 15:53:05 -06:00
awilliam@xenbuild.aw 428a8120b5 [IA64] Correctly set aml code of domU dsdt.
Previously it was corrupted (bad length).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-17 15:53:00 -06:00
awilliam@xenbuild.aw d7b1ff2259 [IA64] Fix xm pause/unpause bug
This small patch intends to fix domain pause/unpause bug.
Current xm pause operation will do sync_vcpu_execstate to
sync vcpu status, but it saves dom0's fpu and other registers
to VTi domain or domainU due to xm pause from control panel.
Because sync_vcpu_execstate was called after vcpu_sleep which
has saved all status when schedule out ,in addition, currently
no lazy states need to be saved in IPF side, so sync_vcpu_execstate
would need do nothing now.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-05-17 15:52:55 -06:00
awilliam@xenbuild.aw 4a0b492a66 [IA64] Fix VTi domain destroy bug
This patch will fix VTi domain destroy bug. On tip, we couldn't
destroy VTi successfully at times. It was caused by misusing
vhpt base address for VTi domain in vhpt_flush function.

Signed-off-by : Zhang xiantao <xiantao.zhang@intel.com>
2006-05-17 15:52:10 -06:00
awilliam@xenbuild.aw 345aa4ded5 [IA64] Include automated sparse merge script
This script automates merging the sparse tree to new upstream
kernel revisions.  When possible the files are automatically
patched to the new version, if that fails, the xen and upstream
patches are tried in reverse order, if that fails, the method
producing the smallest reject is left for manual merging.

Run as:

# LINUXPATH=$HOME/linux-2.6 sparse-merge

Where LINUXPATH is a local mercurial tree of the upstream kernel
(available from http://www.kernel.org/hg/linux-2.6).  NEWTAG and
OLDTAG may also be specified if the autodetection does not work.
By default, NEWTAG will be the latest upstream version.  If NEWTAG
or OLDTAG is an extra-version (ex. 2.6.16.13), ketchup will be
used to update the mercurial tree and add the appropriate tag.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-16 12:54:26 -06:00
awilliam@xenbuild.aw c8c9447a8f [IA64] P2M/VP build fix
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-16 12:07:09 -06:00
awilliam@xenbuild.aw c963c1e67a [IA64] vhtp clean-up
Create a clean interface for vhpt/tlb.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-16 10:35:58 -06:00
awilliam@xenbuild.aw a5a1a97baf [IA64] Allow multiple-time mmap of the privcmd device
Allow multiple-time mmap of the privcmd device. The old implemntation
doesn't allow multiple-time mmap for a same struct file_struct.
However xend or qemu does multiple-time mmap.
This patch affects only dom0 vp model. With this patch multiple domu can 
boot simultaneously and vti domain can boot on vp model dom0.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-16 09:05:36 -06:00
awilliam@xenbuild.aw a69a6deb82 [IA64] Fix VTi
This patch should fix VTi broken bug, though it will waste 8 pages.
Once change Qemu's related code, we can find this 8 pages back

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2006-05-16 08:59:26 -06:00
awilliam@xenbuild.aw d9b8a3ff76 [IA64] Get rid of dcr bit 63 trick.
(Use ar.rsc.pl instead).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-15 14:12:07 -06:00
awilliam@xenbuild.aw 4bfd7b5e13 [IA64] Strengthen dom0_getmemlist
reset num_pfns before hypercalling, more checks in hypercall, cleanup

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-15 13:42:18 -06:00
awilliam@xenbuild.aw 0b5ba3777d [IA64] move evtchn_vector to shared_info
Move evtchn_vector from vcpu_info to shared_info.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-15 10:53:23 -06:00
awilliam@xenbuild.aw c7b2d5a31b [IA64] Fix VTI boot
fix cset 10003. the variable, end, of
vmx_build_physmap_table() also must adjusted.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-14 09:16:21 -06:00
awilliam@xenbuild.aw 809df00f3b [IA64] bug fix (for SMP-g)
Bug fix for SMP-g: correctly set vcpu_info and map shared_info.
(vcpu_info is set by common code).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-12 10:21:57 -06:00
awilliam@xenbuild.aw 661658a517 [IA64] xen: remove mm_struct::pt_list
removed pt_list member of struct mm_struct.
It is now unecessary.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-12 09:03:04 -06:00
awilliam@xenbuild.aw af33e954db [IA64] xen: implemanted domain destruction again
implemented domain destruction.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-12 08:58:56 -06:00
awilliam@xenbuild.aw f0bbd5d898 [IA64] xen: fix vmx_build_physmap_table()
fix vmx_build_physmap_table(). avoid map pages to the area
[VGA_IO_START, VGA_IO_START + VGA_IO_SIZE].

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-12 08:55:50 -06:00
awilliam@xenbuild.aw 8d9e045fea [IA64] linux: remove dom0vp_populate_physmap hypercall
dom0 vp model: remove populate_physmap hypercall which becomes unnecesarry
because xenmem operation is fully supported by the previous patch.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-12 08:53:49 -06:00
awilliam@xenbuild.aw 6d74295dec [IA64] xen: remove dom0vp_populate_physmap hypercall
remove populate_physmap hypercall which becomes unncesarry because
XENMEM op is fully supported.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-12 08:49:40 -06:00
awilliam@xenbuild.aw 16de49c531 [IA64] xen: balloon driver support
preliminary changes for balloon driver support of xen/ia64.
This breaks domain destruction. This will be fixed later.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-12 08:47:07 -06:00
awilliam@xenbuild.aw 7acdd8eecd [IA64] Fix a vtlb bug and do some cleanup
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-05-12 08:27:51 -06:00
awilliam@xenbuild.aw 35ab12cbdc [IA64] put hot vhpt entry at VHPT HEADER
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-05-12 08:13:18 -06:00
awilliam@xenbuild.aw 8f79ca15a2 [IA64] Clear rse invalid partition before resuming to VTi guest
This patch intends to provide mechanism for clearing rse invalid 
partition before rbs switch to guest. To avoid leaking hypervisor 
bits to guest, it is a must to clear registers which are in 
invalid partition before leaving hypervisor. 

Singed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-05-12 08:10:01 -06:00
awilliam@xenbuild.aw d38dc7856d [IA64] Fix Alt DTLB error message
Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
2006-05-11 13:16:04 -06:00
awilliam@xenbuild.aw 2871fd7368 [IA64] NR_hypercalls definition on IA64
This is a patch for NR_hypercalls definition.
It effects (on IA64)
1)xenperf work 
2)make perfc=y compile succeed.

At this moment, xenperf@IA64 can monitor 3 counters.
sched: timer
sched: runs through scheduler
sched: context switches

This code is just moved from 
xen/include/asm-x86/config.h

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
2006-05-11 13:13:37 -06:00
awilliam@xenbuild.aw 58c1630d3c [IA64] Remove warning (process.c)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-05-11 13:06:23 -06:00
awilliam@xenbuild.aw 3d1ddf0419 [IA64] update xenivt.S and xenentry.S
Update xenentry.S and xenivt.S for linux 2.6.16.13.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-10 17:07:06 -06:00
awilliam@xenbuild.aw cc53c58e4e [IA64] linux: MULTI_update_va_mapping definition to copmile netback and netfront
add trivial definitions, MULTI_UVMFLAGS_INDEX and MULTI_update_va_mapping()
to compile netback and netfront

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-10 15:58:36 -06:00
awilliam@xenbuild.aw 88c6b93850 [IA64] linux: maddr_t definition to compile netback and netfront
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-10 15:57:04 -06:00
awilliam@xenbuild.aw 7abd062adf [IA64] linux: ia64 coreMakefile clean up
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-10 15:55:21 -06:00
awilliam@xenbuild.aw fa978ee245 [IA64] linux: ia64 drivers Makefile clean up
makefile clean up.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-10 15:54:00 -06:00
awilliam@xenbuild.aw d06dcaf646 [IA64] linux: ia64 Kconfig
changes of kconfig for dom0 vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-10 15:52:06 -06:00
awilliam@xenbuild.aw 4755f564d4 [IA64] Display the information in fault handler
This patch modifies the interruption handler to display the
information about the interruption and then do panic in the case of the
fault occurred in hypervisor, or reflect to the guest when handling the
fault in guest.

  The modification is as follows:
1. In each handler in IVT, the procedure is added to branch to fault
handler or reflection according to ipsr.cpl.
2. In the case of the fault occurred in hypervisor(ipsr.cpl==0), the
fault handler displays the information (vector, registers, and stack by
calling show_registers()), and then do panic().
3. In the case of the fault occurred in guest(ipsr.cpl!=0), it is
reflected to the guest.

  With this modification, some faults which were always treated to be
reflected to the guest are changed to do panic when they occur in
hypervisor.

Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
2006-05-10 15:50:27 -06:00
awilliam@xenbuild.aw 3ed3d58687 [IA64] ia64_new_rr7 rewritten + cleanup
ia64_new_rr7 rewritten (more compact).
Cleanup in xenasm.S
Define of shared_info_va removed.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-10 15:29:54 -06:00
awilliam@xenbuild.aw ec29c6a457 [IA64] SetVirtualAddressMap emulation support
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-05-10 15:29:48 -06:00
awilliam@xenbuild.aw f97407e307 [IA64] add a default for XEN_IA64_DOM0_VP
Signed-off-by: Al Stone <ahs3@fc.hp.com>
2006-05-09 16:56:45 -06:00
awilliam@xenbuild.aw b63d037c08 [IA64] remove remaining warnings in .S files
Add missing .endp in .S files.
Cleanup in Rules.mk.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-09 15:25:32 -06:00
awilliam@xenbuild.aw d2ffdd2cd2 [IA64] panic -> panic domain
This patch uses panic domain instead of panic when the 
panic happening is only related to current domain not whole system.

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
2006-05-09 15:23:33 -06:00
awilliam@xenbuild.aw 4fb3c41bf0 [IA64] compilation fix of ia64 hypervisor.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 12:42:44 -06:00
awilliam@xenbuild.aw 9a47e068ff [IA64] linux: HYPERVISR_update_va_mapping()
add the trivial definition, HYPERVISOR_update_va_mapping(), to compile
balloon driver.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:50:27 -06:00
awilliam@xenbuild.aw 4a4bb6bd60 [IA64] linux: XENMEM op work around
xen/ia64 XENMEM_increase_reservation, XENMEM_decrease_reservation,
XENMEM_populate_reservation are broken.
work around for it.
This patch should be removed after those hypercalls are fixed.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:47:15 -06:00
awilliam@xenbuild.aw 93300c405f [IA64] linux: drivers/xen/util.c for ia64
xen/ia64 counter part of linux-2.6-xen-sparse/drivers/xen/util.c

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:46:00 -06:00