Commit Graph
15694 Commits
Author SHA1 Message Date
Ian Campbell 44cdadd1cd [32on64] Copy the right grant table status code back to the guest.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2007-08-06 13:19:44 +01:00
kfraser@localhost.localdomain 647f41c70d hvm: Fix PV-on-HVM drivers to not execuite hypercall page while it is
being re-initialised.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
2007-08-06 11:16:14 +01:00
kfraser@localhost.localdomain b12c493fd8 hvm: Fix save/restore when callback_via line is routed through a PCI
INTx wire.
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-06 11:08:57 +01:00
kfraser@localhost.localdomain f26a3dbc36 pygrub: LiloConf.py supports root and read-only
LiloConf.py ignores the following options: root and read-only.
This patch fixes the issue.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
2007-08-06 10:13:34 +01:00
kfraser@localhost.localdomain e080ffba8d Fix/cleanup destroyDevice code path in xend.
When calling destroyDevice code path (e.g. xm block-detach dom devid),
allow specifying an integer device id or a device name such as xvdN or
/dev/xvdN.  Allowing the /dev/xvdN form is useful when detaching
devices from dom0.  Bootloaders may do this to unmount a disk
previously mounted in dom0.

Move examination of device ID format into the DevController,
permitting device controllers to determine a valid device ID instead
of higher level code.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-08-06 10:12:34 +01:00
kfraser@localhost.localdomain 883ff61657 [ACM] Support for removing / replacing a policy
Add support for removing/replacing a policy from the running
system. This operation is only successful if currently running VMs
would also be allowed to run under the new policy. Removing the
current policy means that the default policy is installed, which then
only has support for a single VM label and STE type (SystemManagement)
and is the same policy that the system starts up with when no policy
is chosen.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-08-06 10:11:25 +01:00
kfraser@localhost.localdomain b163ba1607 [ACM] Support for running unlabeled domains alongside labeled ones
Add support for running unlabeled domains alongside labeled ones, if
the policy contains a VM label with name '__UNLABELED__' and an STE
type with the same name. The ezpolicy tool has been modified to
automatically suggest a policy under which unlabeled domains can
run. The user may delete this, if this is not desired.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-08-06 10:10:34 +01:00
kfraser@localhost.localdomain 5a9b83aea8 domain builder: Zero start_info struct.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-03 12:23:03 +01:00
kfraser@localhost.localdomain ae52354f2b On debug builds, scrub pages with non-zero poison.
Will flush out guests which are relying on zeroed memory.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-03 12:22:33 +01:00
Tim Deegan e8f0f5cb24 [HVM] Yet another MCA/MCE MSR.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-08-03 12:10:35 +01:00
kfraser@localhost.localdomain 81100c2a86 es7000: Remove the bulk of the ES7000 specific code from Xen.
On the Unisys ES7000-One, Xen now uses the bigsmp APIC driver. This patch
has been tested on the ES7000 and a commodity box.

Signed-off-by: Raj Subrahmanian <raj.subrahmanian@unisys.com>
2007-08-03 09:04:29 +01:00
kfraser@localhost.localdomain 566fe5d1a8 Merge with ppc/xen-unstable.hg 2007-08-02 16:03:35 +01:00
Hollis Blanchard 2afaabea66 merge with xen-unstable.hg 2007-08-02 09:54:18 -05:00
Hollis Blanchard 1813dfa417 [POWERPC][XEN] Commit missing multiboot files.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-08-02 09:50:55 -05:00
kfraser@localhost.localdomain 3e6b2f19e3 libelf: Clean up and fix up BSD symtab handling.
Should now (hopefully) work for domU and dom0 builders.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-02 14:18:38 +01:00
kfraser@localhost.localdomain d2d0d5dd83 elfloader: Re-add break stmt I stupidly removed from elf parser.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-02 10:05:14 +01:00
kfraser@localhost.localdomain 9ce0c85578 libelf: Remove unneeded extra elf_set_verbose() invocation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-02 09:53:13 +01:00
Tim Deegan 5948ff2669 Merge 2007-08-02 09:02:26 +01:00
Tim Deegan 5c0ffac838 [MINIOS] fix x86_64 p2m map and CFLAGS
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-08-02 09:02:08 +01:00
kfraser@localhost.localdomain 140b3cd627 xenstore: Redirect stdin/stdout/stderr to /dev/null.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-01 19:34:56 +01:00
kfraser@localhost.localdomain 79a18447fe xenstore: Do not assign to stdout/stderr/stdin - they are not
implemented as variables on all systems.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-01 19:17:08 +01:00
kfraser@localhost.localdomain 71b66d7893 [ELF] Load elf symbols when BSD_SYMTAB=yes.
When a guest kernel specifies BSD_SYMTAB=yes, then Xen loads the ELF
symbols for it. This works with Xen 3.0.4, but not with Xen 3.1.
During the libelf work between Xen 3.0.4 and Xen 3.1 the loading got
broken in the way, that BSD_SYMTAB gets parsed but not handled.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-08-01 15:47:54 +01:00
kfraser@localhost.localdomain b1757490f0 xenstored: Do not write to stderr if we are daemonised!
This fixes client reader-thread deaths in which a 'garbage string' was
being read instead of a well-formed message header.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-01 12:55:10 +01:00
kfraser@localhost.localdomain 019e22bb40 xenstored: Remove unused util code.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-01 12:05:42 +01:00
kfraser@localhost.localdomain 613140dc23 blktap: Fix unaligned access to blktap/tapdisk message payloads.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-08-01 09:11:08 +01:00
kfraser@localhost.localdomain 4eb73854d7 Fix file descriptor leak in blktapctrl
The blktapctrl process is responsible for spawning individual tapdisk
processes. It does this using the 'system' method, but unfortunately
none of its file descriptors have the close-on-exec flag set. The
parent blktapctl process opens a couple of unix domain sockets
per-tapdisk it spawns. So the first tapdisk get 2 FDs leaked to it,
the second gets 4 FDs leaked to it, the 3rd gets 6 and so on. The use
of 'system' also unneccessarily invokes the shell.

Replace system with fork/execvp, and explicitly close all file handles
up to _SC_OPEN_MAX.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2007-08-01 09:04:20 +01:00
kfraser@localhost.localdomain a0bc2a2218 Merge with ppc/xen-unstable.hg. 2007-08-01 08:59:03 +01:00
kfraser@localhost.localdomain bd51a860fa [IA64] Fix tools build.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2007-08-01 08:57:55 +01:00
kfraser@localhost.localdomain adc64e18a9 hvm: Large-scale cleanups and fixes to event deliver logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-31 18:59:00 +01:00
kfraser@localhost.localdomain d169d9d572 hvmloader: Avoid bogus use of NULL pointer.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-31 15:09:45 +01:00
Tim Deegan 8f5a6682da [HVM] Inject #PF when mmio instruction fetch fails
instead of crashing the guest.  This can happen if one vcpu pages out
another vcpu's kernel text page while the other is performing an mmio op.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-31 11:37:27 +01:00
kfraser@localhost.localdomain 36e06c262b hvm: Define common (across VMX and SVM) set of event types.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-31 10:11:47 +01:00
kfraser@localhost.localdomain c243b42a6d hvm: Fix CR0 handling, which I broke in 15652.
Thanks to Eric Liu for spotting this.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-31 09:47:11 +01:00
kfraser@localhost.localdomain 31ef2b1848 vmx: Simplify event-injection logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-31 09:39:14 +01:00
Hollis Blanchard 793f5511a5 [POWERPC][XEN] Use multiboot2 data structures when present.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-07-30 17:10:45 -05:00
Hollis Blanchard ef4b9e45fc [POWERPC][XEN] Deal with "shadow" -> "paging" fallout.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-07-30 13:50:14 -05:00
Hollis Blanchard 4e94d7b4d4 [POWERPC][XEN] Fix build by adding proper guards to asm/numa.h
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2007-07-30 13:47:02 -05:00
kfraser@localhost.localdomain 9039ed2bed [ACM] Some more fixes
- don't reload the policy if it has been loaded
 - don't always load the policy in the test suite when the policy is
   already loaded
 - skip tests 07 and 09 when ACM is not enabled and xm is not using the
   Xen-API
 - fix a problem when trying to remove an invalid label

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-30 16:03:16 +01:00
kfraser@localhost.localdomain cb2567cc91 [IA64] Disable ACPI SRAT,SLIT table of dom0.
On some ia64 NUMA machine, we cannot boot dom0.
  This issue is caused by different infomation LSAPIC and SRAT.
  Xen-ia64 modify LSAPIC IDs of dom0, but it does not modify SRAT.
  So we decide disabling SRAT, SLIT of dom0 as first step of NUMA
  work.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2007-07-30 11:28:16 +01:00
kfraser@localhost.localdomain 8327606c61 Add acpi_table_disable() into xen/drivers/acpi/tables.c
This function can disable a ACPI table by updating the table header.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-30 11:27:48 +01:00
kfraser@localhost.localdomain 9b10f22848 Move generate_acpi_checksum() from ia64 code to common.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2007-07-30 10:59:27 +01:00
kfraser@localhost.localdomain 1676e36c5d hvm: Clean up CR0 handling.
Upper 32 bits should #GP if set. Lower 32 bits should have reserved
bits silently cleared.

Check Intel VMX MSRs to check for compatibility with our CR0
requirements.

Signed-off-by: Eric E Liu <eric.e.liu@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-27 09:43:07 +01:00
kfraser@localhost.localdomain f11a11ff7b Implement Xen API method Console.set_other_config.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-07-27 09:06:58 +01:00
kfraser@localhost.localdomain 217c8c4767 Implement missing Xen API method Console.get_other_config.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-07-27 09:06:30 +01:00
kfraser@localhost.localdomain d72cae799f Fix Xen API console methods that use undefined variables.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
2007-07-27 09:06:10 +01:00
kfraser@localhost.localdomain fecde045d3 [Xend] Do network startup earlier.
Xend tries to rebuild the network configuration such as bridges and
vlan interfaces  (in those bridges) when starting. Unfortunately this
fails on the first startup since the network script has not run, yet,
and for example created peth0. When restarting xend it works due to
the peth0 being there then. This patch moves the initialization of the
network to an earlier time in the xend initialization process to
mitigate this problem.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-27 09:04:35 +01:00
kfraser@localhost.localdomain 61cd58b400 [XEND] Fix for creating VLANs using the Xen-API
Recent changes to the setup of the peth0 interface have resulted in a
change of its MAC address. Previously it seems to have had a MAC
address of 'fe:ff:ff:ff:ff:ff', but now it has the same MAC address as
eth0. As a consequence to this the Xen-API code to create VLANs
(PIF.create_VLAN("peth0",...)) does not work anymore, since peth0 can
not be identified according to this previous criteria of fake MAC
address. This patch fixes this issue by identifying it through the
prefix 'peth'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-27 09:03:35 +01:00
kfraser@localhost.localdomain bf9e4257b3 [ACM] Check a domain's authorization to run.
A domain is only authorized to run if it has a superset of Simple Type
Enforcement Types in its VM label compared to that of Domain-0, which
itself may not have all STEs available in a policy. This patch adds a
check for this into Xend and the necessary code support into Xen.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-07-27 09:01:15 +01:00
Tim Deegan 2abe070373 [HVM] Save/restore: don't leak shared-memory segments after HVM live-migrate.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
2007-07-26 12:00:32 +01:00
kfraser@localhost.localdomain 504e6b5eae xenstored: Fix socket-based connection teardown. Reading zero bytes
*should* in fact cause the connection to be destroyed. Fix this with a
little extra code in the readfd() handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
2007-07-25 09:51:14 +01:00