Commit Graph
9691 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw ed6ccffbeb [IA64] Remove unused variables. init_mm and swapper_pg_dir.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2006-04-17 08:46:52 -06:00
awilliam@xenbuild.aw de32c22ad3 [IA64] Add support for discontiguous physical memory.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
2006-04-17 08:46:04 -06:00
awilliam@xenbuild.aw 33ccc02de9 [IA64] fix a mmio bug
Fix a bug in mmio emulation

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-14 14:24:09 -06:00
awilliam@xenbuild.aw b351f0bb27 [IA64] vmx_vcpu_set_rr: check rid validity
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-14 14:21:54 -06:00
awilliam@xenbuild.aw 1ea9b79e0f [IA64] get rid of sync_split_cache
Get rid of sync_split_cache.
Use flush_icache_range and ia64_fc instead.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-14 14:20:04 -06:00
awilliam@xenbuild.aw d1002a5a81 [IA64] regionreg.c: deallocate metaphysical rids
allocate_rid_range also allocates metaphysical rids.
deallocate_rid_range also deallocates mp rids.
init_rid_allocator() added.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-14 14:13:13 -06:00
awilliam@xenbuild.aw 7e6de70ed5 [IA64] VM_SUMMARY and VM_INFO
xen_pal_emulator: implements VM_SUMMARY and VM_INFO.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-13 14:57:13 -06:00
awilliam@xenbuild.aw 5687e1b67f [IA64] dtlb_miss: allow non-access and lfetch inside Xen.
Allow non-access and lfetch dtlb miss inside Xen vmm.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-13 14:52:07 -06:00
awilliam@xenbuild.aw 28967b51f5 [IA64] VTi: vtlb_insert: call panic_domain instead of panic
vtlb_insert: call panic_domain instead of panic if vrr.ps mismatch itir.ps.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-13 14:48:09 -06:00
awilliam@xenbuild.aw a4b5cad034 [IA64] panic_domain should only crash the domain
Don't crash Xen in case of panic_domain.  Simply crash the domain.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-13 14:44:39 -06:00
awilliam@xenbuild.aw c6a312c4ff [IA64] vmx_ia64_handle_break
vmx_ia64_handle_break: do hypercall only when cpl = 0.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-13 14:42:43 -06:00
awilliam@xenbuild.aw 2cadc024f4 [IA64] VTi: add pseudo support of long format VHPT
Pseudo support of VHPT long format.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-13 14:08:30 -06:00
awilliam@xenbuild.aw dc115bce14 [IA64] bug fix in vmx_ivt
Reflect general exception.
break 0 is now handled by vmx_ia64_handle_break.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-13 13:46:50 -06:00
awilliam@xenbuild.aw 7c717f9751 [IA64] remove printk warning of xen_init
remove printk warning of xen_init

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-13 13:41:59 -06:00
awilliam@xenbuild.aw 2b529f7b7c [IA64] call setup_xen_feature()
add setup_xen_features() call to setup_arch() in xenLinux/ia64
Now features.c is compiled into xenLinux/ia64 for xen_feature(),
but it is not initialized.
xenLinux/x86 calls xetup_xen_features() from setup_arch().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-13 13:40:31 -06:00
awilliam@xenbuild.aw b4fa7c40e9 merge with xen-unstable.hg 2006-04-11 18:54:18 -06:00
awilliam@xenbuild.aw b07c9b7ee9 [IA64] Makefile fix for xenirq.c removal
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-04-11 13:55:47 -06:00
awilliam@xenbuild.aw 296a214ade [IA64] Remove xenirq.c.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2006-04-11 13:55:40 -06:00
awilliam@xenbuild.aw bf9a07ed10 [IA64] Cleanup to irq.c
This patch is a big cleanup to irq.c, with only real
necessary interfaces kept now. The irq subsystem of
xen is very simple since most external devices are
controlled by dom0. Also especially there's no need
to keep CONFIG_XEN everywhere, since this file is
already out of sync of linux version for a long time.
Actually xen defines irq related structures differently
and it's worthy of creating a xen specific version here.

Another change of this patch is to remove ugly check
upon timer/ipi within irq handler. Instead now we'll
check IRQ_GUEST flag of irq_desc to decide whether
to deliver irq to guest. Now all vectors un-registered
are set with IRQ_GUEST enabled, which is identical to
current assumption. Later this flag should be set only
per guest's request. Then Xen_do_irq is not reuqired
as the result of this change.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2006-04-11 13:55:36 -06:00
awilliam@xenbuild.aw 7b6dc16798 [IA64] warning fix
Fixed some compilation warnings

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-11 13:54:58 -06:00
emellor@leeni.uk.xensource.com 631caafe95 Merged. 2006-04-11 12:51:48 +01:00
emellor@leeni.uk.xensource.com 0dc4b1f301 Fix KERNELS example, mkinitrd example.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-11 12:46:39 +01:00
kaf24@firebug.cl.cam.ac.uk 4878a87b44 The maximum instruction length for both x86-32 and
x86-64 is 15 bytes (including all prefixes, opcode,
ModRM, SIB, displacement, and immediate bytes).
This patch adjusts the MAX_INST_LEN to the correct
value.  This should reduce the size of some variables
in the hypervisor code.  This patch also does some
minor code clean-up in the vm exit handler for VMX.

Signed-off-by: Khoa Huynh <khoa@us.ibm.com>
2006-04-11 10:44:07 +01:00
kaf24@firebug.cl.cam.ac.uk f65a2c89be When running test 5 in Memtest86+ v1.65, I got a "this opcode is not
supported", so I decided to add it. It's a compare operation, and it's
just the opposite of the already supported one (opcode 0x39), so it's
nothing spectacular. Why there's a page-fault when this instruction gets
executed, I haven't got a clue, but I have a feeling that Memtest86 is
doing something wrong :-( However, this fix may help some other code to
run too...

With this, Test 5 passes all the way through without crashing. I did see
some occassional memory errors in some other tests, and I'm not 100%
sure whether those are caused by the system or they are "real" memory
errors. At some time in the future I may get round to memory testing my
target system...

Signed off by: Mats Petersson (mats.petersson@amd.com).=20
2006-04-11 10:41:08 +01:00
kaf24@firebug.cl.cam.ac.uk 89bbff5329 Make event_pending() architecture-specific.
PowerPC needs this because the domain can directly modify the hardware's
"interrupts enabled" bit, and we don't want to patch Linux to replace
all those accesses to use evtchn_upcall_mask instead.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-04-11 10:40:03 +01:00
kaf24@firebug.cl.cam.ac.uk 5c0356ec6f Remove some bogus .PHONY Makefile declarations.
Fixes xentop installation.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-11 09:58:04 +01:00
awilliam@xenbuild.aw 80dbec3f0e [IA64] get_pfn_list workaround
As we know, the mechanism for hypervisor to pass parameter through pointer
is not complete. Hypervisor use copy_from/to_user functions to copy parameter
to hypervisor and copy result to user, if there is a tlb miss happening and 
hypervisor can't handled this. This hypercall fails, there is no mechanism to 
handle this failure, that may cause domain crash. Get_pfn_list hypercall copy
large data from hypervisor to user, it is easy to trigger this issue when 
creating VTI-domain.

If fails, Get_pfn_list returns the number of pfn entries, and this patch will 
Dummy access parameter memory block to cause this tlb mapping tracked by 
Hypervisor, then continue to do get_pfn_list.

It's a workaround before we design a new mechanism of passing parameter thr
pointer.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-10 15:13:42 -06:00
awilliam@xenbuild.aw 66a41f0160 [IA64] access reflect fix
Before injecting fault to guest, VMM need to setup
guest itir by using guest region register.
But the lowest two bits of itir are reserved. VMM need
to reset these two bits.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-04-10 14:54:35 -06:00
awilliam@xenbuild.aw f149579d02 [IA64] ptc.ga for SMP-g
Implementation of ptc.ga for SMP-g.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-04-10 14:51:38 -06:00
kaf24@firebug.cl.cam.ac.uk 72344c0921 Netfront must switch state using xenbus_switch_state() or this
is not picked up by the waiting code in xenbus_probe.c.

Also clean up the waiting code a little.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 18:56:34 +01:00
kaf24@firebug.cl.cam.ac.uk 6c33dc4782 Add a new config option for all backend drivers. This has two benefits:
1. All backend drivers can be disabled or modularised via
    one config option.
 2. Backend helper routines that are not specific to any particular driver
    can be disabled or modularised based on this config option. In
    particular this may allow backend drivers plus the service module
    to be upgraded separate from the kernel core as and when the backend
    interfaces change (and they will).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 18:30:07 +01:00
emellor@leeni.uk.xensource.com 633b60f9c8 Merged. 2006-04-10 18:18:03 +01:00
emellor@leeni.uk.xensource.com 45fe4ec419 Fix the test inside all_devices_ready, and move it from xenbus_probe (a
postcore_initcall) to a new late_initcall, so that it happens after the
drivers have initialised.

Fixes the reopened bug #549 (I hope).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-10 18:17:54 +01:00
kaf24@firebug.cl.cam.ac.uk 7ddc2369b2 Fail the build if NR_hypercalls is not a power of two.
Making this requirement clearer originally suggested by
Muli Ben Yehuda.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 17:32:30 +01:00
kaf24@firebug.cl.cam.ac.uk 201c3aa978 Fix a couple of typos.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 17:28:02 +01:00
kaf24@firebug.cl.cam.ac.uk 4f32cad22c Fix push/pop usage in tools/ioemu for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 17:25:42 +01:00
kaf24@firebug.cl.cam.ac.uk 73004d34e4 If the 'cdrom=' option is specified in the definition file but media is
not found in the CD drive then main() in vl.c exits and the guest appears 
to hang.  This patch modifies vl.c slightly to check for the presents of 
media.  If the cdrom cannot be opened then the cd entry is removed from 
hd_filename[] and bs_table[] allowing the guest to continue initializing. 
If the guest requires the CD media then the guest should report, gracefully
or otherwise, that it's missing.

From: Ross Maxfield <rmaxfiel@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 17:16:25 +01:00
kaf24@firebug.cl.cam.ac.uk b5fa90ac8e build: Clean up use of .PHONY
* Move .PHONY directives next to targets,
  this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 17:02:49 +01:00
kaf24@firebug.cl.cam.ac.uk 0198288b1f build: Clean pygrub's a.out
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Horms <horms@valinux.co.jp>
2006-04-10 16:36:38 +01:00
emellor@leeni.uk.xensource.com 224cab0dfd Merged. 2006-04-10 16:36:03 +01:00
kaf24@firebug.cl.cam.ac.uk 9ffd98fa29 build: Document the use of XEN_PYTHON_NATIVE_INSTALL
Document the use of the XEN_PYTHON_NATIVE_INSTALL environment variable

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:35:30 +01:00
kaf24@firebug.cl.cam.ac.uk f2bc7f9402 build: clean up output of make help a little bit
Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:34:59 +01:00
kaf24@firebug.cl.cam.ac.uk 4886bb64c1 build: Make sure that DESTDIR is set
In the case where XEN_PYTHON_NATIVE_INSTALL is in effect,
if DESTDIR is not set then the install will go into a relative
directory rather than under the default prefix (usually /usr).

An alternate solution would be to update the fragments
that do the python install to use $(DESTDIR)/ instead of
$(DESTDIR). This is not an incredible burden as there
are only two such fragments in the tree. However, it
seems prone to error as new makefiles are created
in the future.

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:31:53 +01:00
emellor@leeni.uk.xensource.com 02e0e0d9bb Initialise offsetopt when offset == 0. Closes bug #599.
Report and diagnosis by Robert Hendrickx <robert.hendrickx@advalvas.be>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-10 16:28:52 +01:00
kaf24@firebug.cl.cam.ac.uk 2a9a3c3116 build: Remove iptables and python loging helper targets
These targets don't really fit into the build infastructure,
for instance there is no faclilty for them to be removed
on make distclean. I posted a patch that fleshed out the targets,
but Christian Limpach suggested to me that removing them
would be a better idea.

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:27:46 +01:00
kaf24@firebug.cl.cam.ac.uk 312aae5cfc Remove unused netbsd build fragments.
Signed-Off-By: Homrs <horms@verge.net.au>
2006-04-10 16:26:52 +01:00
emellor@leeni.uk.xensource.com 913843e16b Fix call to server, using new XendClient syntax.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-10 16:26:23 +01:00
emellor@leeni.uk.xensource.com a03c61b2f7 Updated to reflect new KERNELS defaults, and properly describe make install and
make dist.
2006-04-10 16:21:44 +01:00
vhanquez@kneesa.uk.xensource.com cfca4d6941 fix bug #609 - error: PIC register bx' clobbered in asm'
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-04-10 14:51:10 +00:00
emellor@leeni.uk.xensource.com 9a74026a08 I used the wrong operator in a couple places for putting together some
error messages out of format strings. This patch corrects those
operators and fixes the strings.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-04-10 14:47:51 +01:00