Commit Graph
13373 Commits
Author SHA1 Message Date
awilliam@xenbuild2.aw e24fb235e0 [IA64] Fix save/restore
Using the new hypercall path, scratch registers are not saved/restored.

So after returning from hypercall, r20 may contain garbage data.
This triggered General Exception.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-01-14 22:18:38 -07:00
awilliam@xenbuild2.aw 67ce0b5900 [IA64] Fix multicall hypercall
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-01-14 14:58:51 -07:00
awilliam@xenbuild2.aw e6f3ffe5a0 [IA64] Implement hyper_get_psr
Mov from psr is used frequently by xeno.

Signed-of-by: Anthony Xu <anthony.xu@intel.com>
2007-01-12 13:01:25 -07:00
awilliam@xenbuild2.aw 81e756d415 [IA64] Fix xencomm_arch_hypercall_suspend
This hypercall is changed to new hypercall mechanism

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-01-12 12:56:20 -07:00
awilliam@xenbuild2.aw ee74bcacd5 [IA64] Simplify lazy cover algorithm
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-01-12 12:11:11 -07:00
awilliam@xenbuild2.aw 68fa1896bb [IA64] Hypercall optimizations
provide hypercall the same path with system
most of scrach registers don't need to be saved/restored
it is good for performance

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-01-11 16:56:58 -07:00
awilliam@xenbuild2.aw 7fbbbf9e71 [IA64] merge increment_iip
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-01-11 14:42:24 -07:00
awilliam@xenbuild2.aw 2293be461e [IA64] Can't inject event, when guest is executing rfi
Can't inject event, when guest is executing rfi, and both
both PSCB(v, ifs) and regs->ifs are valid

It's very rare case, but I did catch it.
It caused domain0 crash

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2007-01-11 14:27:39 -07:00
awilliam@xenbuild2.aw 714d43d8e1 [IA64] Use original itir when inserting into the single-entry TLB
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-11/msg00349.html

The real VHPT insertion is done based on the machine PTE returned from
translate_domain_pte, which does the appropriate offset calculations.

However, the insertion into the one-entry TLB uses the original PTE, but
the page size has been reset to PAGE_SIZE [1].  Thus the entry in the
one-entry TLB incorrectly maps the PAGE_SIZE sub-page which was faulted
on to the PAGE_SIZE sub-page at the bottom of the superpage.

I think it makes most sense to simply use the original itir when
inserting into the single-entry TLB, as per attached patch.  I've moved
the vcpu_set_tr_entry calls up a level into vcpu_itc_d and vcpu_itc_i;
the third caller previously used the 4 flag to specify "don't do that".

[1] In fact, this is enforced twice, once in translate_domain_pte and
again in vcpu_itc_no_srlz.

Signed-off-by: Matthew Chapman <matthewc@cse.unsw.edu.au>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-01-12 12:52:54 -07:00
awilliam@xenbuild2.aw 5d5be531d0 [IA64] Make crash command happy
As Dave requested, call unw_init_running() and save ksp before SHUTDOWN_crash.

Signed-off-by: Dave Anderson <anderson@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-01-12 12:14:05 -07:00
awilliam@xenbuild2.aw 00fd199235 [IA64] Resolve a race in tlb_track_search_and_remove()
When tlb_track_search_and_remove() is about to remove a found entry,
another cpu might update p2m entry and insert the entry right before that.
It must be aware of it.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-01-12 12:03:38 -07:00
awilliam@xenbuild2.aw 99954e535e [IA64] fix domain_flush_vtlb_all()
It might called by another domain's vcpu.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-01-11 17:03:25 -07:00
awilliam@xenbuild2.aw 14ab6103b5 [IA64] Clean up build warnings
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-01-10 10:37:41 -07:00
awilliam@xenbuild2.aw b6ddced321 [IA64] Move cmdline.c to linux-xen
Need to clean up some build warnings.  Probably should have been moved
last time it was modified.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-01-10 10:35:24 -07:00
awilliam@xenbuild2.aw 1fb39fdef3 [IA64] Add empty nmi.h
Necessary to build

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-01-10 08:48:50 -07:00
awilliam@xenbuild2.aw 175ff0db64 [IA64] Remove bogus linux/kernel.h include
This seems to be an extraneous include and causes problems when
pulled into asm files.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-01-10 08:47:36 -07:00
awilliam@xenbuild2.aw a77c31c882 merge with xen-unstable.hg 2007-01-10 08:40:47 -07:00
awilliam@xenbuild2.aw 6ed3af384f [IA64] Clean up VTi memory initialization logic
This patch makes the logic in setup_guest() more clear.
domain_translate_gpfn_list() is now gone, so we can make
memory initializtion code simple.
Xend passes memory size which is a sum of normal memory
size and GFW memory to QEMU and Libxc. This patch fixes
this issue.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
2007-01-10 08:00:50 -07:00
kfraser@localhost.localdomain 5fc32d22f2 [XEN] Remove bogus BUG_ON() which breaks the build with gcc 4.2.0.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-10 11:09:21 +00:00
Ian Campbell ca00403ece [PATCH] kexec/kdump: remove unnecessary incusion of asm/fixmap.h
I think this a legacy of an older revision of this code,
but asm/fixmap.h does not seem to be needed in
asm-x86/x86_32/kexec.h or asm-x86/x86_64/kexec.h

That is, neither of these incarntations of kexec.h seem
to do anything related to fixmap directly or indirectly.

Signed-off-by: Simon Horman <horms@verge.net.au>
2007-01-10 09:39:24 +00:00
Ian Campbell 0257938d11 [LINUX] Clarify comment in xen_machine_kexec_setup_resources().
Noticed by Horms.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-10 09:39:24 +00:00
kfraser@localhost.localdomain 9bec2359e6 [HVM] Ignore evtchn_upcall_mask and initialise to zero.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 17:43:13 +00:00
Ewan Mellor e3e7d81e41 Update sched-credit test to match new format from xm sched-credit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-09 17:38:48 +00:00
Ewan Mellor 00e5248813 This simple patch allows domains created in the xm-test suite to be
created as managed domains using either a parameter to the
XenTestDomain() constructor or by setting the environment variable
XM_MANAGED_DOMAINS and running the tests with it.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-09 17:25:28 +00:00
Ewan Mellor e4658203b4 Add needed modules to the ramdisk if the modules exist on the current system.
(i.e. the current system contains a modularized kernel)

Signed-off-by: Lynn Bendixsen <lbendixs@novell.com>
2007-01-09 17:23:22 +00:00
Ian Campbell 319107a11b merge 2007-01-09 17:17:05 +00:00
Ian Campbell 0ae7229c66 [XEN] Kexec: Make some variables static.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-09 17:15:29 +00:00
Ian Campbell 123e738ef2 [XEN] Kexec: Clean up ELF note construction to avoid multiply nested
struct/unions and the packed keyword.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-09 17:15:28 +00:00
Ian Campbell b0a47bd080 [LINUX] Kexec: Don't try to load an NULL image. This can occur when unloading.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-09 17:14:28 +00:00
kfraser@localhost.localdomain e0fd6020bc [TEST] Fix x86_emulate tests on x86/64 host.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 17:11:46 +00:00
kfraser@localhost.localdomain c9d971bec6 [XEN] Emulate DAA/DAS the hard way. We cannot execute the instruction
directly within the emulator as it is unavailable if the emulator runs
in x86/64 mode.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 16:59:52 +00:00
Tim Deegan 0137f2b67b [HVM] Remove unnecessary write barriers
Using a volatile pointer saves us from the compier reordering these
writes, and the processor won't let them appear out of order.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-09 16:49:16 +00:00
Tim Deegan db442369b3 When booting via xm, only run the bootloader if it's in non-interactive mode:
otherwise we lose the user's named kernel and try to bootload the temporary
file pygrub returned.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:45 +00:00
Tim Deegan 38d6397a83 Fix xm create direct call to XendBootloader
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:44 +00:00
Tim Deegan eb568d6624 Fix bootloader = "pygrub" via 'xm create'.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:43 +00:00
Tim Deegan 662e32f5cc Fix auto-bootloading via 'xm create'.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:42 +00:00
Tim Deegan 9c9e43e5f0 Sniff for Solaris if not specified. This allows Solaris domU's to automatically
boot correctly without fiddling with domain configs.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:41 +00:00
Tim Deegan 8c119d2ee4 Pass in kernel/ramdisk settings to pygrub; if specified, don't try to use
grub.conf; this allows hands-off bootloading in the absence of a grub.conf.
It's also useful for specifying temporary changes etc.

Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:40 +00:00
Tim Deegan b624e752bd Fix for pygrub path on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
2007-01-09 13:24:40 +00:00
kfraser@localhost.localdomain 3b59eb2941 [XEN] Fill in some more opcode space in the emulator.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-09 12:04:41 +00:00
Ewan Mellor 2166b8b539 Do not call refreshShutdown in XendDomain for VM-list operations, as this
is unnecessary and expensive.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-09 11:52:15 +00:00
Tim Deegan a25c73ef38 [HVM] Fix shadow memory tracking
Fixes a missing free from cset 13275, and a missing prealloc.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-01-09 10:50:46 +00:00
kfraser@localhost.localdomain ddef8e1678 [XEN] Tweak x86 emulator interface.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-08 18:39:29 +00:00
Christian Limpach 58a6d83e7d [linux build] Append $XENGUEST to kernel version.
This was lost in changeset 13286:c89384734c19.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-01-08 17:38:47 +00:00
Ian Campbell 82048fc441 [XEN] Fix MAP target.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-01-08 16:27:35 +00:00
kfraser@localhost.localdomain e1e7201267 [XEN] Emulate relative near/short jumps, including Jcc.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-01-08 15:52:53 +00:00
kfraser@localhost.localdomain af66a38b25 merge 2007-01-08 14:26:57 +00:00
kfraser@localhost.localdomain a6004eb295 Fix signedness issue in private implementation of memmem().
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-01-08 14:25:28 +00:00
Tim Deegan 696205b830 Merge 2007-01-08 14:25:14 +00:00
kfraser@localhost.localdomain ad7e6bfecb Update .hgignore 2007-01-08 14:24:42 +00:00