aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
Commit message (Collapse)AuthorAgeFilesLines
...
| * | PV-on-HVM: Conditionally disable checksum offload for receive on someIan Campbell2006-11-021-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | older kernels. On some older kernels the CHECKSUM_UNNECESSARY flag on received skbuffs is not honoured by all subsystems, specifically netfilter under 2.6.9-42.EL To work around this we need to ensure that the correct checksum is calculated at some point. We can cause the backend to do this for us by advertising to the backend that we cannot support checksum offload. The correlation of this issue with the presence of NETIF_F_TSO is not 100% but it is a good first approximation. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * | PV-on-HVM: Tweak reboot.c to be compatible with older kernels.Ian Campbell2006-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | call_usermodehelper_keys() was not available until 2.6.13 but since we pass session_keyring as NULL we may as well use call_usermodehelper() anyway. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * | PV-on-HVM: Fix PV-on-HVM drivers for IA64.Ian Campbell2006-11-023-2/+13
| | | | | | | | | | | | | | | | | | Thanks to Kasai Takanori and Doi Tsunehisa for testing. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * | [NET] front: Clean up error handling. This eliminates earlierkfraser@localhost.localdomain2006-10-311-23/+2
| | | | | | | | | | | | | | | workaround patch for an observed crash. Signed-off-by: Keir Fraser <keir@xensource.com>
| * | Clean up recent changes to reboot code. This fixes PV save/restore.kfraser@localhost.localdomain2006-10-313-47/+42
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * | Merge.Steven Smith2006-10-315-217/+240
| |\ \
| | * \ Merge.Steven Smith2006-10-311-3/+0
| | |\ \
| | | * | [NET] back: Remove warning about non-zero tx queue length.kfraser@localhost.localdomain2006-10-311-3/+0
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| | * | | [HVM][LINUX][TOOLS] Split control/reboot_module into control/feature-rebootSteven Smith2006-10-312-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and control/feature-sysrq. This is more consistent with the other PV device protocols. Signed-off-by: Steven Smith <sos22@cam.ac.uk>
| | * | | [HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVMSteven Smith2006-10-314-214/+244
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>)
| * / / [NETFRONT] Make sure we don't crash if the backend goes to stateSteven Smith2006-10-311-1/+4
| |/ / | | | | | | | | | | | | | | | | | | 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>
| * | [LINUX] Fix build breakage from previous patch.kfraser@localhost.localdomain2006-10-302-2/+2
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * | [LINUX] Use CONFIG_XEN_COMPAT_030002 where possible.kfraser@localhost.localdomain2006-10-306-0/+40
| | | | | | | | | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * | [LINUX] Declare structs as 'static __initdata' where possible.kfraser@localhost.localdomain2006-10-303-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | [LINUX] privcmd: Range-check hypercall index.kfraser@localhost.localdomain2006-10-301-8/+10
| | | | | | | | | | | | | | | Otherwise, bugs in e.g. libxc may bring the kernel down. Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * | [NET] back: Advertise that we do not support rx-flip path any more.kfraser@localhost.localdomain2006-10-261-1/+13
| |/ | | | | | | | | | | 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>
* / [IA64] fix xenperfawilliam@xenbuild.aw2006-10-291-14/+38
|/ | | | | | | | xenperf became not to work due to xencomm. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* [IA64] NUMA supportawilliam@xenbuild.aw2006-10-251-1/+30
| | | | | | | | Based on patch from Tristan Gingold Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-2516-217/+471
|\
| * PV-on-HVM: Add infrastructure for a compatibility shim in order toIan Campbell2006-10-2511-0/+44
| | | | | | | | | | | | | | | | | | | | | | 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>
| * [LINUX] PV-on-HVM: The elevator_init prototype changed in 2.6.10Ian Campbell2006-10-251-0/+4
| | | | | | | | | | | | 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>
| * [LINUX] PV-on-HVM: Implement HDIO_GETGEO ioctl on kernels beforeIan Campbell2006-10-252-0/+23
| | | | | | | | | | | | | | | | 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>
| * [LINUX] PV-on-HVM: The probe, remove and shutdown methods were addedIan Campbell2006-10-251-0/+7
| | | | | | | | | | | | | | | | | | 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>
| * [LINUX] PV-on-HVM: Only initialize the owner field of structIan Campbell2006-10-251-0/+2
| | | | | | | | | | | | | | | | | | 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>
| * [LINUX] Exclude support for /proc/xen/xsd_kva when building aIan Campbell2006-10-251-2/+2
| | | | | | | | | | | | | | | | | | 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>
| * [LINUX] PV-on-HVM: Remove the attr parameter from device attributeIan Campbell2006-10-251-2/+8
| | | | | | | | | | | | | | | | | | 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>
| * [LINUX] Move xenbus backend probing into a separate source file andIan Campbell2006-10-254-212/+367
| | | | | | | | | | | | | | | | | | | | 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>
| * [LINUX] PV-on-HVM: Directly include headers which are used in variousIan Campbell2006-10-254-0/+5
| | | | | | | | | | | | | | | | | | 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>
| * [BLOCK] blkback: Fix potential grant entry leaks on errorkfraser@localhost.localdomain2006-10-251-1/+9
| | | | | | | | | | | | | | | | | | | | | | 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>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-2410-209/+479
|\|
| * [BLKTAP] Do not allocate a descriptor for blktap control devicekfraser@localhost.localdomain2006-10-231-23/+15
| | | | | | | | | | | | (minor 0). Signed-off-by: Steven Rostedt <srostedt@redhat.com>
| * [BLKTAP] Only allocate tapfd descriptors when they are requested.kfraser@localhost.localdomain2006-10-231-100/+150
| | | | | | | | | | | | Currently all are allocated at bootup, even when they will never be used. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
| * [BALLOON] Add a sysfs interface.kfraser@localhost.localdomain2006-10-234-51/+263
| | | | | | | | | | | | | | 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>
| * [NET] back: Fix packet queuing so that packets are drained if thekfraser@localhost.localdomain2006-10-234-37/+53
| | | | | | | | | | | | | | | | | | 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>
| * [BLOCK] blkback: Fix first_sect check.kfraser@localhost.localdomain2006-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * [BLOCK] blkback: Copy shared data before verificationkfraser@localhost.localdomain2006-10-231-7/+7
| | | | | | | | | | | | | | | | | | 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>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-228-66/+81
|\|
| * Omit seg fixup warning if it's just from statically linked init.Steven Hand2006-10-201-0/+3
| | | | | | | | Signed-off-by: Steven Hand <steven@xensource.com>
| * [BLKTAP]: Fix potential grant entry leaks on errorkfraser@localhost.localdomain2006-10-201-21/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * [BLKTAP]: Kill bogus fast_flush_areakfraser@localhost.localdomain2006-10-201-3/+4
| | | | | | | | | | | | | | 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>
| * [BLKTAP]: Kill duplicate fast_flush_area callkfraser@localhost.localdomain2006-10-201-2/+0
| | | | | | | | | | | | | | | | | | 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>
| * [BLKTAP]: Copy shared data before verificationkfraser@localhost.localdomain2006-10-191-7/+7
| | | | | | | | | | | | | | | | | | 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>
| * [NET] front: Fix "rmmod xennet" crash in dom0.kfraser@localhost.localdomain2006-10-181-0/+3
| | | | | | | | Signed-off-by: Jim Dykman <dykman@us.ibm.com>
| * [NET] front/back: Avoid unaligned accesses to IP datagrams. Thesekfraser@localhost.localdomain2006-10-182-5/+5
| | | | | | | | | | | | | | cause noisy warnings on IA64. Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com> Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
| * [LINUX] Eliminate microcode driver's dependency on sys_m{,un}lock askfraser@localhost.localdomain2006-10-181-22/+16
| | | | | | | | | | | | well as the needless use of static variables. Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * [TPM] Fix the tpm frontend to properly shut down when the domainkfraser@localhost.localdomain2006-10-182-5/+10
| | | | | | | | | | | | | | | | | | 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>
| * [NET] back: Remove unused variable declaration.kfraser@localhost.localdomain2006-10-171-1/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] backport toolchain fixes from linux-ia64awilliam@xenbuild.aw2006-10-182-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | [IA64] add arch/ia64/kernel/Makefile to sparse treeawilliam@xenbuild.aw2006-10-181-0/+61
| | | | | | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] warning fix for HVM PV driverawilliam@xenbuild.aw2006-10-171-0/+2
| | | | | | | | | | | | Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>