Commit Graph
10266 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw 94de02679f [IA64] passthrough EFI_ACPI_MEMORY_NVS and EFI_RESERVED_TYPE
According to the EFI spec, firmware may describe ACPI tables loaded
at runtime in EFI_RESERVED_TYPE or EFI_ACPI_MEMORY_NVS memory ranges.
This patch adds these to the list of memory types we pass through for
dom0.  This allows Xen to boot on HP Superdomes.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-06-09 10:35:41 -06:00
awilliam@xenbuild.aw 58e5a0227d [IA64] use get_gpfn_from_mfn()
clean up vmx_vcpu_tpa() and mfn_to_gmfn(). don't access mpt_table directly.
use get_gpfn_from_mfn()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-09 10:35:40 -06:00
awilliam@xenbuild.aw 7839282e3d [IA64] use pte_mem() in relinquish_pte()
use pte_mem instread of direct bit test in relinquish_pte()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-09 10:35:39 -06:00
awilliam@xenbuild.aw eb4c00fc51 [IA64] add memory barrier to domain_flush_vtlb_range()
add memory barrier to domain_flush_vtlb_range().
vtlb purge must be visible before vhpt invalidation.
added some BUG_ON().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-09 10:35:38 -06:00
awilliam@xenbuild.aw 774ae11f51 [IA64] Add NULL test in domain_page_mapped()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-09 10:35:37 -06:00
awilliam@xenbuild.aw 58f8dc1cba [IA64] align pages in assign_domain_same_page()
Fix a bug. potential miss of page assignment for domain.
If mpaddr and size are not aligned well, the last page might be not
assigned for the domain.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2006-06-09 10:35:36 -06:00
awilliam@xenbuild.aw 380fd3ed0d [IA64] Put guest physical translation into VHPT
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-06-08 11:08:35 -06:00
awilliam@xenbuild.aw c9459d376a [IA64] Enable SMP on VTI-Domain
Signed-off-by: Anthony Xu < anthony.xu@intel.com >
2006-06-08 11:00:09 -06:00
awilliam@xenbuild.aw 45758ec272 [IA64] sparse tree cleanups
Here's a first pass at some sparse tree cleanups based on feedback
 we've gotten on linux-ia64.  I haven't taken all of the comments into
 account yet, this is just a start.  Specific changes:

  - CONFIG_ARCH_XEN is no longer necessary
  - simple is_running_on_xen() checks can be handled w/o CONFIG_XEN
  - pulled forward a drivers/xen/Makefile change that broken make clean
  - changed some comments from C++ style to C
  - turned HYPERVISOR_ioremap into a macro for !CONFIG_XEN
  - made hypervisor.h and privop.h include-able for !CONFIG_XEN

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-06-08 10:17:22 -06:00
awilliam@xenbuild.aw eeecb3f9b9 [IA64] clean out xen/drivers/patches in the sparse tree
This is all old, unused code.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-06-08 10:15:09 -06:00
awilliam@xenbuild.aw 4c3e173b0e [IA64] merge efi_emul.c into fw_emul.c and clean up
Merge efi_emul.c into fw_emul.c
Clean up: replace some goto with return.
Declare translate_mpa_to_imva in mm.h and as void *.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-06-06 09:11:25 -06:00
awilliam@xenbuild.aw 478e357a66 [IA64] remove xenia64_init.c
Relocate the few bits left to ia64 specific parts of the tree.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-06-06 09:06:19 -06:00
awilliam@xenbuild.aw 454f79385f [IA64] Fix network issue on VTI domain
Clean up event wait sequence in io emulation path, as a critical
fix to a severe issue where VTI domain may fall into block state
when doing bulk network transfer.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-06-06 09:01:38 -06:00
awilliam@xenbuild.aw 9017f91ebb [IA64] more cleanup
Clean-up: fw_emul.c created.
More definitions moved to mm.c
process.c is lighter and renamed to faults.c

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-06-05 14:28:39 -06:00
awilliam@xenbuild.aw ae0bcae60a [IA64] pass vcpu nr to guest firmware
This patch pass the vcpus number to VT-i domain guest firmware,
so that guest firmware can set SMP info accordingly, mostly in
ACPI MADT table.  

This patch is required by VT-i  SMP support.

Signed-off-by: Yu Ke <ke.yu@intel.com>
2006-06-05 14:23:57 -06:00
awilliam@xenbuild.aw 6748ed3224 [IA64] This patch fixes dom0 no VGA console bug.
After enabling dom0_vp mode, we lost the VGA console. 
The reason is that VGA frame buffer(0xa0000-0xc0000) was set
to conventional memory not IO in dom0's p2m table. 

Low conventional memory ranges are also given MDT entries for
dom0 to allow Linux to properly detect whether VGA is present.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-06-05 14:21:37 -06:00
awilliam@xenbuild.aw 6a9f37f846 [IA64] check memory descriptor over lap in dom_fw_init()
check memory descriptor over lap in dom_fw_init() and
assign page to dom0 precisely.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-06-03 16:06:23 -06:00
awilliam@xenbuild.aw c280ab99c5 [IA64] Handle VTi's fp fault & trap in hypervisor instead of injecting to guest
Signed-off-by : Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by : Kevin Tian    <kevin.tian@intel.com>
2006-06-03 15:34:07 -06:00
awilliam@xenbuild.aw 51fadaa0ed [IA64] Fix another bug which causes "Oops: time tick before it's due"
Signed-off-by: Anthony Xu < anthony.xu@intel.com >
2006-06-03 15:21:07 -06:00
awilliam@xenbuild.aw 93cdb775bc [IA64] Vcpu hot-plug support
Handle SAL return.
Handle ptr.i/ptr.d

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-06-03 14:48:42 -06:00
awilliam@xenbuild.aw 637abce44f [IA64] fix debug=y build: update ASSERT(acktype)
action->acktype is no longer defined here.  Dereference
desc->action->acktype to get to it.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-06-03 14:42:13 -06:00
awilliam@xenbuild.aw db27e4b851 [IA64] fix debug=y build: remove ASSERT(THASH_TLB)
ht is no longer a member of thash_cb_t, and THASH_TYPE is no longer
tracked.  Remove this bogus ASSERT.

Signed-off-by: Aron Griffis <aron@hp.com>
2006-06-03 14:41:24 -06:00
awilliam@xenbuild.aw 6e51ba3f5f [IA64] README patch of booting xen
Signed-off-by: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>
Signed-off-by: nakato <nakato@soft.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-06-03 14:39:49 -06:00
awilliam@xenbuild.aw 68740c9c1c [IA64] Add carriage return to printk/printf
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-06-03 14:33:08 -06:00
awilliam@xenbuild.aw 217f82646d [IA64] cleanup linux-2.6-xen-sparse
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-06-03 14:31:27 -06:00
awilliam@xenbuild.aw 6d8e45e303 [IA64] split domain.c into mm.c and domain.c
domain.c has grown too much. split it into two files.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-03 13:21:38 -06:00
awilliam@xenbuild.aw 9163f084a5 [IA64] fix vmx_vcpu_ptr_i(), vmx_vcpu_ptr_d()
They must purge all tr registers which overlap. not only one.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-03 13:21:14 -06:00
awilliam@xenbuild.aw ed2f30d1f5 [IA64] paravirtualize vdso
paravirtualize vdso area.
introduce hyperprivop HYPERPRIVOP_RSM_BE and HYPERPRIVOP_GET_PSR.
and paravirtualize vdso area using them.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-03 11:16:47 -06:00
awilliam@xenbuild.aw 09879197ca [IA64] import linux gate.S, gate.ld.S and patch.c
import gate.S, gate.ld.S and patch.c which are needed to
paravirtualize vdso area.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-03 11:16:41 -06:00
awilliam@xenbuild.aw a1782ac85e [IA64] rewrite priv_handle_op()
introduce vcpu_get_domain_bundle() and replace __get_domain_handle call
in priv_handle_op with it.
priv_handle_op() uses __get_domain_handle to domain's bundle.
it directly access guest ip with guest virtual address which may results
in data tlb miss which cause some trobles.
This patch also cleans up vcpu_translate().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-03 11:16:34 -06:00
awilliam@xenbuild.aw d3febd5582 [IA64] fix up a few more warnings
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-31 16:07:47 -06:00
awilliam@xenbuild.aw e91bc4619d [IA64] remove linux-2.6-xen-sparse/arch/ia64/xen/xenconsole.c
Inline the content of early_console_setup() to setup.c and remove
xenconsole.c

Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-31 14:34:33 -06:00
awilliam@xenbuild.aw 84db3ab496 merge with xen-unstable.hg 2006-05-31 13:05:21 -06:00
awilliam@xenbuild.aw 360cf93c53 [IA64] Add several missing is_running_on_xen().
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-05-31 11:30:07 -06:00
awilliam@xenbuild.aw 771d76a86d [IA64] remaining warnings removed
Warnings cleanup.
-Werror added when no_warns=y

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-31 11:29:50 -06:00
awilliam@xenbuild.aw 69d23b3206 [IA64] Add sal emulation to VTI domain
Signed-off-by Anthony.xu <anthony.xu@intel.com>
2006-05-31 11:28:03 -06:00
awilliam@xenbuild.aw 43d0ed3f2c [IA64] VTI: Initialize VHPT headers invalid
Signed-off-by: Anthony Xu < anthony.xu@intel.com >
2006-05-31 11:27:59 -06:00
awilliam@xenbuild.aw db3dddaba0 [IA64] VTI: set isr before injecting fault to guest
This patch intends to fix isr setting before injecting fault to it.
With this small fix, CPU2000 in VTi can pass now.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-05-31 11:27:54 -06:00
awilliam@xenbuild.aw 1d986b33ac [IA64] preparation for vga acceleration of VTI domain
This patch fixes several minor issues, as a prepare step to support VGA
acceleration for VTI domain:

- shared vram buffer needs to be mapped as WB in both sides, because
the shared vram is the true WB memory though VTI domain is told as UC
- Introduced a new pte_mem to indicate p2m entry containing valid mfn
when replace p2m entry. Pte_none doesn't work for VTI case, since IO
type is encoded into p2m entry which however doesn't contain valid mfn.

After above change, guest_physmap_add/remove_page is available to
be used by qemu to setup linear buffer for VTI domain.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-05-31 11:27:50 -06:00
kfraser@dhcp93.uk.xensource.com dbed3693c4 Export XEN_ROOT from top-level Makefile. Ensures it is
always defined when including Config.mk.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-31 15:48:29 +01:00
kfraser@dhcp93.uk.xensource.com ee2ac65880 [SVM] Remove redundant MAX_INST_SIZE definition.
Signed off by: Mats Petersson <mats.petersson@amd.com>
2006-05-31 14:23:00 +01:00
kfraser@dhcp93.uk.xensource.com 1f9df5417a Fix ACM hypercall macros (broke the x86/64 and ia64 builds).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-31 13:26:10 +01:00
kfraser@dhcp93.uk.xensource.com 3f2522e1ac Use a global build configuration file, and rework libxc Makefile for PPC.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-05-31 11:31:52 +01:00
kaf24@firebug.cl.cam.ac.uk 678b2e21b2 [HVM] Fixes to buffer handling in ne2000 device model.
Signed-off-by: hanzhu <zhu.han@intel.com>
2006-05-31 09:30:40 +01:00
kaf24@firebug.cl.cam.ac.uk affc898c83 The xm dmesg command wasn't taking the -c/--clear options because of
incorrect values to arg_check(). Patch simply allows for the possible
option with arg_check().

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-05-31 07:48:54 +01:00
kaf24@firebug.cl.cam.ac.uk 652b6e9492 Update .hgignore list for rombios changes. 2006-05-31 07:48:00 +01:00
kaf24@firebug.cl.cam.ac.uk 5426ba079f [VTPM_TOOLS] Updated vtpm for new release of the tpm_emulator.
New emulator includes AIK, DAA, and Transport Sessions
Signed-off-by: Vinnie Scarlata <Vincent.r.scarlata@intel.com>
2006-05-31 07:45:20 +01:00
kaf24@firebug.cl.cam.ac.uk 7469df6c08 [MINIOS] Various address-space fixes.
1. Make Mini-OS start from 0x0.
2. Fixes the pagetable builder to handle half full, but already mapped
pt frames.=20
3. Add a bounds check to ensure than Mini-OS does not try to use Xen
virtual space.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
2006-05-31 07:43:06 +01:00
kaf24@firebug.cl.cam.ac.uk 7c5fa19f50 [HVMLOADER] Default to 8-way SMP rombios.
From: Thomas Woller <thomas.woller@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-31 07:41:33 +01:00
kaf24@firebug.cl.cam.ac.uk 8f1d4352b6 [SVM] Fix virtualization of the CPUID NX bit, and clean up other CPUID bits.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
2006-05-31 07:28:43 +01:00