Commit Graph
14443 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 4a4e26f321 svm: Remove special 'launch' scheduler tail function.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-20 11:28:45 +00:00
kfraser@localhost.localdomain 49a55b0fb3 coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-19 16:55:21 +00:00
kfraser@localhost.localdomain 28f7888d7f 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>
2007-03-19 16:48:24 +00:00
Tim Deegan b81cb0e6ae [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>
2007-03-19 16:28:24 +00:00
Ewan Mellor 0389938d6e 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>
2007-03-19 14:46:51 +00:00
Ian Campbell 3b8a13159a [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>
2007-03-19 14:00:07 +00:00
kfraser@localhost.localdomain f8b68fe2da 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>
2007-03-19 13:48:00 +00:00
kfraser@localhost.localdomain 70fe04c768 Use HOSTCFLAGS with HOSTCC.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-19 13:44:31 +00:00
Christian Limpach 90f0206fe9 [ioemu] Cleanup media change code.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2007-03-19 11:15:28 +00:00
Ewan Mellor ebcb37da0c 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>
2007-03-19 11:09:57 +00:00
kaf24@firebug.cl.cam.ac.uk f55d16fa21 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>
2007-03-19 09:34:42 +00:00
kaf24@firebug.cl.cam.ac.uk 569b0bb3b9 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>
2007-03-19 09:32:52 +00:00
kaf24@firebug.cl.cam.ac.uk ca039d0244 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>
2007-03-19 09:31:04 +00:00
Keir Fraser 3baee98422 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>
2007-03-18 18:26:34 +00:00
Keir Fraser 2cea532bee 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>
2007-03-18 16:49:52 +00:00
Ewan Mellor 5515b59042 Re-raise log level for XendConfig (accidentally changed it to DEBUG previously).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-18 12:06:50 +00:00
Ewan Mellor 734d12f311 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>
2007-03-18 12:06:01 +00:00
Ewan Mellor 61fd72f748 Support xm create through the Xen-API.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-17 23:59:05 +00:00
Ewan Mellor c0767e1cc9 Fix xm list's printing of the memory target, when in legacy mode.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-17 23:57:17 +00:00
Ewan Mellor 98321440ec 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>
2007-03-17 23:55:03 +00:00
Ewan Mellor 716d0617c9 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>
2007-03-17 16:56:39 +00:00
Keir Fraser c95d97855e Fix up nosegneg vsyscall elfnote.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-17 12:24:32 +00:00
Keir Fraser cfcf0ae284 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>
2007-03-17 12:04:48 +00:00
Keir Fraser 36200329b1 hvmloader: More simplification of highmem bios relocation code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 23:56:26 +00:00
Keir Fraser b54ada182d General hvmloader cleanups and write memory fields of CMOS with
correct values.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 23:34:24 +00:00
Keir Fraser 93943bf038 Fix build when bcc is not installed. 2007-03-16 23:33:44 +00:00
Jake Wires 31e57af5d6 [TAPDISK] unlock sector on error case
Signed-off-by: Jake Wires <jwires@xensource.com>
2007-03-16 15:23:26 -07:00
kfraser@localhost.localdomain cdc48dd842 rombios: Simplify memory-size bios calls and derive all results from
the e820 map.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 18:59:55 +00:00
kfraser@localhost.localdomain 6f672de826 libxc: Explicitly reserve space for special pages in HVM memmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 18:59:28 +00:00
Ewan Mellor 96541d59b4 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>
2007-03-16 18:06:43 +00:00
Tim Deegan d4da3e9598 [QEMU] fix typo in 14405
Signe-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-03-16 16:40:18 +00:00
kfraser@localhost.localdomain c4b2f8b295 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>
2007-03-16 16:22:29 +00:00
kfraser@localhost.localdomain aff27f6f5b 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>
2007-03-16 16:21:16 +00:00
kfraser@localhost.localdomain 67cfa18d93 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>
2007-03-16 16:19:35 +00:00
kfraser@localhost.localdomain fbf7473b3a linux: Various cleanup and locking clarification (and fixing!)
of mm pinning/unpinning logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 15:19:08 +00:00
kfraser@localhost.localdomain 3a4b9dc822 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>
2007-03-16 15:18:33 +00:00
Tim Deegan b897b26dbe [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>
2007-03-16 11:41:10 +00:00
Tim Deegan da12f80b3e [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>
2007-03-16 11:39:50 +00:00
kfraser@localhost.localdomain f326023b83 xenbus: Clarify and simplify barrier usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-16 10:42:25 +00:00
Ian Campbell 6b0c303dfe [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>
2007-03-16 10:24:56 +00:00
Tim Deegan 41aa97afd7 Fix the python type dismatch exception when HVM restore
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2007-03-16 10:05:57 +00:00
Ewan Mellor 194dd03ad6 Implement xm list through the Xen-API.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-15 23:03:22 +00:00
Ewan Mellor 77afb8b283 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>
2007-03-15 22:15:12 +00:00
Ewan Mellor 746900680c 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>
2007-03-15 21:59:34 +00:00
Ewan Mellor f918e26c26 Allow the xm configuration file location to be overridden with an
environment variable.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-15 21:44:20 +00:00
kfraser@localhost.localdomain 8058cadb58 Replace tab with 4 whitespaces in xm/shutdown.py.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-15 16:54:00 +00:00
kfraser@localhost.localdomain 5f3c8af40d 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>
2007-03-15 15:27:08 +00:00
kfraser@localhost.localdomain 4da77d5b3f net back: Quieten loud error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-03-15 14:51:32 +00:00
kfraser@localhost.localdomain 8183fb7b82 Add two arch hooks to gnttab_release_mappings().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2007-03-15 10:43:13 +00:00
kfraser@localhost.localdomain 462eb0fc0e x86: 32on64 oversight in update_va_mapping
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2007-03-15 10:38:58 +00:00