Commit Graph
12647 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 99bbc67f93 linux/x86-64: missing agp.h
This causes data corruption and/or crashes when AGP is actually used.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-30 17:21:52 +00:00
kfraser@localhost.localdomain 89f6444794 [MINIOS] Improved unbind_all_ports().
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
2006-11-30 17:17:28 +00:00
kfraser@localhost.localdomain f446b44935 [XEN] Arch-specific softirq definitions.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-30 17:14:09 +00:00
kfraser@localhost.localdomain cffd8b0db8 [XEN] Proper segmentation emulation added to HVM emulated PTE writes.
Sigmed-off-by: Keir Fraser <keir@xensource.com>
2006-11-30 17:07:26 +00:00
Ian Campbell c04d106a58 merge 2006-11-30 16:36:18 +00:00
Ian Campbell 96d39d7654 [XEN] Do not spin at the end of machine_crash_kexec(). If there was no crash
image then we should return to the caller who will either restart the machine
as normal or continue on as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-30 16:32:24 +00:00
Alastair Tse c016f643db [XEND] Fix HVM configuration parsing typo for certain cfg values.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 15:41:35 +00:00
Alastair Tse 16651e108b [XEND] Catch TypeErrors when unexpected SXP is encountered.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 15:19:01 +00:00
Alastair Tse 50453c47bc [XEND] Fix Xen API attribute access to be robust to missing keys.
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:53:14 +00:00
Alastair Tse 4b08ed154c [XEND] Checks to make sure the image type is valid in configuration
The 'builder' (eg. image type) should either be 'hvm' or 'linux' as
image.py only supports these at the moment.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:51:46 +00:00
Alastair Tse 3c8100f8d9 [XENAPI] Update debugging scripts to support vbd_list
Add function to list all vbds attached to a VM.
Update VM config builder to specify the default as 'linux'

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:50:27 +00:00
Alastair Tse 75753a5ac9 [XEND] Rename Xen API methods to match case of the API documentation
Get rid of the case skewing in XendAPI.
Remove _to_xml methods because it has been removed from the latest API
docs.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:48:42 +00:00
Alastair Tse 71710a8321 [XEND] Fix hidden vcpu state when calling xm-list
Stores the vcpus number in xenstore so it is preserved on xend
restart.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:46:45 +00:00
Alastair Tse 7dc9afed06 [XEND] Remove SXP from most parts of Xend.
Attempt to get rid of most SXP dependency in Xend except in
configuration parsing and certain places where it is
required.

XendConfig now stores configuration options similar to Xen API VM
and devices attributes but exports an SXP version to certain things
like xm and XendCheckpoint. All access to VM and device attributes
should now use Python dictionaries rather than the SXP parser.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-30 14:44:58 +00:00
Ian Campbell c4c2ab2a5f Update -xen0 defconfig for nhew kexec option
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-30 14:05:27 +00:00
kfraser@localhost.localdomain dee3a9f6fa [XEN] Fix SIB byte decode when extended by REX.X and REX.B.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-30 14:04:36 +00:00
Ian Campbell a79440f603 merge 2006-11-30 13:05:27 +00:00
Ian Campbell 252d27963b [XEN] kexec: use parse_size_and_unit() when parsing crashkernel
command line parameter.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-30 12:39:35 +00:00
Ian Campbell 432ae399ed [XEN] Fixup whitespace and tweak for Xen coding style.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-30 12:38:51 +00:00
Ian Campbell f8d586356a [LINUX] kexec: Backport fix for overlapping program headers in x86_64 linker script.
This allows a native kernel built from the xen tree to be used as a
crash kernel on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-30 12:38:51 +00:00
Ian Campbell 6fc8621b96 [XEN] Kexec / Kdump: x86_64 specific code
This patch contains the x86_64 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-11-30 12:38:51 +00:00
Ian Campbell 92491dae02 [XEN] Kexec / Kdump: x86_32 specific code
This patch contains the x86_32 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-11-30 12:38:51 +00:00
Ian Campbell 6dd60f6880 [XEN] Kexec / Kdump: Code shared between x86_32 and x86_64
This patch contains Kexec / Kdump code shared between x86_32 and x86_64.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-11-30 12:38:51 +00:00
Ian Campbell a173b7d011 [XEN] Kexec / Kdump: Generic code
This patch implements the generic portion of the Kexec / Kdump port to Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-11-30 12:38:50 +00:00
kfraser@localhost.localdomain 4f24c93f2e [XEN] Simplify x86_emulate interface.
- No distinction between 'special' and 'normal' memory accesses.
 - No reliance on caller-supplied %cr2 value
 - Memory operations include segment identifier to allow callers
   to support non-zero-based segments

TODO:
 1. HVM emulations should take into account segment base, limit, and
    attributes.
 2. We ought to obey stack-size attribute on PUSH/POP instructions.
    Could extend the mode input field, or could add an extra call-out
    hook, or perhaps we don't care at all...

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-30 10:57:28 +00:00
Ewan Mellor dc7f685195 Added the console class to the diagram.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 23:40:40 +00:00
Ewan Mellor 621fec4c37 State that getters and setters do not have asynchronous versions -- there's no
point, because they ought to be immediate.

Tidy up the examples in the presentation and wire-protocol sections, and bring
them into sync with the main body text.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 23:34:33 +00:00
Ewan Mellor ef7c4eec7b New modelling for consoles -- have them as separate classes attached to the
VM, much like the arrangements for devices.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 23:31:07 +00:00
kfraser@localhost.localdomain adcb0d8213 merge 2006-11-29 12:43:11 +00:00
kfraser@localhost.localdomain 72941f1998 [HVMLOADER] Clean up makefile, change TPM detection.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 12:41:30 +00:00
kfraser@localhost.localdomain 74517de104 [LINUX] Avoid triggering the softlockup BUG when offline for too long.
After being offline for a long time, the softlockup  watchdog triggers
a BUG() on our faces. This is expected, as in fact, we spent more than
a fixed 10*HZ amount of time without touching the watchdog.

However, by inspecting the contents of stolen inside timer irq handler,
we can gain awareness of the fact, and do better than that.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
2006-11-29 12:16:59 +00:00
Ewan Mellor 001bc372b4 Fix xm new -F -- this fix was recently introduced for xm create.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:16:19 +00:00
Ewan Mellor dcf51b3413 Move the assert under the protection of the in_transaction flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:15:45 +00:00
Ewan Mellor 26c7d28635 Silence log message when trying to unregister a watch that's already been
unregistered -- this is not a problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 12:14:45 +00:00
kfraser@localhost.localdomain 536c3bc789 [LINUX] console: Fix comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 12:04:49 +00:00
kfraser@localhost.localdomain 5c6e15bd79 [XENOPROFILE, LINUX] compilation fix on x86_64
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-29 11:40:10 +00:00
kfraser@localhost.localdomain f46695b45b [HVMLOADER] Fix CFLAGS.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 11:38:17 +00:00
kfraser@localhost.localdomain 2dcb3ad6f8 [LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.
The major/minor has now been allocated to us by lanana.org.

This is based on previous patches from:
 Jeremy Katz <katzj@redhat.com>
 Amos Waterland <apw@us.ibm.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 11:37:59 +00:00
kfraser@localhost.localdomain 70d02d276e [HVM][VMX] NX bit implies PAE can be enabled. If IA32 VMX guest finds
NX bit is there, it may enable PAE even if PAE bit is returned 0 by
CPUID.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-11-29 11:07:51 +00:00
kfraser@localhost.localdomain f2b23d6824 [DOCS] Update for new Xen boot parameters.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 10:58:35 +00:00
kfraser@localhost.localdomain b83e447099 Fix for network routing setup. Enables proxy arp on dom0's externally visible interface.
Signed-off-by: H. Andres Lagar-Cavilla <andreslc@cs.toronto.edu>
2006-11-29 10:57:30 +00:00
Ewan Mellor bf9423a1fd Diagnose a failure to open the xend-debug.log, and make the /var/log/xen
directory on startup, which was the most common reason to fail.
Closes bug #823.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-29 10:56:02 +00:00
kfraser@localhost.localdomain 1d892b609b [XEN] Emulator fixes.
1. Fix RIP-relative EA calculation. Immediate operands are never 64-bit.
 2. Displacements are sign-extended so used signed types.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 10:48:06 +00:00
Ewan Mellor b496644a2b A trivial fix. login_unconditionally needs to be called with
self.login_unconditionally to avoid  "global name
'login_unconditionally' is not defined"

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-28 18:41:42 +00:00
Ewan Mellor ea3b5838d8 Wait for device-bringup inside domain_start, outside the scope of the
domains_lock.  This makes the VM.start call blocking, but allows xm list to
work while it is blocked.  Move the handling of start_paused out of
XendDomainInfo.start as part of this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 18:00:45 +00:00
Ewan Mellor 592da6d9ee Plumb the "start_paused" flag through for VM.start and VM.resume. Do not
unpause the VM on start by default.  This should fix problems seen recently
whereby devices are not attached to the VM by the time they boot, as
xm create was expecting to be able to wait for the devices before unpausing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:28:43 +00:00
kfraser@localhost.localdomain b2cb3ada56 Allow DMA address width to be overridden with boot parameters:
In Xen: dma_bits=28 (for example)
In Linux: swiotlb_bits=28 (for example)

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-28 17:15:22 +00:00
Ewan Mellor f8cd45575d Add test_bindings back into the build -- it isn't integrated with the normal
targets, because it introduces an additional dependency (libcurl), but
make test/test_bindings does the right thing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-28 17:04:32 +00:00
jfehlig@jfehlig2.provo.novell.com f7bd1801f8 Fix casing of various functions in XendAPI class.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2006-11-14 15:36:41 -07:00
kfraser@localhost.localdomain cee7ce97f7 Clean up the DMADOM physical upper limit handling to properly honour
settings in config.h.

Set the upper limit for DMADOM and swiotlb allocations to be 30 bits
(1G) instead of 31 bits, to allow the b44 NIC driver to work.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
2006-11-28 16:41:45 +00:00