Commit Graph
14297 Commits
Author SHA1 Message Date
Hollis Blanchard ba5aedc193 [LIBXC] Allocate memory and populate p2m in arch-specific code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 06aaae8408 [LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard b09b06b6de [POWERPC][XEN] Fix "xc_core" build break. Untested but might work.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 0a27cae221 [POWERPC][XEN] Implement arch_get_xen_caps().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 4b770b7bed [POWERPC][XEN] Use correct register set in dump_execution_state().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 79bbad27d3 [POWERPC][XEN] Quiet timebase synchronization at boot.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard 48fd46e71f [POWERPC][XEN] Clear the RMA flag on freed pages.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-21 17:02:59 -05:00
Hollis Blanchard c08ced9ac1 [POWERPC][XEN] Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-03-08 14:39:52 -06:00
kfraser@localhost.localdomain e653a8058e xen: Provide notification of console updates via VIRQ.
The readconsolering capabilities provide the opportunity to
provide console output to other clients (remote systems,
logging systems, etc). This patchs adds the ability to generate
a notification of a change in the console buffer.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-08 15:21:10 +00:00
kfraser@localhost.localdomain c53fa753e2 xend: Platform feature 'multiprocessor suspend' is x86-only for now.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-08 14:57:33 +00:00
Tim Deegan f534f3a9c3 [HVM] Save/restore: back-port IDE controller save routine from current qemu.
Also, send an interrupt and an error code to the guest on restore if we
dropped an active request when we saved.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-08 14:37:21 +00:00
kfraser@localhost.localdomain dc4db635cb xen: Clean up heap allocator.
Move some common free/alloc code into core heap-allocator
functions. Make it clear that alloc/free can only ever be done outside
hardirq context (previously it was unsafe: could deadlock on heap_lock).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-08 14:29:09 +00:00
Tim Deegan c2a571ee1e [HVM] Add support for hardware-assisted paging
as the second implementation of the generic paging-assistance interface.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
2007-03-08 10:54:56 +00:00
kfraser@localhost.localdomain 757f568bbf linux: Restore time on APs if they are not hotplugged on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:21:21 +00:00
kfraser@localhost.localdomain 12ace65c63 netback: Disable debug interrupt (accidentally left enabled in
previous checkin).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:16:09 +00:00
kfraser@localhost.localdomain ef9e4decc4 linux: Use fake carrier flag for netfront/netback rather than the real
netif_carrier_XXX() functions. This makes network bringup much faster.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-07 16:00:47 +00:00
Tim Deegan b67783e2f4 [HVM] Disallow soft resets in the BIOS.
They aren't safe if the guest has brought up PV device drivers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-07 13:07:12 +00:00
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
Hollis Blanchard d9de000966 [POWERPC][XEN] Remove asm/platform.h (in favor of asm-powerpc/platform.h)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

--HG--
extra : transplant_source : A%CD%B0%8B%90%1D%1D%FD%13%E7%98%3AT3%90%AC%E7%BB%A9%02
2007-03-05 12:49:12 -06: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