Commit Graph
9014 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw f85031ea1e [IA64] Every processor call xen_early_setup (required on SMP-guest to set ivt).
Only BP set running_on_xen.
xensetup.S slightly compacted.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-03-01 10:01:54 -07:00
awilliam@xenbuild.aw 80ab525b55 [IA64] warning cleanup
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-01 09:53:17 -07:00
awilliam@xenbuild.aw 5cc053b237 [IA64] VTI: updated vtlb, support_non_contiguous memory on vtidomain
Previously VTI-domain only supported contiguous memory,
this patch is intended to make VTI-domain support non-contiguous memory.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-03-01 08:29:00 -07:00
awilliam@xenbuild.aw f13717e1d9 [IA64] Unused fields in mm_struct commented out.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-02-28 13:18:08 -07:00
awilliam@xenbuild.aw 6e80748720 [IA64] Misc clean-up and warnings removal.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-02-28 13:10:16 -07:00
awilliam@xenbuild.aw ba09136429 [IA64] xen_timer_interval removed (was not used).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-02-28 12:43:08 -07:00
awilliam@xenbuild.aw a1e2dc0e74 [IA64] delivery_mask removed (was unused).
The field was renamed in arch-ia64.h for backward compatibility with xen linux.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-02-28 12:23:46 -07:00
awilliam@xenbuild.aw 83877b3bcb [IA64] Found the lost memory
This patch can work around virtual memmap/discontig memory issues,
but memory gain may not be realized.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-02-28 12:02:50 -07:00
awilliam@xenbuild.aw da76400670 [IA64] cleanup warning in xen/ia64 (arch/ia64/xen)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time. 

Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-02-28 10:29:30 -07:00
awilliam@xenbuild.aw b983eb9e06 [IA64] cleanup warning in xen/ia64 (arch/ia64/linux-xen)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time. 

Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-02-28 10:26:43 -07:00
awilliam@xenbuild.aw 9b80574561 [IA64] cleanup warning in xen/ia64 (arch/ia64/linux)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time. 

Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-02-28 10:24:03 -07:00
awilliam@xenbuild.aw 90cd444ac5 [IA64] cleanup warning in xen/ia64 (include/asm-ia64)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time. 

Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-02-28 10:21:54 -07:00
awilliam@xenbuild.aw 138d5932c2 [IA64] Cleanup hypercall.h
Cleanup to hypercall.h of ia64 xenlinux, and remove used stuff.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-28 10:13:55 -07:00
awilliam@xenbuild.aw fa477fdb3f [IA64] fix SMP bug for vhpt
vhpt_paddr & vhpt_pend are now per-cpu variables, since VHPT is allocated
per cpu.  This should really improve stability.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-02-27 14:00:33 -07:00
awilliam@xenbuild.aw dd940c5dba [IA64] warning removal: NR_CPUS
linux/threads nullified (moved to linux-null).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-02-27 13:31:10 -07:00
awilliam@xenbuild.aw 6fe07c57cc [IA64] SMP_HOST: Alloc vhpt from domheap
It's more reasonable to alloc vhpt from domheap, instead of xenheap.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-02-27 13:16:16 -07:00
awilliam@xenbuild.aw 3a310f793d merge 2006-02-24 15:41:08 -07:00
awilliam@xenbuild.aw 40bb7e962a [IA64] SMP_HOST: map pal code on smp host
On up host, only when rr7 is changed, efi_map_pal_code() is called to
remap pal code on new rr7. But on smp host, efi_map_pal_code is also
called to map pal code for other processors, which may not satisfy rr7
change condition, thus pal code may not be mapped in some processors,
while ia64_pal_halt_light called in startup_cpu_idle_loop will cause
machine crash.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-02-24 14:03:07 -07:00
awilliam@xenbuild.aw 5601b7063f [IA64] VTI: Fix two bugs
1. Vmx_check_pending_irq should not be called in vmx_vcpu_set_eoi,
because vmx_vcpu_increment_iip is called after vmx_vcpu_set_eoi. That
is, the first instruction of guest interrupt handler will be skipped.
2. Remove code segment which was used to send events to VTIdomain, when
dom0 was VTIdomain. This is not needed any more, and will cause
VTIdomain on SMP-HOST complain "Unexpected interrupt ..." .

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-02-24 13:38:26 -07:00
awilliam@xenbuild.aw be5f11d829 [IA64] Clean up warnings related to VTi code. (header files)
This patch adds some functions' prototype declaration in corresponding
header file and removes issues suce as redefinition of some macros.

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
2006-02-24 13:30:39 -07:00
awilliam@xenbuild.aw dd48511361 [IA64] Clean up warnings related to VTi code. (C files)
This patch removes  most of the warnings such as incompatible assignment, 
unused variables, return value type of some functions  and so on.

Signed-off-by: Zhang Xiantao <xiantao.zhang @intel.com>
Signed-off-by: Kevin Tian    <kevin.tian@intel.com>
2006-02-24 13:29:18 -07:00
awilliam@xenbuild.aw 4d95dee010 [IA64] redefine raw_smp_processor_id()
There are two definitions of raw_smp_processor_id()
One is in file xen/include/asm-ia64/linux/asm/smp.h
	#define raw_smp_processor_id() (current_thread_info()->cpu)
The other is in file /xen/include/asm-ia64/config.h
	#define raw_smp_processor_id()   current->processor
In fact, the first one takes effect, that's not correct.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-02-24 11:08:51 -07:00
awilliam@xenbuild.aw e2863e8e8b [IA64] another one to remove unused linux files within xen/ia64
This patch is to remove more unused linux files inside xen and also some
duplicated ones, like slab.h and cpumask.h. This should help reduce
duplicated definitions conflicting with xen's.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-24 10:50:27 -07:00
awilliam@xenbuild.aw cdc77010c5 [IA64] Remove unused Linux stuff
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-24 10:32:27 -07:00
awilliam@xenbuild.aw 74b2e11c41 [IA64] fix ia64 cset 8906
Looks like we accidentially added a compliment op here, adding
one more to nullify.  Fixed dom0 not booting.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-02-24 09:41:27 -07:00
awilliam@xenbuild.aw 77f6ce9bd0 [IA64] bug fix reserve_memory()
reserved_region[].start is of virtual address in identity
mapping. not physical address.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:44:34 -07:00
awilliam@xenbuild.aw 28c70b0a59 [IA64] import linux/include/asm-ia64/meminit.h from 2.6.16-rc3.
this is needed for a later patch to modify meminit.h

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:41:21 -07:00
awilliam@xenbuild.aw d367c877c2 [IA64] minor bug fix in xensetup.S
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:37:46 -07:00
kaf24@firebug.cl.cam.ac.uk e6e48842c2 Another tiny C89 fix.
Signed-off-by: Bruce Rogers <brogers@novell.com>
2006-02-24 16:37:09 +01:00
awilliam@xenbuild.aw 6eab53bc1e [IA64] tlb miss fix
make dtlb miss handler to handle xen/ia64 identity mapping area.
xen/ia64 enables vhpt walker for all regions unlink Linux.
So dtlb misses on identity mapping area are catched by
dtlb miss handler, not alt dltb miss handler.

- dtlb miss on identity mapping area must be handled
- alt dtlb miss must be handled
- itlb miss on the identity mapping area must not occur
  panic via page_fault().
- alt itlb miss by a guest must be handled
  it occurs during dom0 boot.
- alt itlb miss by xen must not occur
  panic by FORCE_CRASH

vmx_ivt.S already has such tweaks by checking psr.vm bit.

TODO: optimization
      dtlb miss handlers are performance critical so that
      it should be heavily optimized like alt_dtlb_miss.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:34:11 -07:00
awilliam@xenbuild.aw c00c11be83 [IA64] acpi printf fix
fix printf format miss. %0xlx -> 0x%lx

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:29:52 -07:00
awilliam@xenbuild.aw 26e617a773 [IA64] cleanup itir_ps(), itir_mask()
code clean up.
itir_ps(), itir_mask()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:28:36 -07:00
awilliam@xenbuild.aw 979c647186 [IA64] hypercall cleanup
hypercall clean up.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:24:58 -07:00
awilliam@xenbuild.aw a911e196b4 [IA64] assign_new_domain0_page
map_new_domain0_page() -> assign_new_domain0_page() for consistency
deleted map_domain_page0() declaration

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-02-24 08:23:33 -07:00
cl349@firebug.cl.cam.ac.uk bb5d5f577a linux-i386: cleanup head.S, sync default_ldt and {new,boot}_cpu_data with native.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-24 14:41:45 +00:00
Ian.Campbell@xensource.com c6ba49142d Implement direct iret to guest kernel where possible in HYPERVISOR_IRET macro.
Returns to guest userspace and from an NMI must still go via the hypervisor.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-02-24 11:05:52 +00:00
kaf24@firebug.cl.cam.ac.uk 3157cba60d Tools changes for per-vcpu io event channel on IA64.
Signed-off-by Kevin Tian <Kevin.tian@intel.com>
2006-02-24 10:29:09 +01:00
kaf24@firebug.cl.cam.ac.uk e36c8877da Return <4GB memory back to Xen when destroying a PAE pgdir.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-24 08:49:32 +01:00
kaf24@firebug.cl.cam.ac.uk 4df7e8e499 This patch allows for compilation with C89 era compilers, by removing the
trailing comma from an enum, which was not part of the C89 spec.

Signed-off-by: Bruce Rogers <brogers@novell.com>
2006-02-24 08:28:04 +01:00
kaf24@firebug.cl.cam.ac.uk 50345bb6c0 Cset 8950 adds shadow info dump in common code, however
IA64 has no shadow mode. Move it into arch specific stub instead.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-02-24 08:27:05 +01:00
awilliam@xenbuild.aw d87448a00e [IA64] Provides right frequency ratio and base for VTi domain
This patch handles the pal_freq_ratio and pal_freq_base request breaked
to Xen by GFW for VTi domain.  and it fixed the wrong frequency ratio
and base  of VTi domian.  So,i with this patch, VTi domian can get the
right time ,itc,cpu frequency, freqency base and other kernel params rely
on right frequency_ratio.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
Signed-off-by: Yu Ke <ke.yu@intel.com>
2006-02-23 15:40:18 -07:00
kaf24@firebug.cl.cam.ac.uk e16b78bf48 Use common IRET macro for all exits from XenLinux. Currently
uses slow iret path every time (but most returns will do that
anyway, since they'll be to userspace). Fast return (to kernel)
can be implemented inside the macro and respect the 
supervisor_mode_kernel feature flag.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 18:40:08 +01:00
kaf24@firebug.cl.cam.ac.uk 3eaf2dff37 Remove TBF_SLOW_IRET hack from x86/64 Xen return-to-guest
path. Guest should set up flags for itself in its own
NMI handler.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 18:30:43 +01:00
kaf24@firebug.cl.cam.ac.uk 9925f4a7dc Remove explicit munging of selector RPLs from Xen Linux x86/64.
Not needed now it's done by Xen.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 18:27:18 +01:00
vhanquez@kneesa.uk.xensource.com aadfc97676 initialize few structure fully to zero with talloc_zero
instead of explicitely initializing some fields to NULL.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-02-23 17:14:55 +00:00
cl349@firebug.cl.cam.ac.uk 5cef365e77 Output which shadow mode is used, if any.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-23 16:29:06 +00:00
cl349@firebug.cl.cam.ac.uk f79142a93d Make the fixmap area moveable in kernel address space.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-23 15:59:54 +00:00
cl349@firebug.cl.cam.ac.uk 7ac0b750e5 Move the gate page (vsyscall) out of the fixmap area into user address space,
just below PAGE_OFFSET.

From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-23 15:22:19 +00:00
cl349@firebug.cl.cam.ac.uk 14fbb23123 Add include/asm-i386/{a.out,elf}.h to sparse tree
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-02-23 15:22:17 +00:00
kaf24@firebug.cl.cam.ac.uk 21cf8ef96a Add XENFEAT feature parsing to the domain 0 builder in Xen.
Fail to boot if domain 0 requires features that Xen does not
understand or support (for domain 0).

Remove stale dom0_translate boot option.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-02-23 15:55:35 +01:00