Commit Graph
1695 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 27c01325d4 [NET] front: Clean up error handling. This eliminates earlier
workaround patch for an observed crash.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 16:18:07 +00:00
kfraser@localhost.localdomain fc229c860b Clean up recent changes to reboot code. This fixes PV save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 15:54:03 +00:00
Steven Smith 69ff2305bb Merge. 2006-10-31 11:44:47 +00:00
Steven Smith 937f23487a [NETFRONT] Make sure we don't crash if the backend goes to state
Closing before we have a chance to connect.  This can happen if
there's an error while connecting.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 11:31:34 +00:00
Steven Smith 98f201b0e5 Merge. 2006-10-31 10:12:35 +00:00
Steven Smith 111a11e5f5 [HVM][LINUX][TOOLS] Split control/reboot_module into control/feature-reboot
and control/feature-sysrq.  This is more consistent with the other
PV device protocols.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-10-31 10:11:53 +00:00
Steven Smith 65ae4fc8cd [HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVM
domains with PV drivers loaded.  This patch creates a new PV-on-HVM
module, reboot.ko, which, when loaded, creates control/reboot_module
in the store.  The tools notice this, and disable the watch which would
normally destroy HVM domains which are the target of an xm shutdown
command, allowing the reboot module to shut the domain down cleanly.

Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>

(Checkin comments by Steven Smith <sos22@cam.ac.uk>)
2006-10-31 09:54:49 +00:00
kfraser@localhost.localdomain f99eaa7a3b [NET] back: Remove warning about non-zero tx queue length.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-31 09:49:31 +00:00
kfraser@localhost.localdomain 11b39cba56 [LINUX] Fix build breakage from previous patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-30 14:28:29 +00:00
kfraser@localhost.localdomain 3d91901864 [LINUX] Use CONFIG_XEN_COMPAT_030002 where possible.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-30 14:14:46 +00:00
kfraser@localhost.localdomain fa088340b4 [LINUX] Declare structs as 'static __initdata' where possible.
Probably still not catching all possible cases, but using static
(where not already the case) makes the code size smaller, and using __initdata
has the usual advantages.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-30 14:09:13 +00:00
kfraser@localhost.localdomain 8ba0049cfc [LINUX] privcmd: Range-check hypercall index.
Otherwise, bugs in e.g. libxc may bring the kernel down.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-30 14:04:44 +00:00
kfraser@localhost.localdomain 98c075c804 [NET] back: Advertise that we do not support rx-flip path any more.
This will now be used only by older guests who do not understand
the feature-rx-{copy,flip} feature flags.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-26 11:50:17 +01:00
awilliam@xenbuild.aw f1c6ac2751 [IA64] NUMA support
Based on patch from Tristan Gingold

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-10-25 14:48:55 -06:00
awilliam@xenbuild.aw 506aac287c merge with xen-unstable.hg 2006-10-25 12:12:01 -06:00
Ian Campbell 06b12ba822 PV-on-HVM: Add infrastructure for a compatibility shim in order to
support PV-on-HVM drivers for older kernel releases.

The compatability code is included in the xen-platform-pci module
since this module underpins all the others.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-10-25 13:58:30 +01:00
Ian Campbell 5631980c09 [LINUX] PV-on-HVM: The elevator_init prototype changed in 2.6.10
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-10-25 13:58:30 +01:00
Ian Campbell 20b18801a9 [LINUX] PV-on-HVM: Implement HDIO_GETGEO ioctl on kernels before
2.6.16.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-10-25 13:58:30 +01:00
Ian Campbell 0d7bcbe60d [LINUX] PV-on-HVM: The probe, remove and shutdown methods were added
to struct bus_type in 2.6.16. For older kernels use the methods on the
struct device_driver.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-10-25 13:58:30 +01:00
Ian Campbell 27e0aaa9a7 [LINUX] PV-on-HVM: Only initialize the owner field of struct
device_driver on kernels from 2.6.10 onward. The field was not
available until then.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-10-25 13:58:30 +01:00
Ian Campbell 160e8134cb [LINUX] Exclude support for /proc/xen/xsd_kva when building a
non-privileged guest.

This is useful for PV-on-HVM because it removes code which would
otherwise require extra code in the compatability shim.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-25 13:58:30 +01:00
Ian Campbell 3ac6239a86 [LINUX] PV-on-HVM: Remove the attr parameter from device attribute
show methods on kernels prior to 2.6.13. The parameter was not present
before that.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-10-25 13:58:30 +01:00
Ian Campbell a7b5ded0d9 [LINUX] Move xenbus backend probing into a separate source file and
only build it when CONFIG_XEN_BACKEND is set.

This removes unused code from frontend only configurations and also
makes PV-on-HVM drivers on older kernels simpler by removing code
which would otherwise require extra code in the compatability shim.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-25 13:58:30 +01:00
Ian Campbell 4f3230eb63 [LINUX] PV-on-HVM: Directly include headers which are used in various
files rather than relying on them being included indirectly.

This is required because these headers are not pulled in indirectly on
older kernels.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-10-25 13:58:30 +01:00
kfraser@localhost.localdomain 94e4fb8a1d [BLOCK] blkback: Fix potential grant entry leaks on error
As it stands grant entries for the actual data are mapped in bulk.
If one of the earlier entries fail to be mapped, it can cause all
subsequent entries to be leaked if they were successfully mapped.

This patch changes it so that we will continue to reap grant entries
even when an error is detected.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-25 10:59:00 +01:00
awilliam@xenbuild.aw 3e081e983e merge with xen-unstable.hg 2006-10-24 11:21:48 -06:00
kfraser@localhost.localdomain 63175f1993 [BLKTAP] Do not allocate a descriptor for blktap control device
(minor 0).

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-10-23 14:19:14 +01:00
kfraser@localhost.localdomain 7a9e5b2775 [BLKTAP] Only allocate tapfd descriptors when they are requested.
Currently all are allocated at bootup, even when they will never be used.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
2006-10-23 14:18:16 +01:00
kfraser@localhost.localdomain ccf92acf14 [BALLOON] Add a sysfs interface.
Information is located under /sys/devices/system/memory.

Original patch from Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 14:09:01 +01:00
kfraser@localhost.localdomain 61ca72df6f [NET] back: Fix packet queuing so that packets are drained if the
interface is blocked for longer than 500ms. This avoids deadlock
situations where interfaces cannot be destroyed because some other
dormant interface is holding resources.

Signed-off-by: Christopher Clark <christopher.clark@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-23 11:20:37 +01:00
kfraser@localhost.localdomain 7a57f20be7 [BLOCK] blkback: Fix first_sect check.
The blkback code checks first_sect by computing last_sect - first_sect
+ 1. If this is not positive then the request is
rejected. Unfortunately, the calculation is stored in an unsigned
integer before the check is made so negative values will not be
rejected.

This patch fixes this by explicitly comparing first_sect with
last_sect.

The blktap code is similar but it stores the difference in a signed
integer so it's okay.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-23 10:05:32 +01:00
kfraser@localhost.localdomain 76da00df1a [BLOCK] blkback: Copy shared data before verification
As it is blkback verifies the metadata from the frontend in place.
This means we run the risk of the frontend changing the data after
we've verified it.  This patch copies the data onto the stack before
verifying and using it to ensure we see a consistent snapshot.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-23 10:00:14 +01:00
awilliam@xenbuild.aw b5f74534ce merge with xen-unstable.hg 2006-10-22 15:23:52 -06:00
Steven Hand cd6f6ef849 Omit seg fixup warning if it's just from statically linked init.
Signed-off-by: Steven Hand <steven@xensource.com>
2006-10-20 11:49:00 +01:00
kfraser@localhost.localdomain dbcc721001 [BLKTAP]: Fix potential grant entry leaks on error
As it stands grant entries for the actual data are mapped in bulk.
If one of the earlier entries fail to be mapped, it can cause all
subsequent entries to be leaked if they were successfully mapped.

This patch changes it so that we will continue to reap grant entries
even when an error is detected.

There is still a potential leak if create_lookup_pte_addr fails
in fast_flush_area.  This leak is not affected by this patch.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-20 09:28:31 +01:00
kfraser@localhost.localdomain 97e34120fe [BLKTAP]: Kill bogus fast_flush_area
The function dispatch_rw_block_io may call fast_flush_area even before
a pending request has been initialised.  This patch deletes that call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-20 09:24:26 +01:00
kfraser@localhost.localdomain a935698894 [BLKTAP]: Kill duplicate fast_flush_area call
The dispatch_rw_block_io may call fast_flush_area twice if
create_lookup_pte_addr fails (there is a flush call at fail_flush
already).  The second call simply causes warnings to be printed
on the console.  This patch removes the duplicate call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-20 09:22:58 +01:00
kfraser@localhost.localdomain 50b362a182 [BLKTAP]: Copy shared data before verification
As it is blktap verifies the metadata from the frontend in place.
This means we run the risk of the frontend changing the data after
we've verified it.  This patch copies the data onto the stack before
verifying and using it to ensure we see a consistent snapshot.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-10-19 14:50:47 +01:00
awilliam@xenbuild.aw 9c3c688c5b [IA64] backport toolchain fixes from linux-ia64
This backports the ia64 specific parts of this upstream linux
changeset:

http://www.kernel.org/hg/linux-2.6/?cs=dfbee33b0693

Change suggested by Akio Takebe.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-10-18 22:06:23 -06:00
awilliam@xenbuild.aw dd3d76baf0 [IA64] add arch/ia64/kernel/Makefile to sparse tree
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-10-18 22:06:18 -06:00
kfraser@localhost.localdomain 55235ec559 [NET] front: Fix "rmmod xennet" crash in dom0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-10-18 19:23:32 +01:00
kfraser@localhost.localdomain bc29b3f70e [NET] front/back: Avoid unaligned accesses to IP datagrams. These
cause noisy warnings on IA64.

Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-10-18 17:59:04 +01:00
kfraser@localhost.localdomain 761d4da84e [LINUX] Eliminate microcode driver's dependency on sys_m{,un}lock as
well as the needless use of static variables.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-10-18 17:41:36 +01:00
kfraser@localhost.localdomain 19c8d7a8fa [TPM] Fix the tpm frontend to properly shut down when the domain
is shutting down (call to xenbus_frontend_closed()). Also the driver
now waits longer until an outstanding response has been received (to
support a busy system). Moves the 'Unknown' state with the other
states that are not used by the TPM frontend.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 15:16:37 +01:00
awilliam@xenbuild.aw 8160bfb7c4 [IA64] warning fix for HVM PV driver
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-10-17 14:29:33 -06:00
kfraser@localhost.localdomain 8405357df9 [NET] back: Remove unused variable declaration.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-17 19:03:47 +01:00
awilliam@xenbuild.aw 0598e72c96 [IA64] Xencomm fixes for HVM PV-drivers and driver domain.
Create xcom_mini.c from xcom_hcall.c

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-10-14 16:26:27 -06:00
awilliam@xenbuild.aw d53914d6c0 merge with xen-unstable.hg 2006-10-14 13:28:45 -06:00
kfraser@localhost.localdomain ad5b45d12e [NET] front: Do not read features from backend until it enters InitWait.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-13 18:04:33 +01:00
kfraser@localhost.localdomain f5698223fb [NET] back: Simplify probing of new interfaces. There's no need
to watch for creation of the handle node in xenstore, as it is
written by xend when creating the backend directory as part of
the same transaction.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-10-13 17:10:27 +01:00