Commit Graph
9611 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 201c3aa978 Fix a couple of typos.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 17:28:02 +01:00
kaf24@firebug.cl.cam.ac.uk 4f32cad22c Fix push/pop usage in tools/ioemu for x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 17:25:42 +01:00
kaf24@firebug.cl.cam.ac.uk 73004d34e4 If the 'cdrom=' option is specified in the definition file but media is
not found in the CD drive then main() in vl.c exits and the guest appears 
to hang.  This patch modifies vl.c slightly to check for the presents of 
media.  If the cdrom cannot be opened then the cd entry is removed from 
hd_filename[] and bs_table[] allowing the guest to continue initializing. 
If the guest requires the CD media then the guest should report, gracefully
or otherwise, that it's missing.

From: Ross Maxfield <rmaxfiel@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-04-10 17:16:25 +01:00
kaf24@firebug.cl.cam.ac.uk b5fa90ac8e build: Clean up use of .PHONY
* Move .PHONY directives next to targets,
  this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 17:02:49 +01:00
kaf24@firebug.cl.cam.ac.uk 0198288b1f build: Clean pygrub's a.out
Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Horms <horms@valinux.co.jp>
2006-04-10 16:36:38 +01:00
emellor@leeni.uk.xensource.com 224cab0dfd Merged. 2006-04-10 16:36:03 +01:00
kaf24@firebug.cl.cam.ac.uk 9ffd98fa29 build: Document the use of XEN_PYTHON_NATIVE_INSTALL
Document the use of the XEN_PYTHON_NATIVE_INSTALL environment variable

Signed-Off-By: Horms <horms@verge.net.au>
2006-04-10 16:35:30 +01:00
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
emellor@leeni.uk.xensource.com 02e0e0d9bb Initialise offsetopt when offset == 0. Closes bug #599.
Report and diagnosis by Robert Hendrickx <robert.hendrickx@advalvas.be>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-10 16:28:52 +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
emellor@leeni.uk.xensource.com 913843e16b Fix call to server, using new XendClient syntax.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-04-10 16:26:23 +01:00
emellor@leeni.uk.xensource.com a03c61b2f7 Updated to reflect new KERNELS defaults, and properly describe make install and
make dist.
2006-04-10 16:21:44 +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