Commit Graph
9601 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk f2bc7f9402 build: clean up output of make help a little bit
Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:34:59 +01:00
kaf24@firebug.cl.cam.ac.uk 4886bb64c1 build: Make sure that DESTDIR is set
In the case where XEN_PYTHON_NATIVE_INSTALL is in effect,
if DESTDIR is not set then the install will go into a relative
directory rather than under the default prefix (usually /usr).

An alternate solution would be to update the fragments
that do the python install to use $(DESTDIR)/ instead of
$(DESTDIR). This is not an incredible burden as there
are only two such fragments in the tree. However, it
seems prone to error as new makefiles are created
in the future.

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:31:53 +01:00
kaf24@firebug.cl.cam.ac.uk 2a9a3c3116 build: Remove iptables and python loging helper targets
These targets don't really fit into the build infastructure,
for instance there is no faclilty for them to be removed
on make distclean. I posted a patch that fleshed out the targets,
but Christian Limpach suggested to me that removing them
would be a better idea.

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:27:46 +01:00
kaf24@firebug.cl.cam.ac.uk 312aae5cfc Remove unused netbsd build fragments.
Signed-Off-By: Homrs <horms@verge.net.au>
2006-04-10 16:26:52 +01:00
vhanquez@kneesa.uk.xensource.com cfca4d6941 fix bug #609 - error: PIC register bx' clobbered in asm'
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-04-10 14:51:10 +00:00
emellor@leeni.uk.xensource.com 9a74026a08 I used the wrong operator in a couple places for putting together some
error messages out of format strings. This patch corrects those
operators and fixes the strings.

Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
2006-04-10 14:47:51 +01:00
kaf24@firebug.cl.cam.ac.uk 5dfbb5affb 'make mkpatches' diffs against pristine tree rather than
ref tree, so it includes extra patches under patches/ subdirectory.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 13:24:58 +01:00
kaf24@firebug.cl.cam.ac.uk d033b064ca Introduce page_to_bus() and use it in pci-dma-xen.c and swiotlb.c. On
xen/ia64 with the P2M/VP model pseudo physical address(gpaddr) is
fully virtualized so it defines
xen_features(XENFEAT_auto_translated_physmap) = 1.  In this case
page_to_phys(page) should return pseudo physical address like
pfn_to_mfn() and its families.  However dma is not virtualized, it
can't be used for pci-dma-xen.c, swiotlb.c.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-04-10 11:39:32 +01:00
ack@kneesa.uk.xensource.com d36204c383 fix x86_32 default linux builds 2006-04-10 10:57:38 +01:00
kaf24@firebug.cl.cam.ac.uk 72c295faef Remove various compile-time options from SEDF scheduler and
clean up formatting.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-09 18:23:16 +01:00
kaf24@firebug.cl.cam.ac.uk 90027f708a Build CONFIG_PNP_ACPI by default.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-08 12:10:04 +01:00
kaf24@firebug.cl.cam.ac.uk ea121d62ab Clean up IO-APIC update tracing and demote to DPRINTK().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-08 12:09:25 +01:00
kaf24@firebug.cl.cam.ac.uk ee29f146c3 Fix remove_pin_at_irq(), introduced with changeset
9586:f84a333d8aa6e1a25e2b73b07610e95007267f6a.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-08 11:01:17 +01:00
kaf24@firebug.cl.cam.ac.uk b766b4774a Added trace buffer virtual irq to implement non-polling trace record access.
Signed-off-by: Rob Gardner <rob.gardner@hp.com>
2006-04-08 09:05:53 +01:00
kaf24@firebug.cl.cam.ac.uk b59014bf57 Robustify and add tracing to the IO-APIC update hypercall.
If this patch, and any others that follow it, fix some of the
prblems that various users have been seeing then they may
be good candidates for backporting to 3.0.2 (assuming no
regressions for other users).

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-07 18:41:28 +01:00
kaf24@firebug.cl.cam.ac.uk 41dca18e00 Fix my slightly broken change to pirq_mask logic -- we must
pass the last seen bit *plus 1* to find_next_bit().

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-07 16:15:44 +01:00
smh22@firebug.cl.cam.ac.uk 6ca8eebc9b Additional sanity / compatability checks during guest build.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-04-07 15:58:00 +01:00
kaf24@firebug.cl.cam.ac.uk f5de363eff Turn pirq_mask into a generic bitmap type.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-07 14:27:46 +01:00
kaf24@firebug.cl.cam.ac.uk 28a88159e3 Avoid double slashes in linker object file lists.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-07 14:26:02 +01:00
kaf24@firebug.cl.cam.ac.uk 9958cf7167 Do not disable spurious irq debugging in i386 xenlinux. It may
be masking underlying problems, and the problem it was intended
to work around should be fixed properly.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-07 13:41:58 +01:00
kaf24@firebug.cl.cam.ac.uk 97a7c0c266 Power down an x86 system directly within domain0 rather than
executing a shutdown hypercall. Domain0 is able to execute
ACPI power-off code.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
2006-04-07 13:40:22 +01:00
emellor@leeni.uk.xensource.com 547a12d6d3 Merged. 2006-04-07 11:52:00 +01:00
kaf24@firebug.cl.cam.ac.uk 2ec558319c Clean up xenoprof code a bit. The main remaining TODO is to
clean up the xenoprof hypercall interface.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-07 11:00:28 +01:00
kaf24@firebug.cl.cam.ac.uk fa6aa0c4a4 Do not accept empty definition of __XEN_INTERFACE_VERSION__
in xen-compat.h. It leads to building a broken kernel image
where the kernel sources end up using an unexpected interface
version. In the case of Linux, the kernel expects to use
the new sched_op() hypercall but ends up calling the
legacy hypercall -- this breaks poll, reboot, and save/restore.

A more acceptable patch would be to detect the empty
definition in xen-compat.h and give a reasonable #error message
to fail the build: the current error message is confusing.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-07 09:57:36 +01:00
cl349@firebug.cl.cam.ac.uk 8dbed98102 Support __XEN_INTERFACE_VERSION__ defined to the empty string.
This can happen when building Linux with an old .config file which
doesn't have a value for CONFIG_XEN_INTERFACE_VERSION.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-04-07 00:32:54 +01:00
ack@kneesa.uk.xensource.com 08d906dfa1 merge 2006-04-06 18:58:39 +01:00
ack@kneesa.uk.xensource.com c5b774278a Add xenoprof support
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-04-06 18:58:01 +01:00
kaf24@firebug.cl.cam.ac.uk 6e5243b328 Do not create blkback vbd kernel thread until fully connected
to frontend driver. Otherwise the kernel thread may crash trying
to access the non-existent shared ring.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 18:39:00 +01:00
smh22@firebug.cl.cam.ac.uk 8f07d04c60 Merge. 2006-04-06 17:49:21 +01:00
smh22@firebug.cl.cam.ac.uk fc4d8fe8b0 Merge. 2006-04-06 17:47:37 +01:00
emellor@leeni.uk.xensource.com 1d060e23af This adds proper cleanup in case of a failure.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-04-06 17:41:07 +01:00
smh22@firebug.cl.cam.ac.uk 5e1e26bd96 Make root page table sanity check on restore more generic.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-04-06 17:34:54 +01:00
kaf24@firebug.cl.cam.ac.uk 6ff686de51 Rename and clean up 'error_code' path in entry.S.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 17:32:47 +01:00
kaf24@firebug.cl.cam.ac.uk 1da49c151e Cleanups to do_callback_op() new hypercall changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 17:25:24 +01:00
kaf24@firebug.cl.cam.ac.uk 7f21016a22 Use machine_halt() where it makes sense, to halt all processors
rather than just the current one.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 16:41:53 +01:00
smh22@firebug.cl.cam.ac.uk 9444c07bdb Fix long-standing save/restore bug on x86-64.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-04-06 16:15:28 +01:00
kaf24@firebug.cl.cam.ac.uk deecd6adc0 Saner error handling in iret hypercall (x86/64).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 15:55:37 +01:00
kaf24@firebug.cl.cam.ac.uk 535f8b893f Clean up files created by the XenLinux boot-xen code.
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
2006-04-06 15:25:26 +01:00
kaf24@firebug.cl.cam.ac.uk 66edd49a38 Add code to make handling domain poweroff/reboot symmetrical between
paravirtualized and fully virtualized.  This approach uses the new
sched_op to handle other domains than the current domain.  The new
code, SCHEDOP_remote_shutdown, is very much like SCHEDOP_shutdown, but
is called with the id of the domain which is to be shut down. This
allows fully virtualized shutdown and para-virtualized shutdown to be
identical from that point forward.

A paravirtualized domain uses sched_op to shut down and set the reason
code. This will send a VIRQ_DOM_EXC, which can be handled in dom0 by
control software.  In some ways, this resembles SIGCHILD/waitpid, and
is a reasonable model.

The fully virtualized case has qemu invoke xm directly. This is a
different path than paravirtualized. It also removes decision and
policy making choices from the rest of the control software and places
it within qemu. When any dom0 logic eventually gets a VIRQ_DOM_EXC,
the information about the domain is gone having been destroyed by xm.

A libxenctrl wrapper, xc_shutdown_domain has been added and qemu now
calls it.

As a freebie, #if 0 some very verbose logging code in qemu.  Totally
unrelated, but as long as I was there...

Signed-off-by: Ben Thomas <ben@virtualiron.com>
2006-04-06 15:24:00 +01:00
kaf24@firebug.cl.cam.ac.uk f0a187ecb7 Move misplaced CONFIG_KEXEC code chunk in setup-xen.c to its proper location.
From: Jan Beulich

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 15:22:46 +01:00
apeace@paploo.uk.xensource.com 4d9b8db9fc Fix the example xend init.d script so it correctly detects when it is running
in a guest.

Signed-off by: Andrew Peace <andrew@xensource.com>
2006-04-06 14:58:55 +01:00
emellor@leeni.uk.xensource.com 45bd0044c4 Factor out the parsing of XAUTHORITY, so that it can be used by the unit test,
and fix that test to use it.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-06 14:22:52 +01:00
emellor@leeni.uk.xensource.com d5ed151f12 Fix test to match change to DCE formatting of UUIDs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-06 14:21:45 +01:00
Ian.Campbell@xensource.com d366b69d6a Add new hypercall "set_callback" taking a callback identifier and the
callback address.

This new hypercall incorporates the functionality of the existing set_callbacks
hypercall in a more flexible manner. set_callbacks is retained for compatibility.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-04-06 12:03:53 +01:00
kaf24@firebug.cl.cam.ac.uk 564a3bf276 More simplifications to blkback:
1. Remove blkif->status field as it's really not needed.
 2. Simplify connection logic.
 3. Get rid of atomic_t io_pending. There's no need for
    atomic r-m-w updates to the work-to-do flag, so replace
    with an integer and add barriers where serialisation is
    required.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 11:34:14 +01:00
kaf24@firebug.cl.cam.ac.uk 3f7c9e7d7e Stupidly forgot there is a separate waitqueue for free pending request
structures in blkback. Fix my changes to blkif_schedule().

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 11:13:33 +01:00
kaf24@firebug.cl.cam.ac.uk 4e52e7ef09 Fix the blkif_schedule() kthread loop. Much simpler; much more correct.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 10:20:32 +01:00
kaf24@firebug.cl.cam.ac.uk 14713b052f Allow CONFIG_DEBUG_INFO to be specified when building
x86/64 XenLinux. Builds and boots fine. Leave the option
disabled by default, as with all other defconfigs.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-06 09:47:58 +01:00
kaf24@firebug.cl.cam.ac.uk a6ac8cd281 Remove some unnecessary code from the vTPM hotplug scripts.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-04-06 09:40:15 +01:00
kaf24@firebug.cl.cam.ac.uk 0773e2a340 Fix a problem that was caused by recent changes to the xenbus's
behavior that cause the .remove function not to be called anymore
during suspend. Due to that the driver allocated one more interrupt on
every suspend/resume cycle.  Otherwise some code reformatting,
cleanups and improvements on allocation and freeing of data structure.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-04-06 09:39:30 +01:00