Commit Graph
631 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain a3fc4d842e [SOLARIS] Don't mlock() hypercall buffers.
On solaris mlock requires a page aligned address and mlock doesn't
ensure the pages won't minor page fault.

Signed-off-by: Mark Johnson <mark.johnson@sun.com>
2006-10-23 09:52:51 +01:00
kfraser@localhost.localdomain 355213fabc [HVM] E820 table misreports the ACPI NVS/Data information which
triggers a complaint from Windows HCT.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Winston Wang <winston.l.wang@intel.com>
2006-10-18 17:39:52 +01:00
kfraser@localhost.localdomain 68666c06e8 xc core structures are not Linux specific.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-18 11:38:59 +01:00
kfraser@localhost.localdomain 7b7b7c2fef Fix multiple inclusion when building libxenguest.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:35:13 +01:00
kfraser@localhost.localdomain b9488ab5f5 [SOLARIS] Create kernel-interface implementations for libxc and xenstored.
Additionally, on Solaris, tell the kernel when xenstored is running.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:21:25 +01:00
kfraser@localhost.localdomain 2d0b60a90f [SOLARIS] A couple of simple compile fixes for tools/ on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:15:59 +01:00
kfraser@localhost.localdomain cf1aa17df0 Remove ERR() macro from libxc. Use ERROR/PERROR as appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 18:05:42 +01:00
kfraser@localhost.localdomain 2373f1b10e Remove non-existent xc_ptrace_core() from xenctrl.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 18:00:51 +01:00
kfraser@localhost.localdomain c0fd920e98 [SOLARIS] Don't build ptrace code on Solaris.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 17:59:32 +01:00
kfraser@localhost.localdomain d61113c5c7 [SOLARIS] On Solaris, GCC is configured to use Sun's LD. Fix the build to use
the correct flags, and link against libsocket where necessary.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 17:17:57 +01:00
kfraser@localhost.localdomain 6311dc03da Clean up duplication of 'install' macros in the Makefiles.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 15:57:05 +01:00
kaf24@localhost.localdomain 83a53cd75c Revert 11728:30f13007be. Breaks Solaris guests.
Will need a new method for handling padded gzip files.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-10 22:04:01 +01:00
Ian Campbell 9fd20b0666 Correct check for extended-cr3 support in __xen_guest fallback code.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-10 10:06:56 +01:00
kfraser@localhost.localdomain 5000a6a1e0 [XEND] No need to decompress the initrd when building a domain.
The guest OS should be capable of parsing an image file in
whatever format was produced by that OS's tools. Furthermore,
we have seen initrd images with trailing garbage. This causes
us to calculate the wrong size for the uncompressed data and hence
fail to build the guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-09 13:50:00 +01:00
kaf24@firebug.cl.cam.ac.uk 4dd3045b5e [LIBXC] Fix ptrace memory-mapping code to map pagetables read-only.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-05 09:30:07 +01:00
kfraser@localhost.localdomain ada55182d2 [LINUX] Make evtchn device use a dynamic minor number.
Also update the code in tools to create the device node if udev fails.
The tools now read the sysfs system to find the minor number needed.

Original patch from  Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-29 14:20:52 +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
Hollis Blanchard ac9ed2ddf6 [POWERPC] merge with xen-unstable.hg
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-09-18 14:28:16 -05:00
hollisb@localhost 6c6970a438 [LIBXC][POWERPC] Add missing xc_memory.c
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-09-18 13:08:58 -05:00
Hollis Blanchard ce993e2b23 [LIBXC][POWERPC] Update to latest flatdevtree snapshot.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-09-07 17:25:52 -05:00
hollisb@localhost ff3dfde07d [POWERPC] merge with xen-unstable.hg
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-09-18 12:48:56 -05:00
kaf24@firebug.cl.cam.ac.uk 39cda1cf3f [TOOLS] xenctrl.h defines __XEN_TOOLS__ if it's not already.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 18:54:50 +01:00
kaf24@firebug.cl.cam.ac.uk 8a1ca3b97e Merge with xenppc-unstable-merge.hg. 2006-08-30 22:36:18 +01:00
kaf24@firebug.cl.cam.ac.uk 1b4f247ac5 Merge with xen-ia64-unstable.hg 2006-08-30 21:38:34 +01:00
kaf24@firebug.cl.cam.ac.uk d96c9af4a3 [XEN] Add a start_pfn field in xen_domctl_getmemlist.
This is used by ia64 because it directly reads the P2M table.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-30 18:19:04 +01:00
awilliam@xenbuild.aw 11ecd5026e merge with xen-unstable.hg 2006-08-28 16:26:37 -06:00
kaf24@localhost.localdomain 99deb3f2fb [XEN] Rename shadow2 to shadow and move the various source
files into a sensible directory hierarchy.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-28 12:09:36 +01:00
awilliam@xenbuild.aw 22932bd03c merge with xen-unstable.hg 2006-08-27 10:24:41 -06:00
Alex Williamson a1041848b5 [PATCH] fix null pointer dereference in xen_guest_lookup()
The latest ELF changes have a null pointer dereference bug when you
have neither an elf notes section nor a __xen_guest_string.  This patch
checks for the existence of the __xen_guest_string prior to using it.
Please apply.  Thanks,

	Alex

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---
2006-08-27 06:56:01 +01:00
kfraser@localhost.localdomain 1df421476a Replace dom0_ops hypercall with three new hypercalls:
1. platform_op -- used by dom0 kernel to perform actions on the
    hardware platform (e.g., MTRR access, microcode update, platform
    quirks, ...)
 2. domctl -- used by management tools to control a specified domain
 3. sysctl -- used by management tools for system-wide actions

Benefits include more sensible factoring of actions to
hypercalls. Also allows tool compatibility to be tracked separately
from the dom0 kernel. The assumption is that it will be easier to
replace libxenctrl, libxenguest and Xen as a matched set if the
dom0 kernel does not need to be replaced too (e.g., because that
would require vendor revalidation).

From here on we hope to maintain dom0 kernel compatibility. This
promise is not extended to tool compatibility beyond the existing
guarantee that compatibility will not be broken within a three-level
stable release [3.0.2, 3.0.3, etc.].

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-25 18:39:10 +01:00
awilliam@xenbuild.aw 5f065ba906 [IA64] Modify xc_ia64_hvm_build for using the new Xen event channels
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-08-23 13:21:02 -06:00
Ian Campbell 2cc329da26 [TOOLS] Cleanups to domU ELF loader.
- Remove debugging statements.
- Cope better with archtectures where neither ELF notes or __xen_guest
  are needed or required.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-08-23 18:35:21 +01:00
awilliam@xenbuild.aw 0c6850e965 [IA64] update xc_shadow_control call with new parameters
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-08-23 11:16:26 -06:00
kfraser@localhost.localdomain db51cd09d3 Remove all traces of the obsolete BVT scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-23 17:14:38 +01:00
kfraser@localhost.localdomain ae95fdf65a [TOOLS] Remove the 'cpuperf' misc tool. Xenoprof is the
correct tool to use for hardware perfctr monitoring now.
Also remove unused xc_msr MSR accessor functions from libxenctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-23 15:02:55 +01:00
Ian Campbell 15d8f355a2 [TOOLS] Allow tools to load kernels which use an ELF notes segment.
Compatability with kernels using the __xen_guest section is retained.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-08-23 14:37:39 +01:00
kfraser@localhost.localdomain 07f2bdb30d [SHADOW] Clean up the DOM0_SHADOW_OP interface.
Also bump the dom0 interface version for tools (but
not for dom0 kernel!).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-22 18:50:01 +01:00
kfraser@localhost.localdomain 314ded7410 [x86_64] Guests no longer set _PAGE_USER on kernel mappings.
This may allow guest kernels to be run outside ring 3 in future, and
also provides scope for optimisations today (e.g., using global bit on
user mappings).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-22 15:26:40 +01:00
Christian Limpach 6631e301e8 [hvm] Export gpfn of store page to guest - not mfn.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-22 15:13:07 +01:00
Jimi Xenidis 24ca246402 [POWERPC] fix bad merge
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-08-20 13:00:31 -04:00
Hollis Blanchard 57893ee298 [POWERPC][TOOLS] sync with start_info_t changes
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-08-29 14:18:23 -05:00
Christian Limpach aad7f0d072 [qemu] Support HVM guests with more than 3.75G memory.
Changes are:
1) M2P table and e820 table are changed to skip address space from
HVM_RAM_LIMIT_BELOW_4G to 4G.
2) shared io page location, when less than HVM_RAM_LIMIT_BELOW_4G
memory, it's the last page of RAM as today, or it's the last page of
HVM_RAM_LIMIT_BELOW_4G RAM.
3) in qemu-dm address space from HVM_RAM_LIMIT_BELOW_4G to 4G are
stuffed with mfns starting from 4G, so the 1:1 mapping can still works.
This is ugly, but another limit check patch as changeset 10757 will
prevent qemu-dm to access this range.  This ugly stuffing will be
removed when the patch to remove 1:1 mapping from qemu-dm gets accepted
in the future.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-08-17 20:31:13 +01:00
tdeegan@york.uk.xensource.com 49f7c7364e Replace shadow pagetable code with shadow2. 2006-08-16 17:02:35 +01:00
kfraser@localhost.localdomain b073ccc00f [LIBXC] Set close-on-exec on the privcmd fd in libxc.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2006-08-15 16:25:04 +01:00
kfraser@localhost.localdomain 121ec85fcf Clean up console fields in start_info structure. Add compat code for
older kernels so they can use the old start_info API.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-15 15:50:36 +01:00
kfraser@localhost.localdomain 132a2337d6 Make room in e820map for SMBIOS tables.
Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
2006-08-14 17:29:11 +01:00
kfraser@localhost.localdomain b76fbc3cc5 [LIBXC] Remove unused xc_evtchn_status().
Signed-off-by: John Levon <john.levon@sun.com>
2006-08-14 16:39:35 +01:00
kaf24@localhost.localdomain 848ded1e09 [XEN] Clean up e820 definitions. Define shared set in hvm public dir.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-13 17:47:59 +01:00
kaf24@localhost.localdomain 3321c3c8e9 [XEN] Add a warning about changeable size of shared_info structure.
sizeof(shared_info_t) can change even in compatible hypervisor
versions.
Add a clear warning about this, and fix the few places relying on it.
In addition, add some padding to arch_shared_info, to allow future
additions to the structure without breaking known offsets of members
following it in the shared info.

Signed-off-by: John Levon <john.levon@sun.com>
2006-08-12 16:18:08 +01:00
kfraser@localhost.localdomain 84b9298c75 [HVM] Remove unused apic_enabled field from hvm_info_table.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-10 15:45:47 +01:00