Commit Graph
11813 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 044aeaa616 [XEN] Clamp dom0 memory and CPUs to fit in available resources.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 17:45:19 +01:00
kfraser@localhost.localdomain 761d4da84e [LINUX] Eliminate microcode driver's dependency on sys_m{,un}lock as
well as the needless use of static variables.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-18 17:41:36 +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 81ba8bb990 [ACM] Fix binary alignment in tools.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 17:29:08 +01:00
kfraser@localhost.localdomain 7c20d5e02e [ACM] Makes acm_setup arch-independant.
Move module extraction code to x86/setup.c

Be sure the dump binary file is aligned.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-10-18 17:24:36 +01:00
kfraser@localhost.localdomain 2f04c3f01e [ACM] Keep stream aligned.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-10-18 17:17:15 +01:00
kfraser@localhost.localdomain 2db40abe99 [OpenBSD] Various changes to get Xen building on OpenBSD.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 17:08:09 +01:00
kfraser@localhost.localdomain ea847a59dc Clean up linker flag definitions.
1. GNU ld does not understand -m{32,64}. It must be cooked for it by
    the GCC driver program.
 2. Where GNU ld is directly called we must use -melf_{i386,x86_64}.
 3. We cannot avoid calling GNU ld directly in some cases (e.g., when
    specifying GNU-specific linker scripts) as on some host
    architectures the GCC driver is configured to call the host
    linker.
 4. We cannot add -melf_{i386,x86_64} to LDFLAGS as the option is
    not recognised by GCC.

Hence we define new LDFLAGS_DIRECT, to be added to the command line
only when invoking GNU ld directly.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 16:56:27 +01:00
kfraser@localhost.localdomain 8917832a55 [TPM] Allow all tests of the xm test suite to be run when ACM
security is turned on in hypervisor. This is done by implicitly
labeling VMs and resources if they have not been labeled through
explicit calls.
To allow the xm tests suite to label resources automatically, run

./configure --enable-full-labeling

once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 16:08:58 +01:00
kfraser@localhost.localdomain b77b89e80e [TPM] Add tests cases for the ACM security hooks and tools to
the xm test suite. The tests can be run with ACM turned off (not
compiled into Xen; see user doc for this), but most of them will be
skipped then. They can be run with a command like

make -C tests/security-acm check-TESTS

from the xm-test directory. They are also part of the default tests in
the tests suite and part of a new group test 'security'.
Since some of the tests require resources to be labeled, one must
explicitly enable the resources to be allowed to be labeled by the
test
suite by running

./configure --enable-full-labeling

once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 16:07:55 +01:00
kfraser@localhost.localdomain ee89b4ab59 Fix 'chk' scripts for generic shell (non-bash) and *BSD.
From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 15:26:08 +01:00
kfraser@localhost.localdomain 19c8d7a8fa [TPM] Fix the tpm frontend to properly shut down when the domain
is shutting down (call to xenbus_frontend_closed()). Also the driver
now waits longer until an outstanding response has been received (to
support a busy system). Moves the 'Unknown' state with the other
states that are not used by the TPM frontend.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 15:16:37 +01:00
kfraser@localhost.localdomain a20cc3e41a [HVM] MMIO/PIO fixes and cleanups.
1. Fix MMIO/PIO cross page boundary copy for MOVS and OUTS/INS
    handling.
 2. Clean up send_mmio_req/send_pio_req interface.
 3. Clean up handle_mmio.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
2006-10-18 15:13:41 +01:00
kfraser@localhost.localdomain 3943db7763 [XEN] Can be built -std=gnu99 (except for .S files).
Need to be careful with static initialisers:
 1. *_LOCK_UNLOCKED, CPU_MASK_* no longer include a cast
 2. Dynamic uses of the above are replaced by
    appropriate function invocations.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 14:46:48 +01:00
Tim Deegan 946eb2a9da Merge 2006-10-18 14:36:20 +01:00
Tim Deegan 637a66db3d [XEN] Fix CR3 plumbing for shadowed PV PAE guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-18 14:34:31 +01:00
kfraser@localhost.localdomain a3ef82b068 Avoid need for GREP variable by avoiding GNUisms. The
only one we appear to have is use of '-q'. Replace it
with redirection to /dev/null.

Also avoid use of 'tail' by replacing with 'head' or
'grep' as appropriate.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 13:43:35 +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 fd1ceaa6fc Use new 'hg parents --template' support instead of awk scraping.
Also avoid use of non-portable 'whoami'. Use the USER env var instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 11:37:45 +01:00
kfraser@localhost.localdomain 44ce1b4011 [SOLARIS] Provide non-gcc-specific defn. of RING_HAS_UNCONSUMED_REQUESTS.
From: Mark Johnson <mark.johnson@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 19:04:46 +01:00
kfraser@localhost.localdomain 8405357df9 [NET] back: Remove unused variable declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 19:03:47 +01:00
kfraser@localhost.localdomain 22241b17fe [SOLARIS] Xen daemons are managed separately, so we need a way to start
just xend, and we need to disable xend's self-restarter.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:52:17 +01:00
kfraser@localhost.localdomain 1943191f67 Define REX64_PREFIX to account for assembler syntax differences on SVR4 targets.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:50:08 +01:00
kfraser@localhost.localdomain aeeadb0726 Add a XEN_VENDORVERSION variable to allow additional text on top of
the extra version.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:45:18 +01:00
kfraser@localhost.localdomain afe801a3be It's not correct to call endwin() if initscr() fails, and it crashes
older libcurses implementations.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:36:26 +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 b7fe460763 [SOLARIS] The hotplug scripts live in a different place on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:28:27 +01:00
kfraser@localhost.localdomain b1415bc0d6 [SOLARIS] Add the correct machine name for Solaris to arch.py.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:23:24 +01:00
kfraser@localhost.localdomain 26857f0f26 Allow CONFIG_IOEMU=n to work.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:22:19 +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 5b8acb9ddf [SOLARIS] Disable "chk" script. The tests aren't portable and there's little need for it.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 18:17:19 +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 a36c8be096 [SOLARIS] On sysv platforms, gas defaults '/' to a comment
character. Pass in the right option to disable this behaviour, so
Xen's semantics of "divide" apply.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 17:29:19 +01:00
kfraser@localhost.localdomain 37dbdb0a00 [SOLARIS] Fix Xen build. ACPI headers aren't Linux-specific.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 17:27:11 +01:00
kfraser@localhost.localdomain 3c498d8230 [SOLARIS] Some makefile fragments expect a better shell than Solaris's /bin/sh,
so force bash usage.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 17:19:31 +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 7ffd47fbf6 [SOLARIS] Use GNU grep on Solaris.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 16:53:39 +01:00
kfraser@localhost.localdomain 2023a310ed [SOLARIS] A couple of small fixes to the Makefiles for the kernel tool headers.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 16:51:09 +01:00
kfraser@localhost.localdomain a278bc0ea1 Introduce Makefile config fragments for OS-specific differences.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 16:48:05 +01:00
kfraser@localhost.localdomain 6f007b178f Remove obsolete tool 'mbootpack'. SYSLINUX now supports Multiboot format.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 16:13:13 +01:00
kfraser@localhost.localdomain 6794b71355 Ignore tags and cscope from different tools versions, plus .config.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-17 16:10:09 +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
kfraser@localhost.localdomain fdd8e50cfe Define -m32/-m64 in LDFLAGS for x86 builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 15:54:06 +01:00
kfraser@localhost.localdomain b11b29890d Don't use -Wunused-value. It's too aggressive with GCC4.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 15:53:42 +01:00
Tim Deegan f81b951ee4 [XEN] remove dead code from shadow auditing.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-17 15:18:51 +01:00
Tim Deegan cf644d65c9 [XEN] Heuristic for fast revoke-write-access in HIGHPTE linux guests
This adds a heuristic for speeding up revocation of write access to
pagetables for HIGHPTE linux kernels, which previously had to brute-force
search all L1 shadows.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-17 11:14:17 +01:00
Tim Deegan f26cc78903 [XEN] Don't keep shadows of PAE guest l3 tables.
Holding pages readonly that have guest PAE l3 tables in them means
a performance hit and potential bug if the guest puts other
datastructures on the same page as an l3 table.  Instead of shadowing
them, treat PAE guests as if they had four CR3 registers, and load all
four top-level entries when we handle a CR3 write.  This also cuts about
500 lines of special-case refcounting and re-copying code.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-17 11:11:48 +01:00