Commit Graph
1244 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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 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
awilliam@xenbuild.aw e29284bb88 [IA64] linux: privcmd_mmap() and direct_remap_pfn_range()
implemented direct_remap_pfn_range() and ia64-specific privcmd_mmap()
for foreing domain page mapping.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:44:26 -06:00
awilliam@xenbuild.aw 9b16af0ce9 [IA64] linux: arch_free_page()
add defeinitions of arch_free_page()
work around for PG_foreign. xen/ia64 uses PG_arch1.
This work around sould be removed once PG_foreign is taken.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:42:26 -06:00
awilliam@xenbuild.aw 9659a82e51 [IA64] linux: grant table hypercall work around
Current xen/ia64 grant table ignores some GNTMAP_xxx flags.
work around for that. This patch will be removed once the flags are supported.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:41:06 -06:00
awilliam@xenbuild.aw 0333b07182 [IA64] linux: remove alloc_empty_foreign_map_page()
alloc_empty_foreign_map_page() in xenia64_init.c isn't used with
CONFIG_XEN_IA64_DOM0_VP enabled.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:40:00 -06:00
awilliam@xenbuild.aw 2f9c65691f [IA64] linux: macro clean up
remove bogus macro usage in asm-ia64/hypercall.h

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:32:08 -06:00
awilliam@xenbuild.aw 27a54181f5 [IA64] linux: xen-mkbuildtree-pre more cleanup
more clean up on ia64 xen-mkbuildtree-pre.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-09 11:29:34 -06:00
awilliam@xenbuild.aw 3d28171950 merge with xen-unstable.hg 2006-05-08 14:46:11 -06:00
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
kaf24@firebug.cl.cam.ac.uk 9fb76f5882 Add module license to xenbus_be, otherwise the module cannot be loaded.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-05-08 14:54:22 +01:00
kaf24@firebug.cl.cam.ac.uk 4a0f8a20b8 Replace a bash-specific substitution with equivalent POSIX /bin/sh
substitutions.  This allows a Xen-patched Linux to build when /bin/sh
is a POSIX shell other than bash.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-05-05 13:51:03 +01:00
kaf24@firebug.cl.cam.ac.uk b7f7d7a8ec Adjust skb->truesize appropriately in netback driver.
When you generate non-linear skb's as netback does, it is up to you
to ensure that truesize reflects the size of paged part of the skb.
Otherwise socket memory accounting in Linux falls apart.

Thanks to the new check that David Miller added to TCP we were able
to catch this bug.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-05-05 13:49:49 +01:00
kaf24@firebug.cl.cam.ac.uk 3b5459241b Fix IA64 transparent-virtualization issue (Xen may not be running).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-05-05 13:46:59 +01:00
cl349@firebug.cl.cam.ac.uk bc1d3194fa Don't try to write to pmd pages, there is no writeable-pmd support.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-05 00:27:10 +01:00
cl349@firebug.cl.cam.ac.uk 44cf443c79 Linux: upgrade to 2.6.16.13.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-04 17:38:25 +01:00
kaf24@firebug.cl.cam.ac.uk 55723b70ac This patch
- moves the TPM frontend completely into the char/tpm directory where it
is a plug-in to the generic TPM driver
- removes a now obsolete include file
- adapts part of the documentation
- fixes some locking problems where copy_to/from_user was called with
IRQs blocked

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-05-04 11:22:19 +01:00
cl349@firebug.cl.cam.ac.uk 79d14c1747 Fix xenbus userspace device transaction tracking.
If a transaction end command fails, the semaphore which keeps track
of whether we're in a transaction or not was not getting updated.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-04 10:25:27 +01:00
kaf24@firebug.cl.cam.ac.uk 3d8b0ffdd4 Introduce some finer-grained locking to prevent calling
copy_from/to_user while preventing interrupts and fix allocation of
memory from within a task and other issues.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-05-03 11:00:57 +01:00
kaf24@firebug.cl.cam.ac.uk 2c76a9ef09 Clean up xen-mkbuildtree-pre for ia64 xenlinux.
Signed-off-by: Dan Magenheimer <dan.magenheimer@hp.com>
2006-05-03 10:59:54 +01:00
kaf24@firebug.cl.cam.ac.uk 65f178cd12 Use native value for SPLIT_PTLOCK_CPUS except on xen/x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-03 10:58:43 +01:00
kaf24@firebug.cl.cam.ac.uk 9a10a080aa Balloon driver should hijack the ->lru list field rather than
adding another list field to every page structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-02 17:23:21 +01:00
kaf24@firebug.cl.cam.ac.uk cba8d491b2 Virtual net drivers advertise multicast capabilities.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-02 15:46:15 +01:00
kaf24@firebug.cl.cam.ac.uk 6a4be408e4 Remove obsolete privcmd_blkmsg struct.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-05-02 09:18:55 +01:00
kaf24@firebug.cl.cam.ac.uk 095470c787 Include string.h in the hypercall header file to ensure that memcpy() is defined.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-01 17:02:43 +01:00
kaf24@firebug.cl.cam.ac.uk 11dfd1c079 The Xen netif drivers won't complile if NET is absent.
Signed-Off-By: Horms <horms@verge.net.au>
2006-05-01 15:30:53 +01:00
kaf24@firebug.cl.cam.ac.uk 1c4f3590d1 Compilation fix on ia64. Include linux/vmalloc.h for struct vm_area.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-01 15:29:38 +01:00
kaf24@firebug.cl.cam.ac.uk 6320cedf16 Compilation fix tpmback.c on ia64. Use pfn_to_mfn instead of
phys_to_machine_mapping.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-01 15:29:08 +01:00
kaf24@firebug.cl.cam.ac.uk 28ba640091 Change semantics of grant transfers for vp guests so that the
operation automatically gets you a fresh page at the same
pseudo-physical address as Keir suggested.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-01 15:28:01 +01:00
kaf24@firebug.cl.cam.ac.uk 8419bc2fd9 Allow architectures to define their own privcmd_mmap() by
introducing HAVE_ARCH_PRIVCMD_MMAP.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-30 09:52:13 +01:00
kaf24@firebug.cl.cam.ac.uk 918c6260b3 Introduce XEN_IA64_DOM0_NON_VP to simplify some ifdefs
from defined(__ia64__) && !defined(CONFIG_XEN_IA64_DOM0_VP)
to defined(XEN_IA64_DOM0_NON_VP).

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-30 09:50:49 +01:00
kaf24@firebug.cl.cam.ac.uk ab105de48f Balloon driver: when in autotranslate mode, pages are returned
to xen without traversing init_mm.
This change is needed for xen/ia64 vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-30 09:47:51 +01:00
kaf24@firebug.cl.cam.ac.uk 88ebde1570 Fix blktap "bad page state" bug.
Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-30 09:39:04 +01:00