Commit Graph
11618 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 7dd93351eb Remove static forward declaration in gdbstub code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-26 08:34:52 +01:00
kfraser@localhost.localdomain 681ed1d454 [VMXASSIST] Fix virt-to-phys translation routine.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 18:19:30 +01:00
kfraser@localhost.localdomain bcfc0eb57b [XEN] Simplify VMCS allocation (never bigger than a page).
Dynamically determine reserved bits in execution-control
fields.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 17:46:08 +01:00
kfraser@localhost.localdomain 311aea6126 [XEN] Small clean up.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 17:45:28 +01:00
Steven Smith 832f7ab187 [HVM] Rate limit guest accesses to the qemu virtual serial port. This stops
grub's boot menu from hammering dom0.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-25 17:27:18 +01:00
Emmanuel Ackaouy ad8ae4055e Make dom0_vcpus_pin a platform independant option.
By default, it's off. When enabled on the command line, it
causes dom0's VCPUs to be pinned to their respective physical
CPUs at creation time. Once pinned, they can never be moved.
ALso cleanup VCPU initialization of scheduler parameters.
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-09-25 16:31:02 +01:00
kfraser@localhost.localdomain 8825d605c4 [XEN] Fix 11607 to avoid bignum aritmetic in assembly file.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 14:11:22 +01:00
kfraser@localhost.localdomain e3ec96309b [HVM] Use AMD's isntruction-length decoder for VMX as well as SVM
MMIO decode. The VMX-defined instruction-length info field is not
valid for use during most page faults. Hence we have to obtain the
instruction length the slow-and-stupid way.

This *will* go away when we throw away the wretched MMIO emulator.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 10:22:17 +01:00
kfraser@localhost.localdomain 3bcf69a3b6 Consolidate the preferable use of a pragma with the feature detection
in the make script.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-25 09:36:11 +01:00
kfraser@localhost.localdomain cd741d6d73 [XEN] Limit size of Xen heap to 2GB.
Avoids stub code created on the stack being unable to
reach targets in main Xen code via direct branches.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-25 09:31:11 +01:00
kfraser@localhost.localdomain b24690e3cc [XEN] Use symbolic constants to determine segment limits.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-09-25 09:29:28 +01:00
Steven Smith 782db06199 Merge. 2006-09-25 09:27:46 +01:00
Steven Smith 4d0c4def88 [XEN][HVM] Initialise the ELCR to level triggered mode from pic_init1.
This should really be done from the BIOS, but since it isn't, work around
it from here.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-25 09:26:51 +01:00
kfraser@localhost.localdomain ad27570a65 [TOOLS] Wait for backend devices to set up before resuming execution
of a restored guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-25 09:11:52 +01:00
kaf24@firebug.cl.cam.ac.uk 776187826b [XEN] Support unconnected IRQ lines in pirq_acktype().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-24 10:14:17 +01:00
kaf24@firebug.cl.cam.ac.uk 972938c817 [XEN] Add local-APIC-edge to list of PIC types supported by pirq_acktype()
function.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-24 10:07:18 +01:00
kfraser@localhost.localdomain 152b691af7 [QEMU] A better build fix for qemu-dm.
This extends 11592:5c58df8c78851d47bf7130308895c4e0ac5fa5ad
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 16:23:11 +01:00
kfraser@localhost.localdomain 7b8fc89cfe Ensure CONFIG_SND_FM801_TEA575X is unconfigured on all arches.
Signed-off-by: Al Stone <ahs3@fc.hp.com>
2006-09-23 14:54:58 +01:00
kfraser@localhost.localdomain 5a1c6af897 Fix tools build with latest glibc, which has an
extended PTRACE enumeration.
Original patch from Stephen Tweedie <sct@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 14:52:04 +01:00
kfraser@localhost.localdomain c180e655c1 Use GDB 'O' packets for console output if the serial line is shared
and GDB is attached.

It may be necessary for gdb and the console to share a serial port.
This patch utilises the GDB protocol to encode console output.

Based on a patch from Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 14:47:00 +01:00
kfraser@localhost.localdomain d85cf94621 Move initialize_keytable declaration to keyhandler.h
Signed-off-by: Aron Griffis <aron@hp.com>
2006-09-23 14:07:41 +01:00
kfraser@localhost.localdomain 8f63d0b35e Clean up and enhance "make tags"
- delete correct file in _tags rule
- don't prune nonexistent files/dirs
- call exuberant-ctags with additional flags from Linux:
    -I to ignore some misleading hits
    --extra=+f to include an entry for the basename of every file
    --c-kinds=+px to add prototypes and external variable declarations

Signed-off-by: Aron Griffis <aron@hp.com>
2006-09-23 14:07:30 +01:00
kfraser@localhost.localdomain bcb871f1fd [HVM] Fix timer interrupt underflow bug.
Without the patch, vlapic->intr_pending_count could become a very
small negative, causing some local APIC timer interrupts lost.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
2006-09-23 14:04:22 +01:00
kfraser@localhost.localdomain e2e15eb8ee Update vnet kernel module to handle architectures without
socketcall(), for example Itanium, and some small changes
to be compatible with changed kernel interfaces.

Signed-off-by: Mike Wray <mike.wray@hp.com>
2006-09-23 14:01:53 +01:00
kfraser@localhost.localdomain ff4b9c2134 [MINIOS] Added a new file arc/x86/setup.c and moved some x86 specific
initialization stuff from kernel.c there. Two new functions are added
to handle this.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
2006-09-23 14:00:38 +01:00
kfraser@localhost.localdomain 4f76579fdb [QEMU] Fix build on some distros (e.g., FC6T3).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 13:57:55 +01:00
atse@norwich.uk.xensource.com bfde0c9ad7 [XM] Fix argument parsing for dump-core subcommand
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-23 13:39:32 +01:00
kaf24@firebug.cl.cam.ac.uk 0b1ef2a5bc [HVM] A few cleanups to i8259.c -- in particular change
ELCR semantics (should not be modified by PIC reset).

This effectively removes Steve Smith's changeset
11586:08a582a98471da30fb86bca620495f3d91d55800
but the real bug here is not that the ELCR was reset to
zero, but that it was touched at all.

Our BIOS code should set the ELCR correctly (level-triggered)
for PCI IRQs.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-23 12:39:18 +01:00
Steven Smith 97cb77381a [HVM][VNC] Make sure that the vnc viewer gets the right resolution when it
connects.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-22 20:20:57 +01:00
Steven Smith 5e90e86402 Merge. 2006-09-22 17:59:02 +01:00
atse@norwich.uk.xensource.com 3918261f47 [XM][ACM] Add try,catch back to main() for dry-run
Signed-off-by: Alastair Tse <atse@xensource.com>
Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
2006-09-22 17:46:32 +01:00
Steven Smith 262ad8a909 Merge. 2006-09-22 17:22:18 +01:00
Steven Smith 380a06d426 [XEN][HVM] Initialise the ELCR so that all interrupts are in level triggered
mode after pic_reset, since that seems to be what Linux expects.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-22 17:21:52 +01:00
atse@norwich.uk.xensource.com 3b61bd783a [XM] Move 'xm sysrq' into main.py
* There's not need for sysrq to be in its own file.
* Bonus advantage: can use arg_check rather than gopts for argument
  validation.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 16:32:30 +01:00
atse@norwich.uk.xensource.com cef39afbe9 [XEND] Do not attempt core dump to directories.
- Abort core dump if destination is a directory.
- Throw appropriate XendError expection on failure.
Reported by Masaki Kanno <kanno.masaki@jp.fujitsu.com>.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 16:20:36 +01:00
atse@norwich.uk.xensource.com 15473a42cf [XEND] Remove hard tabs from destroyDevice()
Reported by Hollis Blanchard.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 15:56:19 +01:00
atse@norwich.uk.xensource.com 8554ba8909 [XEND] Check for invalid memory sizes.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2006-09-22 15:36:11 +01:00
atse@norwich.uk.xensource.com 1681108c98 [XM] Text wrapping fix, xm create --help_config fix.
* Fix text wrap so it doesn't chop off last word in help message for
  certain cases.
* Fix handling of xm create --help_config
* Remove redundant gopts.usage() call.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 15:06:00 +01:00
Steven Hand e790efba8a Add mmio emulation of opcodes 0x3A and 0x85 for SMP W2K3 installation.
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2006-09-22 14:57:19 +01:00
Steven Hand 45af7b8c0a Revert default debug on cset 11576:4a3d9fa6ba24.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-09-22 14:55:11 +01:00
kfraser@localhost.localdomain 7f59f8a683 merge 2006-09-22 13:06:20 +01:00
kfraser@localhost.localdomain 2a43f6a3e7 merge 2006-09-22 13:06:05 +01:00
kfraser@localhost.localdomain e1c4ba4abd [XEN][ Remove unused declarations.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-22 13:05:40 +01:00
Steven Hand 14983912a9 This patch fixes an error booting 32bit vista on VMX.
The shadow code uses hvm_get_guest_ctrl_reg(v, 4) to test whether
PAE is enabled or not.  But it is not always right if the hypervisor
calls hvm_get_guest_ctrl_reg(v, 4) between vmxassist_invoke and
vmxassist_restore

The patch uses the d->arch.hvm_vmx.cpu_state to test if the PAE is
enabled.

Also update SVM code to use the new 'pae_enabled' hvm func.

Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Steven Hand <steven@xensource.com>
2006-09-22 12:27:28 +01:00
Steven Hand f0cb8942c4 Fix vmxassist to boot Vista.
Currently, guest_linear_to_real to_real() in vmxassist assumes guest HVM
use 2 level page table when entering protect mode with PG enabled. Vista
uses 3 level (PAE enabled) page table, so memory addressing is wrong.
This patch fixes it, by considering all 4 possible cases.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-09-22 12:14:22 +01:00
atse@norwich.uk.xensource.com f88384ec46 [XM] Error handling cleanup
Introducing an OptionError exception to be used by all xm subcommands
to signal an error in the arguments. "xm" will catch these and output
the appropriate error and usage message.

Detailed Changes:

main.py:
 *  Cleaned up imports and moved warning filter outside of
    import block.
 *  Converted usage parameters and description to a python
    dict rather than strings to enable better usage help
    formatting.
 *  Removed unused list_label domain command.
 *  Added cmdHelp() prints out usage message for any command
 *  Added shortHelp() prints out the default help message when
    xm is invoked with no arguments.
 *  Added longHelp() prints out long help message when invoked
    with xm --help or xm help.
 *  Added extra optional paramter to getDomains() so we can
    tell Xend not to poll devices. This will speed up xm list.
    (PENDING changes to Xend itself.)
 *  Changed all references where 'dom' actually means 'domid'
    to use the correct name.
 *  Changed 'xm list' header format to use printf formatting style.
 *  Renamed xm_subcommand to xm_importcommand so it is more
    clear what it is doing (all xm commands are subcommands!)
 *  Moved cpu_make_map() inside xm_vcpu_pin as an anonymous func.
 *  Use OptionError whenever an invalid option is detected in xm.
 *  Added proper catch and error printing for XendError and
    OptionErrors in main().

addlabel.py:
cfgbootpolicy.py:
dry-run.py:
dump-policy.py:
get-label.py:
labels.py:
loadpolicy.py:
makepolicy.py:
rmlabel.py:
resources.py:
 *  Replaced usage() with help() that is called from main.py
 *  Replaced usage() invokation with raising OptionError

opts.py:
 *  Added very simple wrap() function that behaves differently
    to textwrap.wrap()
 *  Added OptionError()
 *  Replaced the string representation of Opt, Opts to output
    a nicely formatted usage message.
 *  Changed class Opts itself will throw approriate OptionErrors.
 *  Changed set_bool to recognise 'y' and 'n' as valid input

create.py:
 *  Some whitespace and column width cleanup.
 *  throws OptionError if encounters option error.

migrate.py:
 *  Replace usage() message with the string representation of
    gopts.

sysrq.py:
 * Replace usage message with throwing OptionErrors

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-09-22 11:37:31 +01:00
kfraser@localhost.localdomain d5de6876d0 [HVM][VMX] Clean up and audit VMX uses of instruction-length
info field. Todo: use by mmio decoder needs to be removed.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-22 11:33:03 +01:00
Steven Smith bb53feb6ec [HVM][VNC] Fix bug in the VNC copyrect implementation which crept in
with the update backoff patch.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-22 09:12:00 +01:00
kfraser@localhost.localdomain b3781b36c8 [XEN] Do not emulate user-mode updates to page tables.
Instead use as a hint that the page is no longer a page table.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-21 19:51:10 +01:00
Christian Limpach c8c1a49313 Merge? 2006-09-21 19:34:45 +01:00