]> xenbits.xensource.com Git - xen.git/log
xen.git
18 years agoMatch the name change for the QCoW SR.
Ewan Mellor [Thu, 22 Mar 2007 17:04:55 +0000 (17:04 +0000)]
Match the name change for the QCoW SR.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFixes to XendQCoWStorageRepo to match recent API changes, and fix the refreshing
Ewan Mellor [Thu, 22 Mar 2007 17:02:02 +0000 (17:02 +0000)]
Fixes to XendQCoWStorageRepo to match recent API changes, and fix the refreshing
after a VDI is deleted.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdd VM_metrics.start_time, and use this to implement xm uptime through the
Ewan Mellor [Thu, 22 Mar 2007 16:32:18 +0000 (16:32 +0000)]
Add VM_metrics.start_time, and use this to implement xm uptime through the
Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoUpdate VM's VCPU handling to match the documentation wrt VCPUs_max and
Ewan Mellor [Thu, 22 Mar 2007 14:31:03 +0000 (14:31 +0000)]
Update VM's VCPU handling to match the documentation wrt VCPUs_max and
VCPUs_at_startup.  Add VM.set_VCPUs_number_live, VM.add_to_VCPUs_params_live,
VM_metrics.VCPUs_{CPU,flags,params}.

Use these new calls to implement xm vcpu-list and xm sched-credit through
the Xen-API.  Mark a number of other calls as unimplemented through that API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix marshalling of Xen-API maps with non-string keys.
Ewan Mellor [Thu, 22 Mar 2007 14:27:05 +0000 (14:27 +0000)]
Fix marshalling of Xen-API maps with non-string keys.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years ago[TOOLS] libxc: Fix x86 build.
Ian Campbell [Thu, 22 Mar 2007 12:22:16 +0000 (12:22 +0000)]
[TOOLS] libxc: Fix x86 build.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoMerge with xenppc-unstable-merge.hg
kfraser@localhost.localdomain [Wed, 21 Mar 2007 23:59:03 +0000 (23:59 +0000)]
Merge with xenppc-unstable-merge.hg

18 years agoMerge with xen-unstable.hg.
Hollis Blanchard [Wed, 21 Mar 2007 23:08:31 +0000 (18:08 -0500)]
Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[LIBXC][POWERPC] Use new domain builder.
Hollis Blanchard [Wed, 21 Mar 2007 22:03:00 +0000 (17:03 -0500)]
[LIBXC][POWERPC] Use new domain builder.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][LIBXC] Remove Prose builder.
Hollis Blanchard [Wed, 21 Mar 2007 22:03:00 +0000 (17:03 -0500)]
[POWERPC][LIBXC] Remove Prose builder.
It is no longer being maintained and probably shouldn't have existed in the
first place, since it was almost identical to xc_linux_build.c.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[LIBXC] Allocate memory and populate p2m in arch-specific code.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[LIBXC] Allocate memory and populate p2m in arch-specific code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[LIBXC] Move domain builder hooks into arch-specific files and remove ifdefs.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Fix "xc_core" build break. Untested but might work.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Fix "xc_core" build break. Untested but might work.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Implement arch_get_xen_caps().
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Implement arch_get_xen_caps().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Use correct register set in dump_execution_state().
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Use correct register set in dump_execution_state().
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Quiet timebase synchronization at boot.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Quiet timebase synchronization at boot.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Clear the RMA flag on freed pages.
Hollis Blanchard [Wed, 21 Mar 2007 22:02:59 +0000 (17:02 -0500)]
[POWERPC][XEN] Clear the RMA flag on freed pages.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes
Tim Deegan [Wed, 21 Mar 2007 17:17:08 +0000 (17:17 +0000)]
[XEN] Shadow: check the _PAGE_PRESENT bit in fast-path MMIO shadow ptes
otherwise the fast-path code is not safe against some kinds of
concurrent shadow updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoChange xm dmesg -c so that it prints out the current buffer as well as clearing
Ewan Mellor [Wed, 21 Mar 2007 12:03:42 +0000 (12:03 +0000)]
Change xm dmesg -c so that it prints out the current buffer as well as clearing
it.  This avoids a race so that you don't lose messages, matches the behaviour
of the hypercall, and the Unix dmesg command.

Change the Xen-API binding to use a separate function host.dmesg_clear rather
than a flag on host.dmesg.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoLINUX: x86_64: start_pfn should be initialised even when XENFEAT_auto_translated_phys...
Ian Campbell [Wed, 21 Mar 2007 08:51:51 +0000 (08:51 +0000)]
LINUX: x86_64: start_pfn should be initialised even when XENFEAT_auto_translated_physmap is set.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoRaise an exception in xm_block_detach if using Xen-API and it fails -- this
Ewan Mellor [Tue, 20 Mar 2007 17:36:18 +0000 (17:36 +0000)]
Raise an exception in xm_block_detach if using Xen-API and it fails -- this
ensures that the exit status properly set.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix xm network-list through the Xen-API for managed domains.
Ewan Mellor [Tue, 20 Mar 2007 17:34:34 +0000 (17:34 +0000)]
Fix xm network-list through the Xen-API for managed domains.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix xm block-list through the Xen-API for managed domains.
Ewan Mellor [Tue, 20 Mar 2007 17:33:35 +0000 (17:33 +0000)]
Fix xm block-list through the Xen-API for managed domains.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoMake xm trigger talk XenAPI; add send_trigger to VM class.
Ewan Mellor [Tue, 20 Mar 2007 17:30:52 +0000 (17:30 +0000)]
Make xm trigger talk XenAPI; add send_trigger to VM class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoMake xm debug-keys talk XenAPI; Add send_debug_keys to host
Ewan Mellor [Tue, 20 Mar 2007 17:30:05 +0000 (17:30 +0000)]
Make xm debug-keys talk XenAPI; Add send_debug_keys to host

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoChange the eyecatcher to be case-insensitive, so that "Internal error" is
Ewan Mellor [Tue, 20 Mar 2007 17:26:05 +0000 (17:26 +0000)]
Change the eyecatcher to be case-insensitive, so that "Internal error" is
detected.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoTidy the error message from getDomains when using the Xen-API and no domain
Ewan Mellor [Tue, 20 Mar 2007 16:55:29 +0000 (16:55 +0000)]
Tidy the error message from getDomains when using the Xen-API and no domain
is found.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoHave xm-test wait for the network device to detach. This is an asynchronous
Ewan Mellor [Tue, 20 Mar 2007 16:52:33 +0000 (16:52 +0000)]
Have xm-test wait for the network device to detach.  This is an asynchronous
process, so xm-test needs to poll.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix sxp2xml translation to handle maxmem.
Ewan Mellor [Tue, 20 Mar 2007 15:15:37 +0000 (15:15 +0000)]
Fix sxp2xml translation to handle maxmem.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAdd VIF.runtime_properties dictionary, and use that to implement xm network-list
Ewan Mellor [Tue, 20 Mar 2007 15:12:07 +0000 (15:12 +0000)]
Add VIF.runtime_properties dictionary, and use that to implement xm network-list
through the Xen-API.  Implement xm network-attach and xm network-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix parameter to XendInvalidDomain.
Ewan Mellor [Tue, 20 Mar 2007 14:04:57 +0000 (14:04 +0000)]
Fix parameter to XendInvalidDomain.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix exception handling when xmlrpclib.Fault is raised, in legacy mode.
Ewan Mellor [Tue, 20 Mar 2007 14:04:27 +0000 (14:04 +0000)]
Fix exception handling when xmlrpclib.Fault is raised, in legacy mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix xm create -c.
Ewan Mellor [Tue, 20 Mar 2007 11:49:04 +0000 (11:49 +0000)]
Fix xm create -c.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAdd VBD.runtime_properties dictionary, and use that to implement xm block-list
Ewan Mellor [Tue, 20 Mar 2007 11:45:44 +0000 (11:45 +0000)]
Add VBD.runtime_properties dictionary, and use that to implement xm block-list
through the Xen-API.  Implement xm block-attach and xm block-detach also.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoWhen creating a VBD, save the devid in the device info structure. If creation
Ewan Mellor [Tue, 20 Mar 2007 11:44:13 +0000 (11:44 +0000)]
When creating a VBD, save the devid in the device info structure.  If creation
fails, remove the device config entry.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoImprove the error diagnostics within xmlrpclib2 in order to be more defensive
Ewan Mellor [Tue, 20 Mar 2007 11:34:14 +0000 (11:34 +0000)]
Improve the error diagnostics within xmlrpclib2 in order to be more defensive
against internal errors.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agomerge
Ian Campbell [Tue, 20 Mar 2007 14:34:53 +0000 (14:34 +0000)]
merge

18 years ago[XEN] Implement faster int 0x80 handling for compat mode guests.
Ian Campbell [Tue, 20 Mar 2007 14:33:15 +0000 (14:33 +0000)]
[XEN] Implement faster int 0x80 handling for compat mode guests.

Using the GPF handler to spot the software interrupt and pass it back
to the guest increases the base syscall time by a factor of 2.7
compared with 32on32 using direct trap to ring 1. (0.3270->0.8680
microseconds, measured with lmbench lat_syscall).

Since the 64 bit IDT can only contain 64 bit segment selectors we
cannot trap directly to compat mode ring 1. However implementing a
dedicated 64 bit ring 0 trap handler allows us to avoid much of the
GPF handler overhead and reduces the overhead to 1.7 times
(0.3270->0.5497 microseconds).

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoMerge
Tim Deegan [Tue, 20 Mar 2007 11:56:20 +0000 (11:56 +0000)]
Merge

18 years agosvm: Remove special 'launch' scheduler tail function.
kfraser@localhost.localdomain [Tue, 20 Mar 2007 11:28:45 +0000 (11:28 +0000)]
svm: Remove special 'launch' scheduler tail function.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoDon't mount raw blktap disks for pygrub
Mark McLoughlin [Tue, 20 Mar 2007 11:10:52 +0000 (11:10 +0000)]
Don't mount raw blktap disks for pygrub
Currently, we mount all blktap disks for pygrub so that it can boot
from e.g. QCOW images. However, since pygrub will handle a raw image
just fine without mounting through blktap, we shouldn't bother in that
case.

Also, it looks like XendDomainInfo.create_vbd() takes the full disk
uname rather than the image path.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
18 years agocoredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
kfraser@localhost.localdomain [Mon, 19 Mar 2007 16:55:21 +0000 (16:55 +0000)]
coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm: Do not save/restore shared_info gpfn location.
kfraser@localhost.localdomain [Mon, 19 Mar 2007 16:48:24 +0000 (16:48 +0000)]
hvm: Do not save/restore shared_info gpfn location.

Instead of kludging a max_gpfn estimate in shared_info, add a new
XENMEM command to discover the actual maximum gpfn value as known by
the shadow code.

This needs to be more robust when we support HVM ballooning in future
anyway. One interesting point is that max_gpfn may be close to 4GB
even for small-memory HVM guests since for example SVGA LFB is mapped
into the I/O hole. We may need to special case the I/O hole somehow,
or provide some finer-grained way to find out which parts of the GPFN
space are actually used (e.g., get Xen to fill in a bitmap with 1 bit
per 1024 pages, or similar).

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[SVM] Move vmcb setup code for AP bringup out of the launch path
Tim Deegan [Mon, 19 Mar 2007 16:28:24 +0000 (16:28 +0000)]
[SVM] Move vmcb setup code for AP bringup out of the launch path
and into the earlier AP bringup code.  This stops it from resetting
the VCPUs of SMP guests into real mode on restore or migrate.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoOnly import xenapi_create when using the Xen-API server -- this has additional
Ewan Mellor [Mon, 19 Mar 2007 14:46:51 +0000 (14:46 +0000)]
Only import xenapi_create when using the Xen-API server -- this has additional
dependencies that we don't want to require in legacy mode.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[LINUX] Update crash-kernel-32-on-64.patch with more sensible version from -mm.
Ian Campbell [Mon, 19 Mar 2007 14:00:07 +0000 (14:00 +0000)]
[LINUX] Update crash-kernel-32-on-64.patch with more sensible version from -mm.
The previous version had side effects outside of the crash dump code.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agohvm: Lower HPET frequency to 1/32 of the TSC.
kfraser@localhost.localdomain [Mon, 19 Mar 2007 13:48:00 +0000 (13:48 +0000)]
hvm: Lower HPET frequency to 1/32 of the TSC.

The frequency of HPET device model is defined to be the same as TSC's,
but this doesn't work well with calibrate_tsc_hpet() in Linux kernel
2.6.16-33, causing some IA32 Linux HVM guests to failt o boot.

Calibrate_tsc_hpet() tries to figure out how many HPET ticks a TSC
cycle equals; it magnifies the result by scale of 2^32, trying to get
a more accurate result since it assumes the frequency of HPET in real
world is usually less than 1/100 of TSC, so the result of "(2^32 *
hpet_freq) / tsc_freq" may exceed 32bits, then a "divide error
(overflow)" would occur!

The result doesn't overflow every time because hpet_freq/tsc_freq may
less than 1.0 due to the little inaccuracy in the implementation of
HVM timer virtualization.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
18 years agoUse HOSTCFLAGS with HOSTCC.
kfraser@localhost.localdomain [Mon, 19 Mar 2007 13:44:31 +0000 (13:44 +0000)]
Use HOSTCFLAGS with HOSTCC.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years ago[ioemu] Cleanup media change code.
Christian Limpach [Mon, 19 Mar 2007 11:15:28 +0000 (11:15 +0000)]
[ioemu] Cleanup media change code.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
18 years agoFix memory size handling.
Ewan Mellor [Mon, 19 Mar 2007 11:09:57 +0000 (11:09 +0000)]
Fix memory size handling.

These were by Tom Wilkie <tom.wilkie@gmail.com>, and were dropped accidentally
by me when merging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agominios: Various small fixes.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Mar 2007 09:34:42 +0000 (09:34 +0000)]
minios: Various small fixes.

- Fixed type of variables in hypervisor.c.
- Fixed not removing a waiter from watch_queue.
- Make wait_for_watch() global accessible.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agoAdd parentheses to trace_do_casts macro.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Mar 2007 09:32:52 +0000 (09:32 +0000)]
Add parentheses to trace_do_casts macro.

The arguments to this macro didn't have parentheses around them where
they were used.  If a call to a TRACE macro included an expression as
an argument, the cast to (unsigned long) could bind to just part of
the expression and lead to unexpected results.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
18 years agohvm: Fix platform-irq handling in presence of irqbalance daemon.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Mar 2007 09:31:04 +0000 (09:31 +0000)]
hvm: Fix platform-irq handling in presence of irqbalance daemon.

The HVM guest did not respond when PV-on-HVM driver was tested on
the following conditions.

1. RHEL4u4
2. vcpu 4
3. irqbalance on
4. pv-on-hvm driver used.

Eventhandler did not work because IRQ was delivered to another vcpu by
irqbalance.

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
18 years agoxend: Avoid use of 'k' specifier to Py_BuildValue(). Its
Keir Fraser [Sun, 18 Mar 2007 18:26:34 +0000 (18:26 +0000)]
xend: Avoid use of 'k' specifier to Py_BuildValue(). Its
implementation is broken until Python v2.4.3. Instead cast the C value
to long long and use the 'L' specifier.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxend: Fix Py_BuildValue() invocation (don't use I specifier).
Keir Fraser [Sun, 18 Mar 2007 16:49:52 +0000 (16:49 +0000)]
xend: Fix Py_BuildValue() invocation (don't use I specifier).
Various error-handlign cleanup and fix a reference leakage.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRe-raise log level for XendConfig (accidentally changed it to DEBUG previously).
Ewan Mellor [Sun, 18 Mar 2007 12:06:50 +0000 (12:06 +0000)]
Re-raise log level for XendConfig (accidentally changed it to DEBUG previously).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix the signedness of a number of values demarshalled by xc.domain_getinfo,
Ewan Mellor [Sun, 18 Mar 2007 12:06:01 +0000 (12:06 +0000)]
Fix the signedness of a number of values demarshalled by xc.domain_getinfo,
in particular mem_kb and maxmem_kb.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoSupport xm create through the Xen-API.
Ewan Mellor [Sat, 17 Mar 2007 23:59:05 +0000 (23:59 +0000)]
Support xm create through the Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoFix xm list's printing of the memory target, when in legacy mode.
Ewan Mellor [Sat, 17 Mar 2007 23:57:17 +0000 (23:57 +0000)]
Fix xm list's printing of the memory target, when in legacy mode.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoReplace VDI.location with a more generic VDI.other_config map. Remove
Ewan Mellor [Sat, 17 Mar 2007 23:55:03 +0000 (23:55 +0000)]
Replace VDI.location with a more generic VDI.other_config map.  Remove
VDI.sector_size.

Xend work by Tom Wilkie <tom.wilkie@gmail.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoWork around bug in Python's inspect module -- catch an IndexError exception
Ewan Mellor [Sat, 17 Mar 2007 16:56:39 +0000 (16:56 +0000)]
Work around bug in Python's inspect module -- catch an IndexError exception
if the source-code lookup fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix up nosegneg vsyscall elfnote.
Keir Fraser [Sat, 17 Mar 2007 12:24:32 +0000 (12:24 +0000)]
Fix up nosegneg vsyscall elfnote.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoXen and tools now require gcc 3.4+ on x86.
Keir Fraser [Sat, 17 Mar 2007 12:04:48 +0000 (12:04 +0000)]
Xen and tools now require gcc 3.4+ on x86.
 - gcc-3.2 cannot handle some multi-line assertions in the Xen
 sources. Noone noticed.
 - gcc-3.3 has problems with alignment constraints inside typedefs.

gcc 3.4.0 is now three years old so I hope that everyone has an
up-to-date compiler, or can obtain a more up-to-date package for their
distribution. If not we may need to fall back to supporting gcc-3.3.x
as well.

Also clean up the way we do version checks, using the power of awk.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvmloader: More simplification of highmem bios relocation code.
Keir Fraser [Fri, 16 Mar 2007 23:56:26 +0000 (23:56 +0000)]
hvmloader: More simplification of highmem bios relocation code.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoGeneral hvmloader cleanups and write memory fields of CMOS with
Keir Fraser [Fri, 16 Mar 2007 23:34:24 +0000 (23:34 +0000)]
General hvmloader cleanups and write memory fields of CMOS with
correct values.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix build when bcc is not installed.
Keir Fraser [Fri, 16 Mar 2007 23:33:44 +0000 (23:33 +0000)]
Fix build when bcc is not installed.

18 years ago[TAPDISK] unlock sector on error case
Jake Wires [Fri, 16 Mar 2007 22:23:26 +0000 (15:23 -0700)]
[TAPDISK] unlock sector on error case
Signed-off-by: Jake Wires <jwires@xensource.com>
18 years agorombios: Simplify memory-size bios calls and derive all results from
kfraser@localhost.localdomain [Fri, 16 Mar 2007 18:59:55 +0000 (18:59 +0000)]
rombios: Simplify memory-size bios calls and derive all results from
the e820 map.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolibxc: Explicitly reserve space for special pages in HVM memmap.
kfraser@localhost.localdomain [Fri, 16 Mar 2007 18:59:28 +0000 (18:59 +0000)]
libxc: Explicitly reserve space for special pages in HVM memmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix VM_metrics.get_vcpus_utilisation.
Ewan Mellor [Fri, 16 Mar 2007 18:06:43 +0000 (18:06 +0000)]
Fix VM_metrics.get_vcpus_utilisation.

Fix is due to Ingard Mevåg <ingard.mevag@stud.iu.hio.no>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[QEMU] fix typo in 14405
Tim Deegan [Fri, 16 Mar 2007 16:40:18 +0000 (16:40 +0000)]
[QEMU] fix typo in 14405
Signe-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agohvm ioemu: Add support for IOREQ_TYPE_XCHG in qemu-dm.
kfraser@localhost.localdomain [Fri, 16 Mar 2007 16:22:29 +0000 (16:22 +0000)]
hvm ioemu: Add support for IOREQ_TYPE_XCHG in qemu-dm.

From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm mmio: two additional mmio ops that OS/2 needs emulated.
kfraser@localhost.localdomain [Fri, 16 Mar 2007 16:21:16 +0000 (16:21 +0000)]
hvm mmio: two additional mmio ops that OS/2 needs emulated.

From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm vpic: Fix IRQ priority calculation in 8259 device model.
kfraser@localhost.localdomain [Fri, 16 Mar 2007 16:19:35 +0000 (16:19 +0000)]
hvm vpic: Fix IRQ priority calculation in 8259 device model.
The priority shift should be a right-rotation, not a left-rotation.

From: Trolle Selander <trolle.selander@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux: Various cleanup and locking clarification (and fixing!)
kfraser@localhost.localdomain [Fri, 16 Mar 2007 15:19:08 +0000 (15:19 +0000)]
linux: Various cleanup and locking clarification (and fixing!)
of mm pinning/unpinning logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRevert CONFIG_SPLIT_PTLOCK_CPUS change of 14209:1061c7bff38f3e6e66fee96c407977ad55b3f2f2.
kfraser@localhost.localdomain [Fri, 16 Mar 2007 15:18:33 +0000 (15:18 +0000)]
Revert CONFIG_SPLIT_PTLOCK_CPUS change of 14209:1061c7bff38f3e6e66fee96c407977ad55b3f2f2.

Jan Beulich points out that it's not safe against mm pinning and unpinning.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[HVM][SVM] Save/restore: save the guest's versions of CR0 and EFER
Tim Deegan [Fri, 16 Mar 2007 11:41:10 +0000 (11:41 +0000)]
[HVM][SVM] Save/restore: save the guest's versions of CR0 and EFER
and recalculate the vmcb ones on restore
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM][QEMU] Save/restore: enable HVM live migration
Tim Deegan [Fri, 16 Mar 2007 11:39:50 +0000 (11:39 +0000)]
[HVM][QEMU] Save/restore: enable HVM live migration
by getting page-dirtying bitmaps from qemu-dm as well as from xen.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoxenbus: Clarify and simplify barrier usage.
kfraser@localhost.localdomain [Fri, 16 Mar 2007 10:42:25 +0000 (10:42 +0000)]
xenbus: Clarify and simplify barrier usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[LINUX] Don't pin the initial page tables on x86_64 when XENFEAT_writable_page_tables.
Ian Campbell [Fri, 16 Mar 2007 10:24:56 +0000 (10:24 +0000)]
[LINUX] Don't pin the initial page tables on x86_64 when XENFEAT_writable_page_tables.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoFix the python type dismatch exception when HVM restore
Tim Deegan [Fri, 16 Mar 2007 10:05:57 +0000 (10:05 +0000)]
Fix the python type dismatch exception when HVM restore

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
18 years agoImplement xm list through the Xen-API.
Ewan Mellor [Thu, 15 Mar 2007 23:03:22 +0000 (23:03 +0000)]
Implement xm list through the Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoRaise the VM_BAD_POWER_STATE error with VM.send_sysrq if the domain is not
Ewan Mellor [Thu, 15 Mar 2007 22:15:12 +0000 (22:15 +0000)]
Raise the VM_BAD_POWER_STATE error with VM.send_sysrq if the domain is not
running.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded a new Xen-API call VM.send_sysrq, and use that to implement xm sysrq
Ewan Mellor [Thu, 15 Mar 2007 21:59:34 +0000 (21:59 +0000)]
Added a new Xen-API call VM.send_sysrq, and use that to implement xm sysrq
through Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAllow the xm configuration file location to be overridden with an
Ewan Mellor [Thu, 15 Mar 2007 21:44:20 +0000 (21:44 +0000)]
Allow the xm configuration file location to be overridden with an
environment variable.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoReplace tab with 4 whitespaces in xm/shutdown.py.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 16:54:00 +0000 (16:54 +0000)]
Replace tab with 4 whitespaces in xm/shutdown.py.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agominios: Fix an extern declaration and add an extra 'const' to
kfraser@localhost.localdomain [Thu, 15 Mar 2007 15:27:08 +0000 (15:27 +0000)]
minios: Fix an extern declaration and add an extra 'const' to
definition of a constant set of constant error strings.
Issues identified by Armand Puccetti.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agonet back: Quieten loud error path.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 14:51:32 +0000 (14:51 +0000)]
net back: Quieten loud error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd two arch hooks to gnttab_release_mappings().
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:43:13 +0000 (10:43 +0000)]
Add two arch hooks to gnttab_release_mappings().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
18 years agox86: 32on64 oversight in update_va_mapping
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:38:58 +0000 (10:38 +0000)]
x86: 32on64 oversight in update_va_mapping
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agohvmloader: Simplify 32bit-bios relocator.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:38:06 +0000 (10:38 +0000)]
hvmloader: Simplify 32bit-bios relocator.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoTCGBIOS fixes and cleanups.
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:36:10 +0000 (10:36 +0000)]
TCGBIOS fixes and cleanups.

- Add a missing break into the switch statement
- Simplify the code that switches from protected mode into real mode
  by letting it spill eax; this also fixes the case where the stack is
  above 0xffff.
- reformat the source for 80 columns
- remove some comments that were relevant when the TCG extensions were
  direct part of the real-mode Bochs BIOS

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoAdd boot option to allow console I/O to be placed into ring buffer
kfraser@localhost.localdomain [Thu, 15 Mar 2007 10:33:32 +0000 (10:33 +0000)]
Add boot option to allow console I/O to be placed into ring buffer

This option allows console I/O to be placed into the hypervisor
console ring buffer. When enabled, all output to the console
device will be reflected in the ring buffer.  When disabled (the
default), only hypervisor output is available from the ring buffer.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
18 years agoImplement xm domid and xm console using the Xen-API, and fix xm domname.
Ewan Mellor [Wed, 14 Mar 2007 23:26:33 +0000 (23:26 +0000)]
Implement xm domid and xm console using the Xen-API, and fix xm domname.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAdded the clear flag to host.dmesg, and added host.get_log. Use these to
Ewan Mellor [Wed, 14 Mar 2007 23:16:59 +0000 (23:16 +0000)]
Added the clear flag to host.dmesg, and added host.get_log.  Use these to
implement xm dmesg and xm log using the Xen-API.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix error logging when we get a 500 response.
Ewan Mellor [Wed, 14 Mar 2007 23:14:19 +0000 (23:14 +0000)]
Fix error logging when we get a 500 response.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoImprove the performance of the Xend trace facility, and exclude XendMonitor
Ewan Mellor [Wed, 14 Mar 2007 23:13:37 +0000 (23:13 +0000)]
Improve the performance of the Xend trace facility, and exclude XendMonitor
and XendLogging from those classes that are traced.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoTrap bad return values from Xen-API method handlers, and return an internal
Ewan Mellor [Wed, 14 Mar 2007 23:12:59 +0000 (23:12 +0000)]
Trap bad return values from Xen-API method handlers, and return an internal
error.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoMatch recent removal of VM.VCPUs_policy.
Ewan Mellor [Wed, 14 Mar 2007 21:59:11 +0000 (21:59 +0000)]
Match recent removal of VM.VCPUs_policy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoFix typo in xm-test.
Ewan Mellor [Wed, 14 Mar 2007 21:37:00 +0000 (21:37 +0000)]
Fix typo in xm-test.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>