]> xenbits.xensource.com Git - xen.git/log
xen.git
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>
18 years agoFix typo.
Ewan Mellor [Wed, 14 Mar 2007 21:34:43 +0000 (21:34 +0000)]
Fix typo.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAdded VM_metrics.get_all.
Ewan Mellor [Wed, 14 Mar 2007 21:04:04 +0000 (21:04 +0000)]
Added VM_metrics.get_all.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoAdded Xen-API features needed to implement xm info: host.sched_policy
Ewan Mellor [Wed, 14 Mar 2007 21:02:58 +0000 (21:02 +0000)]
Added Xen-API features needed to implement xm info: host.sched_policy
(replacing VM.VCPUs_policy, which never made sense), and
host.cpu_configuration.  Add other details into either host.software_version
or host.other_config as appropriate.

Implement xm info and the scheduler-detection check using this.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years agoImplement VM_metrics Xen-API class.
Ewan Mellor [Wed, 14 Mar 2007 20:41:56 +0000 (20:41 +0000)]
Implement VM_metrics Xen-API class.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoAdded Xen-API support to xm shutdown.
Ewan Mellor [Wed, 14 Mar 2007 20:27:57 +0000 (20:27 +0000)]
Added Xen-API support to xm shutdown.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
18 years ago[BLKTAP] remove spurious error message
Jake Wires [Wed, 14 Mar 2007 21:18:51 +0000 (14:18 -0700)]
[BLKTAP] remove spurious error message
Signed-off-by: Jake Wires <jwires@xensource.com>
18 years agohvm: Firmware build requires dev86 (bcc) >= 0.16.14.
kfraser@localhost.localdomain [Wed, 14 Mar 2007 19:35:26 +0000 (19:35 +0000)]
hvm: Firmware build requires dev86 (bcc) >= 0.16.14.
Earlier versions (at least 0.16.0) generate incorrect code.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoImplement VM.{add_to,remove_from}_VCPUs_params.
Ewan Mellor [Tue, 13 Mar 2007 22:13:40 +0000 (22:13 +0000)]
Implement VM.{add_to,remove_from}_VCPUs_params.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years agoIn xm shell, add a space to the function names when tab-completing.
Ewan Mellor [Tue, 13 Mar 2007 22:12:18 +0000 (22:12 +0000)]
In xm shell, add a space to the function names when tab-completing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
18 years ago[LINUX] 32on64 kdump: Allow a 32 bit kernel to read a 64 bit dump.
Ian Campbell [Wed, 14 Mar 2007 16:58:30 +0000 (16:58 +0000)]
[LINUX] 32on64 kdump: Allow a 32 bit kernel to read a 64 bit dump.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[LINUX] Kexec: Ensure that pages allocated for kexec have MFNs which are within
Ian Campbell [Wed, 14 Mar 2007 16:39:32 +0000 (16:39 +0000)]
[LINUX] Kexec: Ensure that pages allocated for kexec have MFNs which are within
the required limits.

Previously we were lucky since most dom0 pages would be low enough but now Xen
is more aggressive in giving out higher MFNs when it can.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[XEN] 32on64 kexec: Make the compat page table cover the first 4G of physical memory.
Ian Campbell [Wed, 14 Mar 2007 16:36:04 +0000 (16:36 +0000)]
[XEN] 32on64 kexec: Make the compat page table cover the first 4G of physical memory.

This gives the guest kernel more flexibility on where it places the control page.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[XEND] Mark save record fd close-on-exec after calling xc_restore
Tim Deegan [Wed, 14 Mar 2007 12:49:40 +0000 (12:49 +0000)]
[XEND] Mark save record fd close-on-exec after calling xc_restore
so that qemu doesn't end up with an open fd on it
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agohvm: Add a revision 1 FADT in ACPI, and link the original revision-4
kfraser@localhost.localdomain [Wed, 14 Mar 2007 11:38:26 +0000 (11:38 +0000)]
hvm: Add a revision 1 FADT in ACPI, and link the original revision-4
FADT only to XSDT. It avoids a buffer overflow in the initialization
of Window 2000 ACPI HAL (pre ACPI 2.0 OS), and thus enables the
installation and boot. This compatibility practice is also used in
hardware, please refer to:
 http://www.acpi.info/presentations/S01USMOBS169_OS%20new.ppt

Signed-off-by: Qing He <qing.he@intel.com>
18 years agohvm: Print bad DFR value for vlapic if a bad value is detected.
kfraser@localhost.localdomain [Wed, 14 Mar 2007 11:22:59 +0000 (11:22 +0000)]
hvm: Print bad DFR value for vlapic if a bad value is detected.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAMD HVM: Fix enter-realmode stub to initialise 32-bit GPRs.
kfraser@localhost.localdomain [Wed, 14 Mar 2007 11:09:13 +0000 (11:09 +0000)]
AMD HVM: Fix enter-realmode stub to initialise 32-bit GPRs.

This fixes booting Ubuntu live ISO, which assumes the upper half of
%esp is zero on entry.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoadd usb device save/restore in qemu
Tim Deegan [Wed, 14 Mar 2007 10:44:56 +0000 (10:44 +0000)]
add usb device save/restore in qemu

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
18 years ago[HVM] Save/restore: more state propagation in xend
Tim Deegan [Tue, 13 Mar 2007 15:55:37 +0000 (15:55 +0000)]
[HVM] Save/restore: more state propagation in xend
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoxm: Allow vcpu-pin to specify 'all' for CPU list.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 14:56:03 +0000 (14:56 +0000)]
xm: Allow vcpu-pin to specify 'all' for CPU list.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxen/x86: Tweak #PF handler. Simplify gdbstub copy to/from guest.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 14:04:31 +0000 (14:04 +0000)]
xen/x86: Tweak #PF handler. Simplify gdbstub copy to/from guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agolinux: No need to force pcibios_scan_all_fns() on modern Xen.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 13:28:26 +0000 (13:28 +0000)]
linux: No need to force pcibios_scan_all_fns() on modern Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvmloader: Avoid compile warnings char vs. unsigned char.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 10:32:52 +0000 (10:32 +0000)]
hvmloader: Avoid compile warnings char vs. unsigned char.
Avoid 'magic number' hardcoded string lengths.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoUpdate defconfigs for new XEN_COMPAT_300004 option.
Ian Campbell [Tue, 13 Mar 2007 10:02:45 +0000 (10:02 +0000)]
Update defconfigs for new XEN_COMPAT_300004 option.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[XM-TEST] vTPM test changes
kfraser@localhost.localdomain [Tue, 13 Mar 2007 09:52:51 +0000 (09:52 +0000)]
[XM-TEST] vTPM test changes

Remove an uninitialized variable.
For some reason the 'ps aux' command does not see the process anymore
(since some time on the weekend). Need to add 'COLUMNS=n'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agodocs: update some todo items.
kfraser@localhost.localdomain [Tue, 13 Mar 2007 09:52:11 +0000 (09:52 +0000)]
docs: update some todo items.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years ago[LINUX] Fix typo so 3.0.4 compatability works.
Ian Campbell [Tue, 13 Mar 2007 09:07:55 +0000 (09:07 +0000)]
[LINUX] Fix typo so 3.0.4 compatability works.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years ago[HVM] Save/restore: update HVM detection in save/restore code in xend.
Tim Deegan [Mon, 12 Mar 2007 18:04:04 +0000 (18:04 +0000)]
[HVM] Save/restore: update HVM detection in save/restore code in xend.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agolinux: Adjust memory allocation condition in netback to reduce memory
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:55:02 +0000 (14:55 +0000)]
linux: Adjust memory allocation condition in netback to reduce memory
pressure on Xen and avoid unnecessarily stalling receives.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoxen: Generic linear pagetable support for x86 PV guests.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:52:11 +0000 (14:52 +0000)]
xen: Generic linear pagetable support for x86 PV guests.
Any linear mapping is permitted, except for L3-PAE-maps-L3-PAE,
which makes no sense even on native.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agox86: PAE linear page tables.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:47:00 +0000 (14:47 +0000)]
x86: PAE linear page tables.

While full linear page table support makes little sense (and would be
more complicated to implement), partial linear page table support is
almost identical to that in non-PAE, and is used (at least) by NetWare.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agolinux: No need to manually bring VCPUs online across 'fast' save/restore.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:11:43 +0000 (14:11 +0000)]
linux: No need to manually bring VCPUs online across 'fast' save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Set VGCF_online flag appropriately for getvcpucontext.
kfraser@localhost.localdomain [Mon, 12 Mar 2007 14:11:07 +0000 (14:11 +0000)]
xen: Set VGCF_online flag appropriately for getvcpucontext.
Signed-off-by: Keir Fraser <keir@xensource.com>