Commit Graph
14608 Commits
Author SHA1 Message Date
Tim Deegan d3454d2db9 Editing long lines in pygrub interactively could lead to tracebacks.
Attached patch fixes things.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2007-03-28 09:12:16 +00:00
Ewan Mellor 493cba058f Fix missing import.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 10:05:03 +01:00
Ewan Mellor 16320c2cdf Fix diagnosis of unhandled exceptions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 10:04:32 +01:00
Tim Deegan e8130031cf Merge 2007-03-28 08:44:08 +00:00
Tim Deegan 323f941287 [HVM][HAP] Fix up some memory allocation bugs
The attached patch initializes count_info of newly allocated hap page
with 0, and removes unnecessary page deallcation when destroying monitor
table. Without this patch, destroying hap domain will fail.

Signed-off-by: Wei Huang (wei.huang2@amd.com)
2007-03-28 08:40:42 +00:00
Ewan Mellor 3dc7643871 Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-28 01:09:14 +01:00
Ewan Mellor b843dd7af8 Added HTTPS support to Xend. There are new configuration options for the
Xen-API and legacy XML-RPC servers to set key and certificate files, and
xm simply needs to be configured use an https rather than an http URL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 23:23:01 +01:00
Ewan Mellor 2a5cee571c Added comment regarding a Python bug.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 23:03:32 +01:00
Ewan Mellor 823ab3fd0c Move the client-specific parts of xmlrpclib2 into xmlrpcclient.py. This means
that clients do not need to import swathes of server code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 22:34:22 +01:00
Ewan Mellor ff7c54e3c3 Add auto-start and auto-stop functionality.
Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 16:52:56 +01:00
Ewan Mellor cc3d7515f9 Use the new blkback sysfs statistics/{rd,wr}_sect to get a more accurate
bandwidth measurements for VBD I/O.

Patch by Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 16:33:26 +01:00
kfraser@localhost.localdomain 784b3edfaa hvm svm: Do not deliver virtual interrupts concurrently with virtual exceptions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 19:05:48 +01:00
kfraser@localhost.localdomain a84bf3595a hvm svm: Initialise VMCB CR4 and shadow CR4 with 0 when VMCB is being
constructed under nested paging mode. It complies with recent
reset_to_realmode change in hvmloader.
Signed-off-by: Wei Huang <wei.huang2@amd.com>
2007-03-27 18:53:05 +01:00
kfraser@localhost.localdomain 04559b620d hvm: Clean up intr_assist() functions (both VMX and SVM,. but mainly
the latter!).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 18:51:07 +01:00
Tom Wilkie aa306dd463 Fix typo in VDB_metrics_methods in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 17:43:36 +01:00
Tom Wilkie d867315e3c Make xm sysrq work via XenAPI re: PAUSED state problem
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 15:47:02 +01:00
kfraser@localhost.localdomain f3bdb5082b linux/x86-64: cleanup the Xen-specific macros in entry-xen.S
- SWITCH_TO_KERNEL is dead (and was broken)
- comments to HYPERVISOR_IRET were somewhat outdated
- updates of selecor RPLs shouldn't be done with byte size to avoid
  store-to-load forwarding issues

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-27 17:23:33 +01:00
kfraser@localhost.localdomain 93f0d9f418 hvm svm: Bug fix for page allocation when HAP is being used
Initialise count_info of newly allocated hap page with 0, and removes
unnecessary page deallcation when destroying monitor table. Without
this patch, destroying hap domain will fail.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
2007-03-27 17:21:14 +01:00
kfraser@localhost.localdomain 51210f6048 hvm: Fix undefined bit shifting in mmio emulation path
In functions set_eflags_* (xen/arch/x86/hvm/io.c), if the first
argument "size" equals sizeof(long), the following code will produce
unintended and invalid result:
        unsigned long mask = (1 << (8 * size)) - 1;

In ANSI C, if the shift amount is greater or equal to the width of the
data type, the result is undefined. Specifically on x86, a bit mask is
applied to the shift amount, so that more significant bits are
ignored. So the above expression results 0x0 instead of the intended
~0UL.

This patch fixes this issue. Because size=0 is not a valid parameter,
rewriting the code using right shift avoids an additional condition
check.

Signed-off-by: Qing He <qing.he@intel.com>
2007-03-27 16:56:20 +01:00
kfraser@localhost.localdomain 08542da82e Fix 'xm list' long output to skip legacy 'cpus'.
Fixes bugzilla report #935.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-27 16:45:37 +01:00
kfraser@localhost.localdomain 0b6e8d5726 xen: Remove legacy references to explicitly per-cpu perf counters.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 16:42:47 +01:00
kfraser@localhost.localdomain bd776061a1 xen: Make all performance counter per-cpu, avoiding the need to update
them with atomic (locked) ops.

Conversion here isn't complete in the sense that many places still use
the old per-CPU accessors (which are now redundant). Since the patch
is already rather big, I'd prefer replacing those in a subsequent
patch.

While doing this, I also converted x86's multicall macros to no longer
require inclusion of asm-offsets.h in the respective C file (on IA64
the use of asm-offsets.h in C sources seems more wide spread, hence
there I rather used IA64_ prefixes for the otherwise conflicting
performance counter indices).

On x86, a few counter increments get moved a little, to avoid
duplicate counting of preempted hypercalls.

Also, a few counters are being added.

IA64 changes only compile-tested, hence somebody doing active IA64
work may want to have a close look at those changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-27 16:35:37 +01:00
kfraser@localhost.localdomain 5893fef229 hvm: Remove access to QEMU monitor in VNC server
This fixes a RHEL5 errata and CVE-2007-0998.

The monitor is still accessible in debug builds of ioemu (debug=y).

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-03-27 16:23:52 +01:00
kfraser@localhost.localdomain d0e5cf5462 linux: Fix for missing response to XS_UNWATCH request.
From: Magnus Carlsson <magnus@galois.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 16:19:25 +01:00
kfraser@localhost.localdomain 86daec4c06 Further shrink the big-lock window.
A few more adjustments to when the 'big' lock is taken/dropped.

Also, fix a case where the foreign domain setting may not get properly
cleared at the end of a hypercall (in case of an early error).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 16:03:30 +01:00
kfraser@localhost.localdomain 9726237543 Add WARN() and generic WARN_ON().
Based on a patch by Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 15:53:45 +01:00
kfraser@localhost.localdomain aacef84b33 In order to allow building as non-root with a non-default CC (which
root may not have access to through its $PATH), defer the generation
of an error until CC is actually needed.

Original patch by Jan Beulich <jbeulich@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 14:50:17 +01:00
Ewan Mellor 4d5a404460 Do not issue a warning on XendDomainInfo.recreate for dom0 -- this is normal
on a clean machine.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 14:34:34 +01:00
Ewan Mellor 6ed1133818 Fix some fields so that they are declared as read-only (always should have
been) and implement {VBD,VIF}_metrics.get_all.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 14:22:29 +01:00
Tom Wilkie cf2cd0e696 Merge 2007-03-27 14:02:17 +01:00
Tom Wilkie 95303f6196 Fix typo in VIF_metrics_methods in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-27 13:45:30 +01:00
kfraser@localhost.localdomain 2ebb7bdf0d linux: Fix a compiler warning (unused local variable).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-27 11:54:16 +01:00
kfraser@localhost.localdomain cc336e504b hvm svm: Rename svm_do_vmmcall_reset_to_realmode() and some small
cleanups.
Signed-off-by: Mats Petersson <mats.petersson@amd.com>
2007-03-27 11:53:07 +01:00
kfraser@localhost.localdomain 08361fe2b2 [ACM] Check offset to be within the buffer's size
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-27 11:50:43 +01:00
kfraser@localhost.localdomain 8c832af369 Fix time reporting to guest.
The recent change to guest time handling dropped a call to
update_vcpu_system_time(), leading to time-went-backwards messages and
guest hangs (the latter were observed only in 2.6.21-rc4 and only when
no serial console was in use).

Debugging the issue also revealed that some commented out debug
printk-s in x86's time handling code didn't compile under x86-64.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 11:47:20 +01:00
Ewan Mellor a4ae757f0f Fix the default for the is_a_template flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 11:31:25 +01:00
kfraser@localhost.localdomain 8f5c223257 Fix push/jmp/call <reg/mem> to check whether the operand is register
or memory when expanding the operand to 8 bytes on x86/64.

Based on original patch by Dexuan Cui <dexuan.cui@intel.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-27 11:20:55 +01:00
Tom Wilkie 38ef20418f Fix xm network-attach via XenAPI re: paused domain state
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 17:22:45 +01:00
Tom Wilkie 17a7dd0661 Fix up xm vcpu-pin via XenAPI, change types of new VM Metrics feilds
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:48:20 +01:00
Tom Wilkie 54a101a7dd Make 06_destroy_dom0_neg pass with xm via XenAPI.
Make check case insensitive.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:18:16 +01:00
Tom Wilkie c549108730 Fix xm info etc since changes to Session in XenAPI
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:04:24 +01:00
Tom Wilkie 70a47391ce Add option to xm create to skip DTD checks.
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 15:09:24 +01:00
Tom Wilkie dd6bd5adf4 Add autodetect to xm create for xml files
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 14:57:12 +01:00
Ewan Mellor 4d3817aae9 Convert XendPIFMetrics into an autoplug class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:54:05 +01:00
Ewan Mellor 4b24edbf8b Convert XendVMMetrics into an autoplug class. Tidy up our destroy methods
on the way -- metrics classes cannot be destroyed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:48:46 +01:00
Ewan Mellor 99b271fd7d Added network.other_config map. To make this easier, add a new automatic
plumbing facility from the XendNetwork class into XendAPI (credit to Tom
Wilkie for the idea).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:19:20 +01:00
Ewan Mellor 6b8760eaba Trivial tidyup.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-27 00:15:07 +01:00
Ewan Mellor 1bf63f099d This patch replaces tab with 4 whitespaces in xensec_gen/main.py.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-26 14:10:19 +01:00
Ewan Mellor c24f98944d Don't set memory_dynamic_max when xm mem-set is called. Save the VM
configuration unconditionally when either the max or the target memory values
are set.

Thanks to Masaki Kanno for pointing out the first problem.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-26 14:09:36 +01:00
Ewan Mellor c322cc7717 Fix xm mem-set on non-running domains. Closes bug #934.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-26 13:59:36 +01:00