Commit Graph
9867 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw ed620a7b4e [IA64] RSE incomplete cfm
In theory, after Guest executes "cover", incomplete frame changes to complete 
frame. So Guest should set INCOMPL to 0 just after "cover". At least before
guest psr.ic and psr.i are turned on.

Previously, only when Guest executes "rfi", INCOMPL is set to 0. The window 
between "cover" and "rfi" causes trouble in below scenario.

1. Application A calls system call.

2. In OS breaks handler entry, INCOMPL is 0. Due to its system call, 
   Linux kernel doesn't execute "cover".

3. Before returning to Application A, schedule happens, Application B begins
   to run.

4. A TLB miss happens on the context of B, this may make INCOMPL 1, before 
   Returning to B, (that means "rfi" is not executed, and INCOMPL is still 1)
  schedule happens again. A resumes to run with INCOMPL 1 (this is incorrect now).

5. As mentioned before, this is system call, "cover" is executed in 
   ia64_leave_kernel path.  Because INCOMPL is 1, this "cover" is not actually
   executed, but this "cover" should be executed.

5. Thus application A's frame is destroyed. Issue appears.

From: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-08 13:41:18 -06:00
awilliam@xenbuild.aw 56f55a7151 [IA64] cleanup hyperprivop definitions
Move hyperprivop definitions into arch-ia64.h

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-08 13:08:37 -06:00
awilliam@xenbuild.aw 6fc064b184 [IA64] fix initrd start
Fix initrd start to work with P2M/VP

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-05-08 13:05:47 -06:00
awilliam@xenbuild.aw 7edf977149 [IA64] Removed warning messages
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-05-08 12:56:57 -06:00
awilliam@xenbuild.aw 067813adaf [IA64] Fixed print_md
This patch fixed the domain memory information that print_md() 
output.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-05-08 12:52:12 -06:00
awilliam@xenbuild.aw 892da3be7b [IA64] Fix RSE issue in VTI-domain
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-05-08 12:49:53 -06:00
awilliam@xenbuild.aw 4bb4c98bfa [IA64] slightly improve stability
vcpu_ptc_e: fix flush order.
vcpu_ptc_g: fix typo (only local vcpu v-tlb was flushed)
itlb_pte/dtlb_pte removed.
vcpu_itr_* and vcpu_itc_no_srlz call vcpu_set_tr_entry coherently.
in_tpa parameter of vcpu_translate removed.
handle_lazy_cover is now static and unused 'isr' removed.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-08 12:47:54 -06:00
awilliam@xenbuild.aw 9e385cdd2f [IA64] Make VTI domain boot
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Anthony Xu <anthony.tian@intel.com>
2006-04-26 20:55:42 -06:00
awilliam@xenbuild.aw 7a72b7c50b merge with xen-unstable.hg 2006-04-26 13:17:37 -06:00
awilliam@xenbuild.aw 3307d6c2f1 [IA64] not quite ready for --fatal-warnings
The build fails for me with gcc-3.4.5/gas-2.16.91

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-04-26 12:55:18 -06:00
awilliam@xenbuild.aw ca8e790ebd [IA64] remove remaining asm warnings
Fix all remaining warnings generated by gas.
Enforce the no gas warnings by using --fatal-warnings gas flag.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-26 12:50:42 -06:00
awilliam@xenbuild.aw ccb6709b06 [IA64] cleanup
Cleanup: add static, remove unused code/variables/macros.
Simplifications.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-26 12:44:45 -06:00
awilliam@xenbuild.aw 0dc5928a6e [IA64] Fix vm_summary info in VTi domain
This patch fixed vm_summary info and provide correct max_itr_entry,
max_dtr_entry,impl_va_msb, rid_size and so on. 

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
2006-04-26 12:40:56 -06:00
kaf24@firebug.cl.cam.ac.uk b450304086 Make xen_features and force_evtchn_callback() non-GPL
symbols as they are used in a variety of ubiquitous
kernel macros.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-26 17:41:19 +01:00
yamahata@valinux.co.jp 078e1918d3 xenLinux/ia64 has its own dma_map_page(), dma_unmap_page(), and it needs
linux default implementations of dma_declare_coheremnt_memory() and its
families which is defined in include/linux/dma-mapping.h.
So those in pci-dma-xen.c are unnecessary. #ifdef out them.
PATCHNAME: pci-dma-xen-common

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-26 10:43:16 +01:00
awilliam@xenbuild.aw 390a5e26ef [IA64] remove RELOC_HIDE
This is now defined in xen/include/xen/compiler.h

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-04-25 23:38:09 -06:00
awilliam@xenbuild.aw aaf9402dab merge with xen-unstable.hg 2006-04-25 23:35:55 -06:00
awilliam@xenbuild.aw 0d7d0c0cf2 [IA64] Fix the total memory info with xm info command
This small patch intends to provide correct total memory info for
control panel and fixed hardcode for that. The total memory info doesn't
include the memory FW used.

Signed-off-by : Zhang Xiantao  <xiantao.zhang@intel.com>
2006-04-25 22:55:22 -06:00
awilliam@xenbuild.aw c6c867acc7 [IA64] Reseve memory of domain0 (fix dom0 boot panic)
Our patch fix domain0 boot panic on large memory system.
(e.g. amount of installed memory is 16GB)

Memory of domain0 is not reserved now.
Our patch can make this memory reserved.
And we clean up initrd_start of domain0.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-04-25 22:52:49 -06:00
awilliam@xenbuild.aw 4f49eae794 [IA64] Fixed "Oops: time tick before it's due" issue
This patch fixed following issue,
"Oops: time tick before it's due" in VTI-domain

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 22:38:25 -06:00
awilliam@xenbuild.aw 2f41b3e04c [IA64] FPH enabling + cleanup
Move contents of switch_to macro from xensystem.h to context_switch function.
Initialize FPU on all processors.  FPH is always enabled in Xen.
Speed up context-switch (a little bit!) by not enabling/disabling FPH.
Cleanup (unused function/variablesi/fields, debug printf...)
vmx_ia64_switch_to removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-25 22:35:41 -06:00
awilliam@xenbuild.aw 5713e1b987 [IA64] smp boot speed-up (sal cache flush, itc/itv messages)
Use sal_cache_flush to emulate SAL_CACHE_FLUSH instead of fc.
Only prints one vcpu_set_itc message, do not print set itv message.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-25 22:32:14 -06:00
awilliam@xenbuild.aw 4c476c5c53 [IA64] missed chunk of Kevin's hypercall cleanup patch
Missed this chunk of Kevin's patch when merging with dom0vp changes

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-04-25 22:30:07 -06:00
awilliam@xenbuild.aw 40e34e2a34 [IA64] Hypercall cleanup
Clean up xen_hypercall to query hypercall table instead.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-04-25 22:27:18 -06:00
awilliam@xenbuild.aw 0017c898c6 [IA64] Use16M page size in identity mapping
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 22:10:05 -06:00
awilliam@xenbuild.aw ba20f187b7 [IA64] cleanup vtlb code
This patch is to clean up vtlb code.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 20:53:38 -06:00
awilliam@localhost e737afb883 [IA64] emulate ldfp8 in mmio
1. emulate ldpf8 in mmio
2. handle floating point register rotation in functions setfpreg and getfpreg

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-25 17:05:16 -06:00
awilliam@localhost e1a87a84be [IA64] linux: arch/ia64/xen/makefile change
update linux-2.6-xen-sparse/arch/ia64/xen/Makefile

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 16:55:09 -06:00
awilliam@localhost 05e3e3c89e [IA64] dma paravirtualization
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 16:53:27 -06:00
awilliam@ldap.hp.com 44ecda1d9d [IA64] add dom0vp hypercall interfaces
adds the dom0vp hypercall interfaces.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 14:02:21 -06:00
awilliam@ldap.hp.com 6283fce6f0 [IA64] introduce config option
introduce XEN_IA64_DOM0_VP config.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:57:56 -06:00
awilliam@ldap.hp.com b4b8b91251 [IA64] introduce dom0vp hypercalls
implement dom0vp hypercall.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:56:30 -06:00
awilliam@ldap.hp.com 18982c3adb [IA64] domain0 builder change
make domain0 builder for dom0 vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-04-25 13:48:02 -06:00
awilliam@ldap.hp.com 14ecb6faa4 [IA64] introduce efi_memmap_walk_type
introduce efi_memmap_walk_type() for the next dom0 builder patch.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:11:15 -06:00
awilliam@ldap.hp.com 406b52ce50 [IA64] introduce P2M conversion
introduce P2M conversion functions necessary for dom0vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 13:06:57 -06:00
awilliam@ldap.hp.com fbc92d2b9d [IA64] introduce compile time option to xen
introduce xen_ia64_dom0_virtual_physical compile time option.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-25 10:54:45 -07:00
awilliam@ldap.hp.com 19d0ab2382 [IA64] Remove FORCE_CRASH from alt_itlb_miss
This patch removed FORCE_CRASH from alt_itlb_miss handler.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-04-25 10:50:56 -07:00
awilliam@ldap.hp.com f7d50b68c3 [IA64] message of elf_sanity_check as x86
This small patch output message of elf_sanity_check as x86.
Currently this panic is the only following message.

        (XEN) *** LOADING DOMAIN 0 ***
        (XEN) 
        (XEN) ****************************************
        (XEN) Panic on CPU 0:
        (XEN) Could not set up DOM0 guest OS
        (XEN) ****************************************
        (XEN) 
        (XEN) Reboot in five seconds...
        (XEN) machine_restart called: spinning....

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-04-25 10:49:33 -07:00
kaf24@firebug.cl.cam.ac.uk b11a028b04 Need a little more serialisation in pciback_do_op().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-25 18:22:11 +01:00
kaf24@firebug.cl.cam.ac.uk 93bb8669b3 Some of the Linux PCI functions called by the virtual configuration
space handlers were making calls into ACPI code which uses semaphores.
Since semaphores can not be locked while atomic (because they could
sleep), I changed the way the PCI backend responds to requests from the
frontend. Previously, the virtual configuration space handlers ran in
the same context as the event channel interrupt handler (which was often
atomic if not always atomic). Now the interrupt handler schedules a
callback function (a bottom half) in the system work queue (keventd)
that will get called in process context at a slightly later time. This
allows the handlers in the virtual configuration space to run in process
context and to call any core PCI function regardless of whether it will
sleep or not.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-04-25 18:13:39 +01:00
kaf24@firebug.cl.cam.ac.uk 91046a739e Fix the -xen, -xen0 builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-25 16:08:11 +01:00
kaf24@firebug.cl.cam.ac.uk 4dacb4e7f1 While other aspects of the system configuration may still be
controlled by the outcome of the table scan, if apic= was given on the
command line its effect should not be overridden here.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-04-25 14:50:32 +01:00
kaf24@firebug.cl.cam.ac.uk c0b2433fa9 Change the xenbus_map_ring_valloc() interface and implementation so
that it is buildable as a module.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-04-25 14:20:08 +01:00
kaf24@firebug.cl.cam.ac.uk ba770381ca Update xen caps on x86_64 since we have hvm pae guests support now.
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-04-25 11:12:16 +01:00
kaf24@firebug.cl.cam.ac.uk e46dd6eea6 Add a return statement to the non-Xen version of skb_checksum_setup.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-04-25 09:02:53 +01:00
kaf24@firebug.cl.cam.ac.uk 2c97bbed1e This is a small fix for SMP PAE guest on x86-64.
Since part of the VMX guest initialization is running in the context of
dom0, so when we want to make sure the operation of shadow ops is
always done by vcpu0 of the guest VMX domain, we should make sure
the current vcpu0 is running in guest domain and not in the dom0.

Signed-off-by: Xiaohui Xin xiaohui.xin@intel.com
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-04-25 08:56:01 +01:00
kaf24@firebug.cl.cam.ac.uk 7a3a16a1ca Fix "make debug" in Xen subtree. Pointed out by Aravindh
at Unisys.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-25 08:54:36 +01:00
cl349@firebug.cl.cam.ac.uk 5796b1695e Remove \r characters.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-04-24 18:07:27 +01:00
cl349@firebug.cl.cam.ac.uk 3e4e48bbd5 Restore default KERNELS list.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-04-24 11:21:16 +01:00
smh22@firebug.cl.cam.ac.uk 2c04b08df9 Add new xml files for policy.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-04-24 11:01:41 +01:00