Commit Graph
1055 Commits
Author SHA1 Message Date
kaf24@firebug.cl.cam.ac.uk 2e327ea4ab Clean up #include in init-xen.h.
Signed-off-by: Muli Ben-Yehuda <mulix@mulix.org>
2006-03-21 22:55:29 +01:00
kaf24@firebug.cl.cam.ac.uk 2e3c599844 Fix a build problem when enabling XEN_SYSFS on xen/ia64.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-03-21 22:48:04 +01:00
kaf24@firebug.cl.cam.ac.uk af34eb43a1 Nanosecs not usecs in a time comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-21 15:40:54 +01:00
kaf24@firebug.cl.cam.ac.uk e718ef7000 'permitted_clock_jitter' units are nanoseconds not microseconds.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-21 15:10:26 +01:00
emellor@leeni.uk.xensource.com 7555524dd7 Merged. 2006-03-21 12:26:38 +01:00
emellor@leeni.uk.xensource.com fb57267cd6 Only send the OFFLINE hotplug event if be->netif is set. Firstly, this ensures
that OFFLINE is only sent if the ONLINE event has been sent.  Secondly, this
fixes one possible cause of the reopened bug #549 as it prevents be->netif
being dereferenced inside netback_uevent.  Early reports suggest that this is
not the only cause of #549, so that bug remains open for now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 12:25:23 +01:00
emellor@leeni.uk.xensource.com d24b3a43ce Fix the implicit declaration of function `swiotlb_init' warning, by including
the appropriate headers.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 12:21:08 +01:00
kaf24@firebug.cl.cam.ac.uk 728b3dab17 Creates a module that exports Xen Hypervisor attributes to sysfs. The
module has a tri-state configuration so it can be a loadable module.

Views the hypervisor as hardware device, uses sysfs as  a scripting
interface for user space tools that need these attributes.

Some user space apps, particularly for systems management, need to
know if their kernel is running in a virtual machine and if so in
what type of virtual machine. This property is contained in the
file /sys/hypervisor/type.

The file hypervisor_sysfs.c creates a generic  hypervisor subsystem
that can be linked to by any hypervisor. The file xen_sysfs.c exports
the xen-specific attributes.

Signed-off-by: Mike D. Day <ncmike@us.ibm.com>
2006-03-21 12:17:19 +01:00
cl349@firebug.cl.cam.ac.uk f9da43103c Update to Linux 2.6.16.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch => patches/linux-2.6.16/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc6/net-csum.patch => patches/linux-2.6.16/net-csum.patch
rename : patches/linux-2.6.16-rc6/pmd-shared.patch => patches/linux-2.6.16/pmd-shared.patch
rename : patches/linux-2.6.16-rc6/smp-alts.patch => patches/linux-2.6.16/smp-alts.patch
2006-03-20 20:10:17 +00:00
kaf24@firebug.cl.cam.ac.uk 4a58d57594 Add poll() support to xenbus device file.
From: Gerd Hoffmann
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-20 12:00:58 +01:00
cl349@firebug.cl.cam.ac.uk 686bde3ed0 linux-x86_64: Sync with native.
From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-18 16:30:20 +00:00
vhanquez@kneesa.uk.xensource.com be4c0619d5 Fix a race that crash domU by calling xenbus_probe twice if it receive event
between xs_init and setting xenbus_running

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-18 13:56:34 +00:00
kaf24@firebug.cl.cam.ac.uk ed87d736e9 merge with xen-ia64-unstable.hg 2006-03-18 10:59:11 +01:00
cl349@firebug.cl.cam.ac.uk ce0bcf0e64 Update to Linux 2.6.16-rc6.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>


--HG--
rename : patches/linux-2.6.16-rc5/i386-mach-io-check-nmi.patch => patches/linux-2.6.16-rc6/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16-rc5/net-csum.patch => patches/linux-2.6.16-rc6/net-csum.patch
rename : patches/linux-2.6.16-rc5/pmd-shared.patch => patches/linux-2.6.16-rc6/pmd-shared.patch
rename : patches/linux-2.6.16-rc5/smp-alts.patch => patches/linux-2.6.16-rc6/smp-alts.patch
2006-03-18 00:12:26 +00:00
awilliam@xenbuild.aw b6144da6bb merge 2006-03-17 15:37:28 -07:00
vhanquez@kneesa.uk.xensource.com 18b6341b93 Reinitialize producer and consumer index to 0 if indexes corruption are detected
in XenBus.
Prevent a kernel infinite loop and add more recovering ability.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-17 10:03:37 +00:00
vhanquez@kneesa.uk.xensource.com 6ac4acde21 Substitute kmalloc+memset by kzalloc where possible
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-17 09:52:05 +00:00
awilliam@xenbuild.aw 824bd8fc88 [IA64] remaining privified insns removed
Privified insns replaced by hyperprivops.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-03-16 12:20:59 -07:00
kaf24@firebug.cl.cam.ac.uk abed9e6eea Explicitly include time.h to get gettimeofday declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-16 12:34:27 +01:00
kaf24@firebug.cl.cam.ac.uk 7d2b8840b8 pcifront poll loop now checks gettimeofday rather than jiffies,
as the latter does not increase while interrupts are disabled.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-16 12:31:16 +01:00
awilliam@xenbuild.aw 499341ff62 [IA64] remove warning of xen_init()
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-03-15 08:20:28 -07:00
kaf24@firebug.cl.cam.ac.uk 3b9ba71177 Make MTU rx check in netfront more permissive to allow for 8021q vlan tagging.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-15 12:52:33 +01:00
vhanquez@kneesa.uk.xensource.com ba07c577c6 Do not BUG when receiving unexpected message type from xenbus
print a warning and discard the query

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
2006-03-15 11:09:45 +00:00
Ian.Campbell@xensource.com 65749e4633 There is no need to pin page tables when XENFEAT_writable_page_tables
is enabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-03-15 10:33:43 +00:00
awilliam@xenbuild.aw 44784246fc merge 2006-03-14 13:50:35 -07:00
kaf24@firebug.cl.cam.ac.uk badff410e4 Define a new sched_op hypercall called sched_op_new, which differs from the
legacy hypercall in that it takes a pointer to a block of extra arguments
rather than an opaque unsigned long. The old hypercall still exists, for
backwards compatibility.

The new hypercall supports new sub-command SCHEDOP_poll, which can be used to
wait on a set of event-channel ports with an optional timeout. This is exported
in XenLinux as HYPERVISOR_poll, and used in the pcifront driver to wait on a
response from the pciback driver.

Can also be used for debuggers. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: John Levon <john.levon@sun.com>
2006-03-14 19:33:45 +01:00
kaf24@firebug.cl.cam.ac.uk a555857793 Add a read barrier to the time-values-uptodate xenlinux time checking function.
Also fix monotonic clock to use just a compile barrier instead of smp_rmb.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 17:35:38 +01:00
kaf24@firebug.cl.cam.ac.uk d90f68966f When both stolen and blocked are rounded down, it is possible for the
final increment of the cpu local processed_system_time to move the cpu
local system time ahead a bit further than expected - but still proper
wrt. wall clock time.

This gives problems on a next timer interrupt, when stolen and blocked
both get rounded up and end up incrementing the per cpu
processed_system_time too far.

These simple checks make sure that the cpu local processed_system_time
never gets advanced too far.  Not advancing the variable now should be
fine, since we'll increment it at the next timer tick...

This patch has made the "time went backwards" error messages go away
completely.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 16:00:16 +01:00
kaf24@firebug.cl.cam.ac.uk d82dd13c9e Fix PAE ptep_get_and_clear_full(). The fast path requires us to manually clear
the low half before the high half. Otherwise the compiler may reorder the writes
and validation in Xen will fail.

From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 15:25:33 +01:00
kaf24@firebug.cl.cam.ac.uk 021c621639 Initialise blkfront_info to zeroes after allocating it.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-14 15:18:35 +01:00
kaf24@firebug.cl.cam.ac.uk 4e20802918 Clean up block-device hotplug routines in xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-13 15:06:58 +01:00
kaf24@firebug.cl.cam.ac.uk 3fdba55fbb Make time-backwarsd warning a run-time configurable option.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-13 13:03:18 +01:00
kaf24@firebug.cl.cam.ac.uk 1e0419bfee No need to pin/unpin intermediate pagetables in x86/64 xenlinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 19:37:38 +01:00
kaf24@firebug.cl.cam.ac.uk d8864ab7b3 Add missing include of a header file to avoid a compile warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 10:03:33 +01:00
kaf24@firebug.cl.cam.ac.uk b4adf19334 pciback sends evtchn notification to pcifront when its request is processed.
This may in future allow pcifront to avoid spin-waiting.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-12 09:52:19 +01:00
kaf24@firebug.cl.cam.ac.uk 42aaf2e8b4 Changeset 9134 introduced a caching mechanism when xenbus_switch_state
is invoked. This causes a problem in the resume part of a suspend-resume
cycle due to the backend not seeing that a state in the frontend was
set. This patch fixes this in the TPM frontend driver.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-11 10:49:28 +01:00
awilliam@xenbuild.aw 5950e11777 [IA64] compilation fix hypercall.h
it refers dom0_op_t.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-03-10 09:18:52 -07:00
cl349@firebug.cl.cam.ac.uk 16c73f7f6c Map grant table pages in vmalloc kernel address space instead of fixmap.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-10 13:27:24 +00:00
cl349@firebug.cl.cam.ac.uk e2b8c75165 Change the location of the shared_info page for auto_translated_physmap guests.
Instead of putting the page outside of the guests pseudo-physical address
space, we put it next to the other pages filled by the domain builder,
such that the page is already mapped in the initial pagetables and/or a
lowmem-type memory mapping.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-09 16:24:57 +00:00
kaf24@firebug.cl.cam.ac.uk fd5de61bb8 Build MTRR support into privileged xenlinux x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 16:03:23 +01:00
kaf24@firebug.cl.cam.ac.uk 36ac275213 Apply proper locking in xenlinux mtrr interface functions.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 15:59:53 +01:00
kaf24@firebug.cl.cam.ac.uk 0026c91c77 Explain disadvantages of building pciback as a module in Kconfig help.
Fix a module-loading bug in pciback.

From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-09 15:56:12 +01:00
kaf24@firebug.cl.cam.ac.uk db4d5fc53b Allow pciback to be built as a module.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 18:41:12 +01:00
kaf24@firebug.cl.cam.ac.uk b1d3128dd8 Allow pciback to be placed into a permissive mode of operation whereby it allows
PCI config writes to succeed by default. Currently this is the only way to allow
control of a device that has device-specific registers in the config space from
a driver domain.

echo Y >/sys/module/pciback/parameters/permissive

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 17:32:36 +01:00
kaf24@firebug.cl.cam.ac.uk 5ed8e29dde Trivial fix for pcifront bringup.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 15:51:28 +01:00
kaf24@firebug.cl.cam.ac.uk c2a1ed8d66 Keep totalram_pages in sync with current_pages in balloon driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 11:51:17 +01:00
kaf24@firebug.cl.cam.ac.uk b76d31960b Fix 64-bit Linux build.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-08 11:11:53 +01:00
kaf24@firebug.cl.cam.ac.uk 97bdaa5bdf Upgrade all hypercalls to use the new guest_handle interface (on the Xen side).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-07 18:40:42 +01:00
cl349@firebug.cl.cam.ac.uk 15c0d5d00a Cleanup i386 entry.S.
Many of the changes to entry.S can be removed because we don't support
CONFIG_PREEMPT anymore.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
2006-03-07 15:48:36 +00:00
kaf24@firebug.cl.cam.ac.uk 2c4f501f03 No need to re-set vm_pgoff before calling remap_pfn_range(). It will do
it itself in cases where it is necessary.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-03-06 20:29:39 +01:00