Commit Graph
3934 Commits
Author SHA1 Message Date
Tim Deegan 3df1dee7fb [XEND] Be more generous with the default shadow allocation.
Allow enough shadow memory to avoid thrashing the shadow pages,
rather than just enough for safety.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-25 11:44:58 +01:00
Tim Deegan e481cc001d [HVM] Avoid buffer overrun in qemu-dm
The array offset in set_bits_in_row here comes from an otherwise un-checked
VNC client request.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2006-10-25 11:39:57 +01:00
kfraser@localhost.localdomain 9f29e9da09 [BLKTAP] Simplify linked-list insertion/deletion.
This should also avoid (bogus) compiler warnings, as reported
on IA64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-25 10:56:50 +01:00
kfraser@localhost.localdomain 993552511c [XEND] Open xend-debug.log in append mode.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-25 10:27:03 +01:00
kfraser@localhost.localdomain 980684c3ce [TOOLS][XENTOP] Update usage and manpage to include vbd options.
Also a couple of whitespace fixes.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-25 10:25:18 +01:00
Ewan Mellor 86ba178e4f Add x86_64 to the supported architectures since otherwise the tests
don't run.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-24 16:46:02 +01:00
Ewan Mellor 9a4180837b Fix Memory assumptions in the create tests.
Use the architecture specified idea of minimum memory.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-24 14:52:20 +01:00
Christian Limpach 3cce2a0393 [qemu patches] Update patches upto changeset 11870:29b02d929b7e.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-10-24 14:48:06 +01:00
Ewan Mellor 64dd1b77ae This puts two small fixes in the xm-test suite:
- it turns off verbose mode of the ACM module
- copies the test policy to the policies directory only if the directory
has been created

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-24 14:47:41 +01:00
Ewan Mellor d2e25ca823 Added multiarch support to xm-test. Bumped version number to xm-test 1.0.
New README for public ramdisks.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-24 14:47:17 +01:00
Ewan Mellor 8467310110 Update buildroot configs to match snapshot downloaded for public ramdisks.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-24 14:46:23 +01:00
Ewan Mellor c4549d574a Default to appending to "extra" in XenConfig.
PowerPC needs console information from the command line.  Resetting the whole
command line causes false failures.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:17:10 +01:00
Ewan Mellor 1cbb1ec85e Add ability to inspect messages from domain for arbitrary strings.
Used on PowerPC to FAIL(), if the guest domain hits a BUG() and enters XMON.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:16:20 +01:00
Ewan Mellor 7c0553c867 Add configuration data for powerpc.
Allows for building of initrd, and running of tests.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:15:39 +01:00
Ewan Mellor 3c1dd690bc Refactor code to encapsulate architecture decisions in one place.
Also includes some whitespace fixes.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:14:13 +01:00
Ewan Mellor 6723227e25 Rename buildroot -> buildroot-i386.
Also update Makefile.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:07:15 +01:00
kfraser@localhost.localdomain 83217cebdf [XM] Print qualified path to config file on domain creation.
From: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 12:43:32 +01:00
kfraser@localhost.localdomain 78cb34992b Allow domain config file to specify credit-scheduler parameters.
Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2006-10-23 12:28:33 +01:00
kfraser@localhost.localdomain 1a69fbebff [XM] Allow empty resource strings (e.g., when creating an empty CDROM
device). Also clean up error/acces-denied path.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 12:23:57 +01:00
kfraser@localhost.localdomain 94ee555a3a [ACM] Don't use uninitialised struct value if hypercall fails.
From: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 09:57:24 +01:00
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
kaf24@localhost.localdomain a12c7da3a8 Use $CC when building pygrub.
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-22 17:36:28 +01:00
kfraser@localhost.localdomain 28100f12bc [XEND] Remove lazy import of signal module.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
2006-10-20 11:00:08 +01:00
kfraser@localhost.localdomain 5ed80a6a52 [ACM] Documentation cleanup.
This patch eliminates redundant security tools information that was
integrated into the Xen user guide and the xm man page.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-20 10:48:34 +01:00
kfraser@localhost.localdomain 6c96f33316 [HVM] Implement password authentication of VNC connections.
The specification is as mentioned at
http://lists.xensource.com/archives/html/xen-devel/2006-09/msg00666.html
(However, password came to describe plain text)

The difference is follows.
- protocol_authtype() without the necessity was deleted.
- The check on the protocol version was added.
- And, some small modification.

Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
2006-10-20 09:50:09 +01:00
kfraser@localhost.localdomain a75c9af600 Use the name of the title of the system to boot into (instead of the
kernel version) to determine where to make the entry into the grub
configuration file.

Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-20 09:32:16 +01:00
kaf24@firebug.cl.cam.ac.uk 86d55ec10a [VMXASSIST] Some reports that macros do not get picked up by CPP
if they are prefixed with $. Fix by placing macro uses in ().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-19 22:05:07 +01:00
kfraser@localhost.localdomain 3084f41064 [HVM] Windows HCT requires non-zero subvendor details in platform PCI device.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2006-10-19 16:32:11 +01:00
kfraser@localhost.localdomain 22323d5911 [XEND] Two small fixes/improvements from Glauber de Oliveira Costa.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-19 15:53:12 +01:00
kfraser@localhost.localdomain da161aeaa8 [HVM][VMX] Use CPUID instruction virtualization to workaround VMXAssist 4G limit.
Address space access limit in VMXAssist is 4G, because IA-32 only has
4GB virtual address space which VMXassist can use to map physical
memory. The issue is, win2k3 server with more than 4G memory will put
AP GDT above 4G, so when AP changes its mode from real mode to PAE
paging mode, the long jump instrction it uses need access AP GDT
entries which resides above 4G, but because of this constraint, it can
not access GDT and so fails boot.

Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-10-19 15:49:16 +01:00
kfraser@localhost.localdomain bb7670b698 [ACM] An environment where ACM and its tools have not been installed before
will throw an error during 'make' of the test suite. This fixes the problem.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-19 15:15:36 +01:00
kfraser@localhost.localdomain 5dfa416d52 Don't use $(LINK.o), as it doesn't pick up -m32/-m64 from $(CFLAGS).
Signed-off-by: John Levon <john.levon@sun.com>
2006-10-19 15:13:09 +01:00
kfraser@localhost.localdomain 5bcff8383d [HVM] XenTrace enhancement for HVM SMP guests.
Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
2006-10-18 19:20:36 +01:00
kfraser@localhost.localdomain f9038804d6 Replace test-gcc-flag with Linux-style cc-option.
Improve on Linux implementation by looking for any output
on stdout/stderr. This indicates badness.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-18 19:14:34 +01:00
kfraser@localhost.localdomain 923fbdf607 [HVM] Enable DMA mode for CD-ROM IDE ATAPI interface.
Signed-off-by: Winston Wang <winston.l.wang@intel.com
2006-10-18 18:41:47 +01:00
kfraser@localhost.localdomain 1370e6c9e0 [TPM] Check the existence of the xenstore path before trying to read from it.
This prevents an error from being logged. Use the wrapped command for
reading from the xenstore instead of the native one.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 18:37:18 +01:00
kfraser@localhost.localdomain 4ca1612143 [HVM] Move RTC emulation into the hypervisor.
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
2006-10-18 18:35:21 +01:00
kfraser@localhost.localdomain 2b30fc3c70 [SOLARIS] More tools fixes.
Many of the tools use C99 features such as bool, or expect certain functions.
Fix the CFLAGS to enable these on Solaris.

Also make sure the correct $CC is passed to Python.

Signed-off-by: John Levon <john.levon@sun.com>
2006-10-18 18:13:57 +01:00
kfraser@localhost.localdomain aec48f2d9d [ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.

Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
2006-10-18 17:54:58 +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 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 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 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 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 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