atse@norwich.uk.xensource.com
fbda4315cd
[XM] Report proper ACMError(s) instead of silently exiting.
...
Remove try except blocks so that ACMError(s) are properly reported to
the user rather than silently fail.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:46:09 +01:00
atse@norwich.uk.xensource.com
9a7d719155
[XM] Remove traceback printing from load/makepolicy.py.
...
Should pass the exception along to xm/main.py to handle properly like
the rest of the commands.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:29:52 +01:00
atse@norwich.uk.xensource.com
665dff5cd1
[XM] Fix stray quotes in usage message in getlabel.py
...
Fixed built-in function name conflict.
Raise correct exceptions for when option is invalid to be properly
reported by xm.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:23:21 +01:00
atse@norwich.uk.xensource.com
3c9f8469ed
[XM] Fix error reporting for resources.py, remove duplicate try block.
...
Also fixed usage message to not include misspelling of the command.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:16:11 +01:00
atse@norwich.uk.xensource.com
438289a1bd
[XM] Removed traceback printing for non ACMError exceptions
...
Removing try,except block as cfgbootpolicy should allow exceptions to
propagate instead of printing traceback to stdout.
(http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=778 )
Changed usage of string.join, string.split when creating security
policy path name.
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 11:50:51 +01:00
atse@norwich.uk.xensource.com
9bb76d3442
[XM] Set proper return code for exceptions in xm, catch ACMError.
...
Signed-off-by: Alastair Tse <atse@xensource.com >
2006-09-28 12:03:10 +01:00
kfraser@localhost.localdomain
cc4761e041
[XEN] Fix i386 hypercall code to always create shadow
...
parameters. Arguments on stack can be clobbered by
callee, since it owns them. But we require this doesn't
happen when we create hypercall continuations. Hence the
need to copy.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-28 11:47:33 +01:00
kfraser@localhost.localdomain
f10e4fdc2a
[HVM] Avoid mis-optimisation of the SVM/VMX exit handlers
...
by passing a *pointer* to the register state, instead of
'passing by value'.
This should fix the bugs resulting in display of
"trying to set reserved bit in EFER"
on the Xen console.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-28 11:25:15 +01:00
atse@norwich.uk.xensource.com
7ce79f6a21
There's a typo in create.py, which affects PV bootloaders (such as
...
domUloader and probably pygrub). Patch attached.
Signed-off-by: Charles Coffing <ccoffing@novell.com >
2006-09-28 10:10:59 +01:00
kfraser@localhost.localdomain
4ac7a6de2f
[VMXASSIST] Cast to pointer type via long to avoid compile
...
warnings/errors with latest gcc versions.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-27 17:49:22 +01:00
Steven Smith
8a44c227f8
[HVM] qemu should wait 10ms, rather than 100ms, between running its timers.
...
Signed-off-by: Steven Smith <sos22@cam.ac.uk >
2006-09-27 16:22:17 +01:00
kfraser@localhost.localdomain
380485a5e8
[XM-TEST] Remove the test for /dev/tpm0, which may be a prerequisite to start
...
the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com >
2006-09-27 14:30:36 +01:00
kfraser@localhost.localdomain
7031746224
[XEN] gdbstub return value is used to determine whether or not
...
to continue execution.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-27 14:28:26 +01:00
kfraser@localhost.localdomain
a301105b5b
[XM] Fix 'xm uptime' command.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2006-09-27 14:01:30 +01:00
kfraser@localhost.localdomain
3c9113ced2
[XM] Fix domain reported by 'xm sched-sedf'.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2006-09-27 14:00:33 +01:00
kfraser@localhost.localdomain
6681aec641
[XM] Fix 'xm rmlabel' command.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2006-09-27 13:59:48 +01:00
kfraser@localhost.localdomain
32b51f8b72
[XM] Reenable the '-h' option, disabled in changeset:11572.
...
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com >
2006-09-27 13:58:46 +01:00
kfraser@localhost.localdomain
81fe851d00
[HVM] Fix stupid printf formatting error that breaks x86/64 build.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-27 13:54:04 +01:00
kfraser@localhost.localdomain
b93d004c46
[HVM] Fix MSR read/write and add extra info when
...
write to MSR_EFER fails.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-27 10:17:03 +01:00
kfraser@localhost.localdomain
0a3119b559
[XEN] Fix x86_emulate and hvm-mmio-insn-len decoders
...
to properly add cs<<4 to eip only when guest is in real
mode (or vm86 mode).
Remove bogus test-and-fail from hvm-mmio-insn-len decoder.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-27 09:29:46 +01:00
Steven Smith
ed3d710e85
[HVM][VNC] Fix typo.
...
Signed-off-by: Steven Smith <sos22@cam.ac.uk >
2006-09-26 19:50:07 +01:00
Steven Smith
a58d1ba3cd
[HVM][VNC] Work around a bug in the newest version of xvncviewer which
...
could lead to the display locking up after it's been idle for a while.
Signed-off-by: Steven Smith <sos22@cam.ac.uk >
2006-09-26 16:47:35 +01:00
Steven Smith
54c338f9de
[HVM][VNC] Make sure that qemu doesn't go into an infinite loop when
...
it receives certain invalid requests from the viewer.
Signed-off-by: Steven Smith <sos22@cam.ac.uk >
2006-09-26 16:46:47 +01:00
Steven Smith
74f769a1ab
[HVM] Make qemu_advance_timer do something sensible with timers which
...
aren't currently scheduled.
Signed-off-by: Steven Smith <sos22@cam.ac.uk >
2006-09-26 16:45:52 +01:00
kfraser@localhost.localdomain
a1793afe9b
[HVM] Fix HLT with interrupts disabled. Only take down
...
the domain if no other VCPUs are online.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-26 14:01:38 +01:00
Emmanuel Ackaouy
7ccdaed2ed
Adds support for the keyword 'all' to the vcpu-pin operation.
...
Using 'all' in place of a specific vcpu will apply the cpumask
to all vcpus in the domain.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com >
2006-09-26 12:17:51 +01:00
kaf24@firebug.cl.cam.ac.uk
2d5c2b773d
[VMXASSIST] Small fix to virt-to-phys translation.
...
CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-09-26 08:36:39 +01:00
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