Commit Graph
10198 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw 2561ce3fcd [IA64] add missing END(xen_bsw1)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-30 10:30:12 -06:00
awilliam@xenbuild.aw ed5e4da348 [IA64] VTI: Optimize thash vtlb algorithm
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-05-30 10:28:59 -06:00
awilliam@xenbuild.aw 90de273702 [IA64] VTI: simple format cleanup
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-05-30 08:46:21 -06:00
awilliam@xenbuild.aw 7a3587d6e5 merge with xen-unstable.hg 2006-05-26 13:41:49 -06:00
kaf24@firebug.cl.cam.ac.uk c263397874 [PAE] Allow pgdirs above 4GB for paravirt guests.
**NOTE**: This obviates the need for lowmem_emergency_pool.
Unpriv guests no longer need to be able to allocate memory
below 4GB for PAE PDPTs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 17:22:30 +01:00
kaf24@firebug.cl.cam.ac.uk 14602c7ac9 Remove bogus inline asm of unused function memchr().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 13:53:49 +01:00
kaf24@firebug.cl.cam.ac.uk 3afabf1400 Cast to a signed type before negating if we really want the result to be negative.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 13:49:29 +01:00
kaf24@firebug.cl.cam.ac.uk 165bf6f0bd [MINIOS] Allows the use of a C library without modifying Mini-OS source files.
From: John Ramsdell
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-26 13:23:18 +01:00
Ian.Campbell@xensource.com 1fa74a12d2 Move include/asm-x86_64/e820.h to include/asm-x86_64/mach-xen/asm/e820.h
This fixes the native build.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>


--HG--
rename : linux-2.6-xen-sparse/include/asm-x86_64/e820.h => linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/e820.h
2006-05-26 11:23:55 +01:00
ack@kneesa.uk.xensource.com 46ecd27056 New weighted fair-share CPU scheduler w/ automatic SMP load balancing
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-05-26 11:14:36 +01:00
kaf24@firebug.cl.cam.ac.uk 9acd072501 Fix cscope rule in .hgignore. 2006-05-26 09:44:29 +01:00
awilliam@xenbuild.aw dd738619dd [IA64] support FPSWA hypercall
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-05-25 15:59:18 -06:00
kaf24@firebug.cl.cam.ac.uk 7dbca9d720 Remove net_driver_util module. Inline the one mac-parsing function
into the netfront and netback drivers. Take the opportunity to fix
the mac-parsing logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 22:57:44 +01:00
awilliam@xenbuild.aw 4f7a7e6d70 [IA64] support FPSWA emulation
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-05-25 15:47:33 -06:00
awilliam@xenbuild.aw 1fa94ca502 [IA64] remove evtchn_ia64.c
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-05-25 15:38:16 -06:00
kaf24@firebug.cl.cam.ac.uk 22490ab62b [XEND] Wait sufficient time for memory to balloon out before creating a new domain.
On the ES7000 when Dom0 boots up with all of system memory and you try
to bring up a DomU with more than 2GB of memory, xend times out before
the memory is freed causing the domain not to be created. This patch
increases the timeout depending on the amount of memory that needs to be
freed. It also places a cap on the sleep time so that it does not grow
without a limit. This fixes bug# 650

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D650

Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
2006-05-25 21:41:04 +01:00
kaf24@firebug.cl.cam.ac.uk f7040135b3 Allow compat hypercalls to be made via privcmd (to support older userspaces).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-05-25 21:24:47 +01:00
kaf24@firebug.cl.cam.ac.uk d73ed0e9a4 Fix VMEXIT tracing.
Signed-off-by: Bruce Rogers <brogers@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 21:18:55 +01:00
kaf24@firebug.cl.cam.ac.uk 86d5da49a6 [HVM] Support multiple HVM time device models coming soon.
1: Adopt an abstract layer for periodic time on top of different
HV time device models like PIT, RTC and ACPI time.
        2: Extract VMM knowledge from PIT DM code and keep close with
qemu for easy maintain in future.
        3: Use guest time (TSC) to drive PIT CLK that helps us to remove
a lot of extra logic previously introduced to convert from host time to
guest time.
        4: Some cleanup for SMP code like move cache_tsc_offset to per VP.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2006-05-25 16:00:36 +01:00
kaf24@firebug.cl.cam.ac.uk e4813816b2 Fix x86/64 build after previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 16:00:09 +01:00
kaf24@firebug.cl.cam.ac.uk 58407ab286 Remove redundant test in grant-table interface code.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
2006-05-25 15:55:07 +01:00
kaf24@firebug.cl.cam.ac.uk ea1205fb4d Change the x86_emulate() interface to pack all context arguments
into a context structure. This context can then be handed to
callback operations.

Based on an original patch from Mats Petersson <mats.petersson@amd.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 15:52:38 +01:00
kaf24@firebug.cl.cam.ac.uk 1ec81e8864 [BALLOON] Do not allow target to be set below two percent of maximum
memory size.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 14:54:43 +01:00
kaf24@firebug.cl.cam.ac.uk c669499b45 Do not include asm/fixmap.h directly from non-arch-specific Linux files.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
2006-05-25 14:47:23 +01:00
kaf24@firebug.cl.cam.ac.uk 29a0da72ab [XEND] Remember cpu-pinning information across guest restarts.
Signed-off-by: Qing He <qing.he@intel.com>
2006-05-25 14:45:40 +01:00
kaf24@firebug.cl.cam.ac.uk 22c42d4bc0 Fix xc_tbuf.c indentation and stop turning failure to change
trace-buffer size into a fatal error.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 14:42:07 +01:00
kaf24@firebug.cl.cam.ac.uk 3854d519b5 Ensure trace-buffer size is set back to zero if trace buffers can't be allocated.
Signed-off-by: Atsushi Sakai <sakaia@jp.fujitsu.com>
2006-05-25 14:37:55 +01:00
kaf24@firebug.cl.cam.ac.uk 4cebc4c9b2 [NET] front: Use netif_carrier to model backend-connection state.
The tristate backend_state really only needs to be a boolean.  In fact
other virtualisation network drivers such as the s390 already model this
using netif_carrier_*.  So by converting backend_state over to the net
carrier flag we can tap into existing infrastructure rather than creating
new ones.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-05-25 14:29:21 +01:00
kaf24@firebug.cl.cam.ac.uk f7ea0be1ff Separate xenbusstate enumeration from typedef. Avoid using the typedef
in Linux coe as it is consider bad coding style.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-25 14:15:49 +01:00
awilliam@xenbuild.aw 8a73839482 [IA64] fix AFLAGS again
"AFLAGS = -nostdinc $CPPFLAGS" is removed

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2006-05-24 16:44:20 -06:00
cl349@firebug.cl.cam.ac.uk ebdd477d44 Fix IDE CD-drive PIO mode.
CD drives in PIO mode don't work under Xen because of a change in Linux
between 2.6.12 and 2.6.16, as a result of the following thread:
http://lists.parisc-linux.org/pipermail/parisc-linux/2005-August/027197.html

The change breaks systems which have highmem and a swiotlb because the
ide-cd driver doesn't use the swiotlb, resulting in read/writes to/from
highmem pages in PIO mode not working any longer.  Xen kernels usually have
both highmem and a swiotlb.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-05-24 19:41:47 +01:00
awilliam@xenbuild.aw 781a066544 [IA64] acpi read-only mapping
implemented dom0 acpi read-only mapping

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-24 11:04:33 -06:00
awilliam@xenbuild.aw 80597c41d7 [IA64] GNTMAP_readonly support linux part
add read only mapping support.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-24 10:59:28 -06:00
awilliam@xenbuild.aw 4e91ee946f [IA64] GNTMAP_readonly support xen part
add grant table GNTMAP_readonly support.
introduce ASSIGN_readonly flags for read only page assignment to
pseudo physical address space.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-24 10:56:47 -06:00
awilliam@xenbuild.aw 40b2b47c3b [IA64] support DOMID_XEN and DOMID_IO of foreign domain page mapping
support of foreign domain page mapping of DOMID_XEN and DOMID_IO.
This patch is needed for xentrace and xenmon.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-24 10:39:55 -06:00
awilliam@xenbuild.aw c4fabd1b3d [IA64] fix dirty_bit in xenivt.S
fix dirty_bit in linux-2.6-xen-sparse/arch/ia64/xen/xenivt.S
there was itc.d left which wasn't para-virtualized.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-24 09:59:04 -06:00
awilliam@xenbuild.aw d8c905ddd1 [IA64] remove unused audio driver from buildconfigs
There'll be better way to prevent bogus driver to register with
an empty irq line. But for now, disable in buildconfig is easier.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
2006-05-24 08:56:52 -06:00
awilliam@xenbuild.aw f03d4117fd [IA64] swap XEN_HYPER_ITC_D and XEN_HYPER_ITC_I
Signed-off-by Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2006-05-24 08:50:34 -06:00
awilliam@xenbuild.aw 6739448b61 [IA64] Add ptc.l emulation
This patch adds support for ptc.l emulation for xenlinux. 
In 2.6.16 kernel it flush_tlb_range will call global_tlb_purge 
directly, so ptc.l shouldn't be used when CONFIG_SMP enable.
But in order to enhance performance (maybe), 2.6.17 kernel in 
smp environment will do mm check first. If mm is current->active_mm 
and the mm (corresponding process) just runs on the local processor, 
kernel only needs to do ptc.l at local processor instead of global purge. 
So ptc.l emulation is necessary for 2.6.17 kernel.
 
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
2006-05-24 08:48:21 -06:00
kaf24@firebug.cl.cam.ac.uk f12403a5ea Remove unnecessary x86-specific mapping code from privcmd interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-24 14:49:24 +01:00
kaf24@firebug.cl.cam.ac.uk 1ac7d8afca [XENSTORE] Make use of /proc/xen/xsd_{port,kva} private to the Linux implementation.
Signed-off-by: John Levon <john.levon@sun.com>
2006-05-24 14:24:57 +01:00
kaf24@firebug.cl.cam.ac.uk 04f28b0fc7 [PTRACE] Fix ptrace for hvm guests.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2006-05-24 14:12:40 +01:00
kaf24@firebug.cl.cam.ac.uk 300fe48878 Event-channel driver: Use for_each_possible_cpu instead
of for_each_cpu , or statically initialize data when possible.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 12:01:25 +01:00
kaf24@firebug.cl.cam.ac.uk 56d1a3fa40 Fix kcons_write and kcons_write_dom0 CodingStyle.
Use roundup_pow_of_two().

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 11:57:37 +01:00
kaf24@firebug.cl.cam.ac.uk 9c62f76963 Use DEFINE_SPINLOCK in Linux drivers, conforming to coding style.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2006-05-24 11:56:40 +01:00
kaf24@firebug.cl.cam.ac.uk c05b1e9f6f Remove broken inline-asm string functions from Xen/x86. The
generic implementations in string.c are quite sufficient.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-05-24 11:52:25 +01:00
awilliam@xenbuild.aw bc77a64b00 [IA64] work around ENOSYS vs EINVAL in ioremap
We should not panic the domain for an EINVAL return from the ioremap
hyerpcall.  This was only meant for ENOSYS.  Long term this is probably
not the best place for this kind of sanity checking.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-05-23 17:05:27 -06:00
awilliam@xenbuild.aw 37e787619e [IA64] Add -rc support to sparse-merge
Signed-off-by: Aron Griffis <aron@hp.com>
2006-05-23 15:10:27 -06:00
awilliam@xenbuild.aw d4a9e3daf9 [IA64] make xenLinux/ia64 privcmd mmap not to use dom0 memory
xenLinux/ia64 privcmd mmap uses pseudo physical address space.
it used alloc_pages() to allocate the space.
It wastes dom0 memory and sometimes several hundreds megabytes is
allocated depending on domU memory size.
With this patch xenLinux/ia64 trys to find the region which can be
used safely and uses the reasion.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-05-23 15:09:21 -06:00
emellor@leeni.uk.xensource.com e73effa056 Allow a guest to determine its VM UUID.
Use xenstore-read $(xenstore-read vm)/uuid.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-05-23 16:23:10 +01:00