Commit Graph
14279 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 63fb267ebd xen: Replace stupid page_alloc fix.
I broke the 'correct' fix when I copied it out of an email. The
actual correct version, with an extra +1 in the for-loop header is
rather abusive of for loops, so I've changed it now to a do-while loop
and an extra comment so I don't screw up this backwards loop ever
again.

This version does actually boot. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 11:17:03 +00:00
kfraser@localhost.localdomain 0cb97f4d8b dump-core: always use elfclass64 format to support x86_32pae.
Without this patch xen dump-core format can't handle over 4GB case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-03-07 10:53:34 +00:00
kfraser@localhost.localdomain 9de4f0c67d tools: Clean up use of 'install' command.
- convert raw "install" command to use $(INSTALL)
- convert some $(INSTALL) to $(INSTALL_DATA) as appropriate
- modify the specific $(INSTALL) definitions to use -p.

Original patch by Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 10:49:20 +00:00
kfraser@localhost.localdomain d4ac34aff9 ioemu: Remove use of 'echo -c' in script.
I've no idea what it does, and it doesn't appear to be valid on some
systems.  Use a more generic approach.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
2007-03-07 10:37:05 +00:00
kfraser@localhost.localdomain bca5f6d829 linux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
allowed and the functions are marked __init on x86/64.
Use HYPERVISOR_update_va_mapping() directly instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 10:13:39 +00:00
kfraser@localhost.localdomain 786ad1ffaa A correct fix for page_alloc crash when Xen heap empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 09:43:36 +00:00
kfraser@localhost.localdomain ffb7e747bc ioemu: Close file descriptors when forking processes.
Just leave stdin/stdout/stderr (and possibly tap fd) open.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-03-06 16:51:42 +00:00
kfraser@localhost.localdomain ca7a6b3eb2 Make Python tools (i.e., xend and pygrub) conditionally compiled.
Config option is PYTHON_TOOLS, default is 'y'.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
2007-03-06 16:46:20 +00:00
Tim Deegan 392a8c76b8 [XEN] Shadow: ignore shadow operations on dying domains
so that they don't get confused by the way that shadow_teardown()
leaves some of the mode bits set after releasing the shadow resources.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-06 15:02:20 +00:00
kfraser@localhost.localdomain 40ff940abf linux x86/64: No need to pre-allocate all fixmap pagetables:
just those for bt_ioremap().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-06 13:41:05 +00:00
kfraser@localhost.localdomain 88d253f238 xend: more flexibility in gathering data from /proc/cpuinfo
Add ia64 mapping for cpuinfo data and make the case where #vcpu !=
#pcpu more flexible (don't rely on cpu0 existing).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-03-06 11:53:37 +00:00
Travis Betak 6f23098005 [SVM] Clear VMCB's EFER.LME when guest disables paging
Since the guest's CR0.PG is always set (in shadow paging), EFER.LME must
be cleared along with EFER.LMA when the guest is disabling paging.

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:22:21 -06:00
Travis Betak 7f2e199b7b [SVM] Use svm_long_mode_enabled() when checking if guest is in long mode
This patch fixes the inconsistent method of checking if the guest is in
long mode (EFER.LMA == 1).

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:21:50 -06:00
Travis Betak 70c72cc7b5 [SVM] Cleanup guest writes to EFER 2007-03-05 16:21:11 -06:00
Travis Betak f12219735e [SVM] Return the shadow EFER value on guest EFER reads.
Return the shadow of the guest's EFER instead of the VMCB.  This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:18:10 -06:00
Travis Betak 8ec3367eb1 [SVM] Remove SVM cpu_state and add EFER shadow to svm structure.
The SVM cpu state was being used inconsistently and, besides, it makes
more sense to instead rely on the guest's shadow registers to determine
the current guest state.

Signed-off-by: Travis Betak <travis.betak@amd.com>
2007-03-05 16:17:25 -06:00
Christian Limpach 85afb99cda [tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-05 22:42:13 +00:00
Christian Limpach b4dd69c689 [tools] Use auxbin.py to determine libpath at build time.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-05 19:22:21 +00:00
kfraser@localhost.localdomain 6ad77059f1 Install pygrub according to auxbin rules.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 19:01:19 +00:00
kfraser@localhost.localdomain d7ee1f5383 Move ptsname module under tools/python.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 18:54:26 +00:00
kfraser@localhost.localdomain fb4f0a0421 linux x86/64: Clean up mm initialisation a little.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 18:10:41 +00:00
Christian Limpach 98b8fba136 [tools] Use auxbin.py to determine libpath at build time.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-05 16:43:12 +00:00
kfraser@localhost.localdomain 93a0e490f2 linux: no pc speaker device in domUs
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 15:53:18 +00:00
kfraser@localhost.localdomain 74bca0b6e8 linux: scan DMI early
While shuffling quite a few things around, this gets us closer to
native, which clearly had a reason to do the DMI scan early.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 15:46:33 +00:00
kfraser@localhost.localdomain 2e4ef0d6fd linux/x86-64 2.6.18: reserve bootmem differently
Do init memory reservation in a single step rather then piece-wise.
This is not really addressing a problem, but simplifies things a
little.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 15:08:17 +00:00
kfraser@localhost.localdomain bba72daaae linux/x86-64 2.6.18: do away with pud_offset_k()
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 15:06:13 +00:00
kfraser@localhost.localdomain 744703ccb7 linux/x86_64 2.6.18: remove orig_ist
orig_ist is bound to presence of a TSS, hence is meaningless on Xen
kernels.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 15:04:28 +00:00
kfraser@localhost.localdomain c8b9c6c182 Fix crash in heap allocator when Xen 'zone' is empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 14:39:03 +00:00
kfraser@localhost.localdomain 63d7a82fae linux: Prefer testing io_bitmap_ptr to the TIF_IO_BITMAP.
Former is safer (in case TIF_IO_BITMAP is out-of-sync with actual
existence of an I/O bitmap for this process) and more readable, and
probably results in faster code too.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 14:20:26 +00:00
kfraser@localhost.localdomain 91d86d5e62 linux: Remove unnecessary locking from pcifront free_root_bus_devs().
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 14:09:19 +00:00
Ian Campbell 62c679ef7f [LINUX] CONFIG_X86_TSC is defined upstream in arch/i386/Kconfig.cpu so use that
instead of duplicating it in arch/i386/Kconfig.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-03-05 14:04:45 +00:00
kfraser@localhost.localdomain 3660aa4b7b linux 2.6.18: constify instances of 'struct file_operations'
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 14:00:05 +00:00
kfraser@localhost.localdomain 12b8d19b31 linux 2.6.18: miscellaneous
Various minor changes not fitting elsewhere and not warranting
separate patches.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:57:11 +00:00
kfraser@localhost.localdomain cd93260c63 linux 2.6.18: assembly annotations
This adds (or moves to the proper place) annotations paralleling those
added in native code in 2.6.18. To make this look less ugly, it
required moving around a few things.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:49:11 +00:00
kfraser@localhost.localdomain efebe9a73e linux 2.6.18: eliminate Xen special: x8664_ksyms.c
The differences of arch/x86_64/kernel/x8664_ksyms-xen.c over its
native original are benign - the Xen special can therefore be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:33:42 +00:00
kfraser@localhost.localdomain e1bfccbe5a linux 2.6.18: eliminate Xen special: alternative.c
The sole (x86-64 specific) difference of
arch/i386/kernel/alternative-xen.c
over its native original can be eliminated by slightly adjusting
x86-64's make_readonly(), and the Xen special can then be removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:32:50 +00:00
kfraser@localhost.localdomain 4d660bb597 linux 2.6.18: eliminate Xen special: intel_cacheinfo.c
arch/i386/kernel/cpu/intel_cacheinfo-xen.c is identical to
arch/i386/kernel/cpu/intel_cacheinfo.c, hence the Xen special can be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:30:52 +00:00
kfraser@localhost.localdomain 546bba8ad5 linux/x86-64: allow kernel init memory to be freed.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-05 13:27:51 +00:00
kfraser@localhost.localdomain b3abd36a51 VM.actions_after_[shutdown|reboot|suspend|crash] were not set properly
in VM record returned via Xen API.
This patch fixes typos in key name for these fields.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-03-05 13:18:28 +00:00
Tim Deegan 1ad3803046 [XEN] Shadow: fix predicate for when to use up-pointers
which was broken by the introduction of "pinnable" types
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-05 11:54:55 +00:00
kfraser@localhost.localdomain 4dea0800d7 xen: Remove bogus file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 11:23:34 +00:00
kfraser@localhost.localdomain 28de4c4148 Merge with xenppc-unstable.hg 2007-03-05 11:18:55 +00:00
Christian Limpach 1111378ea3 [xen] Fix deferred mmu op logic on invalidate shadow ldt.
On domain destroy, put_page_from_l1e is called on a domain
which is not current.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-05 11:17:52 +00:00
kfraser@localhost.localdomain 4df0bbfe89 Merge with xenppc-unstable.hg 2007-03-05 11:14:15 +00:00
kfraser@localhost.localdomain 49064b3101 xen: Make dom0 domain builder behaviour match that of domU.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 10:52:54 +00:00
kfraser@localhost.localdomain 4f636f3065 xen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 10:37:01 +00:00
kfraser@localhost.localdomain 738c5625ac linux: Clean up mm_pin/unpin.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-05 10:26:45 +00:00
Christian Limpach 87832ae661 [domain builder] Remove unnecessary alignment of virtual address base.
Unbreaks loading NetBSD kernels with the new ^^ domain builder.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-03 20:42:38 +00:00
Keir Fraser 3a65ca09cd linux: Some save/restore simplifications and cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 23:01:36 +00:00
Keir Fraser 0ada151b05 x86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-02 22:57:27 +00:00