aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Restrict netfront to 256 grant references to avoidkaf24@firebug.cl.cam.ac.uk2006-04-141-6/+9
| | | | | | | | | | | | | | | | | | | | | exhausting the global pool. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| | * Introduce gnttab_empty_grant_references() to check whether grantkaf24@firebug.cl.cam.ac.uk2006-04-142-0/+9
| | | | | | | | | | | | | | | | | | | | | references is empty. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| | * Since we don't reset the proto_csum_blank flag in the skb, thekaf24@firebug.cl.cam.ac.uk2006-04-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | checksum calculation gets done twice, which is not twice as good as once. With this patch, TCP/UDP checksum errors from dom0 are fixed, and domUs can use TCP/UDP without turning off TX checksum offload. Normal non-VLAN bridged configs still work fine, tested with xm-test. Signed-off-by: Jim Dykman <dykman@us.ibm.com>
| | * Call move_irq() during evtchn ->ack irq hook functions. Thiskaf24@firebug.cl.cam.ac.uk2006-04-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | triggers SMP affinity work. Signed-off-by: Keir Fraser <keir@xensource.com>
| | * Must use __copy_to_user_inatomic() in swiotlb's sync_single()kaf24@firebug.cl.cam.ac.uk2006-04-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | function, as we cannot sleep there. Signed-off-by: Keir Fraser <keir@xensource.com>
| | * Allow PCI-E and PCMCIA config on 64-bit Xenlinux.kaf24@firebug.cl.cam.ac.uk2006-04-131-2/+0
| | | | | | | | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| | * In some cases, say for instance for some bizzare reasonkaf24@firebug.cl.cam.ac.uk2006-04-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | the tree was checked out of CVS, which doens't neccessarily store file permissions, mkbuildtree may not be executable. So run them explicitly via bash. Signed-Off-By: Horms <horms@verge.net.au>
| | * This fixes the state machine of the vTPM driver.kaf24@firebug.cl.cam.ac.uk2006-04-132-8/+7
| | | | | | | | | | | | | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| | * Make grant table map/unmap argument, host_addr, feature-specific.kaf24@firebug.cl.cam.ac.uk2006-04-1310-105/+109
| | | | | | | | | | | | | | | | | | | | | Introduce gnttab_set_map_op() and gnttab_set_unmap_op() to initialize. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * | Read the message type out of the message before sending it to xenstored, andemellor@leeni.uk.xensource.com2006-04-151-4/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | | | use that saved value when handling the reply. Xenstored will leave the message type intact, _except_ when returning an error, in which case it will change the type to XS_ERROR. This meant that we failed to remove a transaction from our internal list if xenstored returned EAGAIN, as we did not realise that the message was XS_TRANSACTION_END. This manifested itself as the intended behaviour until the connection was closed, at which point all of those failed transactions would erroneously be aborted. Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Reset the cached state to XenbusStateInitialising on resume -- we're connectingemellor@leeni.uk.xensource.com2006-04-121-0/+2
| | | | | | | | | | | | | | to a new backend, so the state value needs to be reset. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | [IA64] remove printk warning of xen_initawilliam@xenbuild.aw2006-04-131-1/+1
| | | | | | | | | | | | | | | | remove printk warning of xen_init Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] call setup_xen_feature()awilliam@xenbuild.aw2006-04-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | add setup_xen_features() call to setup_arch() in xenLinux/ia64 Now features.c is compiled into xenLinux/ia64 for xen_feature(), but it is not initialized. xenLinux/x86 calls xetup_xen_features() from setup_arch(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-04-1166-1605/+1621
|\|
| * Netfront must switch state using xenbus_switch_state() or thiskaf24@firebug.cl.cam.ac.uk2006-04-102-17/+9
| | | | | | | | | | | | | | | | | | | | is not picked up by the waiting code in xenbus_probe.c. Also clean up the waiting code a little. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Add a new config option for all backend drivers. This has two benefits:kaf24@firebug.cl.cam.ac.uk2006-04-105-130/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. All backend drivers can be disabled or modularised via one config option. 2. Backend helper routines that are not specific to any particular driver can be disabled or modularised based on this config option. In particular this may allow backend drivers plus the service module to be upgraded separate from the kernel core as and when the backend interfaces change (and they will). Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix the test inside all_devices_ready, and move it from xenbus_probe (aemellor@leeni.uk.xensource.com2006-04-101-26/+37
| | | | | | | | | | | | | | | | | | | | postcore_initcall) to a new late_initcall, so that it happens after the drivers have initialised. Fixes the reopened bug #549 (I hope). Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Introduce page_to_bus() and use it in pci-dma-xen.c and swiotlb.c. Onkaf24@firebug.cl.cam.ac.uk2006-04-104-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Do not disable spurious irq debugging in i386 xenlinux. It maykaf24@firebug.cl.cam.ac.uk2006-04-071-4/+0
| | | | | | | | | | | | | | | | | | 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>
| * Power down an x86 system directly within domain0 rather thankaf24@firebug.cl.cam.ac.uk2006-04-071-0/+4
| | | | | | | | | | | | | | | | | | executing a shutdown hypercall. Domain0 is able to execute ACPI power-off code. Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
| * Clean up xenoprof code a bit. The main remaining TODO is tokaf24@firebug.cl.cam.ac.uk2006-04-072-2/+2
| | | | | | | | | | | | | | clean up the xenoprof hypercall interface. Signed-off-by: Keir Fraser <keir@xensource.com>
| * mergeack@kneesa.uk.xensource.com2006-04-063-17/+24
| |\
| | * Do not create blkback vbd kernel thread until fully connectedkaf24@firebug.cl.cam.ac.uk2006-04-063-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Add xenoprof supportack@kneesa.uk.xensource.com2006-04-067-2/+474
| |/ | | | | | | | | | | Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
| * Cleanups to do_callback_op() new hypercall changeset.kaf24@firebug.cl.cam.ac.uk2006-04-063-7/+6
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix long-standing save/restore bug on x86-64. smh22@firebug.cl.cam.ac.uk2006-04-061-0/+19
| | | | | | | | | | Signed-off-by: Steven Hand <steven@xensource.com>
| * Clean up files created by the XenLinux boot-xen code.kaf24@firebug.cl.cam.ac.uk2006-04-061-0/+1
| | | | | | | | | | | | Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
| * Add code to make handling domain poweroff/reboot symmetrical betweenkaf24@firebug.cl.cam.ac.uk2006-04-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Move misplaced CONFIG_KEXEC code chunk in setup-xen.c to its proper location.kaf24@firebug.cl.cam.ac.uk2006-04-061-5/+5
| | | | | | | | | | | | | | | | From: Jan Beulich Signed-off-by: Keir Fraser <keir@xensource.com>
| * Add new hypercall "set_callback" taking a callback identifier and theIan.Campbell@xensource.com2006-04-064-7/+44
| | | | | | | | | | | | | | | | | | | | 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>
| * More simplifications to blkback:kaf24@firebug.cl.cam.ac.uk2006-04-064-45/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Stupidly forgot there is a separate waitqueue for free pending requestkaf24@firebug.cl.cam.ac.uk2006-04-061-2/+5
| | | | | | | | | | | | | | | | structures in blkback. Fix my changes to blkif_schedule(). Signed-off-by: Keir Fraser <keir@xensource.com>
| * Fix the blkif_schedule() kthread loop. Much simpler; much more correct.kaf24@firebug.cl.cam.ac.uk2006-04-061-37/+10
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * Allow CONFIG_DEBUG_INFO to be specified when buildingkaf24@firebug.cl.cam.ac.uk2006-04-061-224/+0
| | | | | | | | | | | | | | | | | | 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>
| * Fix a problem that was caused by recent changes to the xenbus'skaf24@firebug.cl.cam.ac.uk2006-04-061-42/+79
| | | | | | | | | | | | | | | | | | | | | | 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>
| * Remove unused code in netback's net_rx_action():kaf24@firebug.cl.cam.ac.uk2006-04-061-3/+0
| | | | | | | | | | | | | | | | | | new_mfn and old_mfn are set in the end half of the function but they are not used. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Use PAGE_OFFSET instead of __PAGE_OFFSET in netfront.c.kaf24@firebug.cl.cam.ac.uk2006-04-061-4/+4
| | | | | | | | | | | | | | | | | | __PAGE_OFFSET is not defined on all platforms. Linux/ia64 and Linux/ppc don't have __PAGE_OFFSET definition. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
| * Remove unused teardown_irq() definition. Removes two files from sparse tree.kaf24@firebug.cl.cam.ac.uk2006-04-062-669/+0
| | | | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * There are a couple of bugs with the current handling of reads and writeskaf24@firebug.cl.cam.ac.uk2006-04-051-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | in the configuration space overlay functions. The wrong offset is passed to the virtual field handlers. This patch uses the variable which contains the correct offset. This patch also fixes the logic which generates the actual value to write to a given virtual configuration space field. Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
| * Fix checksum-offload problems introduced in c/s 9514, due tokaf24@firebug.cl.cam.ac.uk2006-04-052-10/+21
| | | | | | | | | | | | | | | | | | data_validated flag not being properly specified on the device channel. Signed-off-by: Keir Fraser <keir@xensource.com>
| * The attached patch fixes a race condition that occurs if after theemellor@leeni.uk.xensource.com2006-04-031-0/+1
| | | | | | | | | | | | | | | | backend has been removed there are still requests pending. This patch flushed all the pending requests. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
| * Handle failure to register the xen store event channel instead of3.0.2-branchedIan.Campbell@xensource.com2006-04-032-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | just not initialising xenbus/store when the supervisor_mode_kernel feature flag is enabled. When initialising grant tables only -ENOSYS is a valid reason to fail so BUG_ON anything else like we did prior to changeset 9498. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * Make checksum handling in the virtual network drivers more robust.kaf24@firebug.cl.cam.ac.uk2006-04-027-32/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Largely this involves making the logic symmetrical: for example, not only should netfront be able to tell netback that a packet has an empty protocol checksum field, but the reverse must also be true. Another change is that the drivers only advertise IP checksum offload functionality. There is currently no information propagated across the device channel about the offset of the protocol-specific checksum field. Therefore it is not safe to defer checksum calculation for protocols the remote end may not understand -- it will end up dropping having to drop the packet. Yet another change is to allow netback to disable tx checksum offload, just as we already could for netfront. Currently there is no support for disabling rx checksum offload -- that would seem to require some way of propagating the checksum-offload advertisement (or lack of it) across the device channel, as it really ought to be the transmitter that acts on it. Thanks to Ian Jackson for pointing out some of the problems with our checksum-offload handling. Several of the changes here are due to his comments. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [IA64] Include features header in xenbus_probe and build features.ckaf24@firebug.cl.cam.ac.uk2006-04-012-1/+2
| | | | | | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
| * Fix do_IRQ high bit masking.cl349@firebug.cl.cam.ac.uk2006-03-315-8/+8
| | | | | | | | | | | | | | | | | | Instead of setting the highest bit (which isn't easily done on native x86_64), negate the interrupt vector stored in orig_{e,r}ax. Also add patch for native build. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
| * Plumb network vif credit-based rate limiting thorugh xenbuskaf24@firebug.cl.cam.ac.uk2006-03-313-22/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and xend into xm guest config files. A new vif parameter 'rate' is supported, with an optional time window paremeter for specifying granularity of credit replenishment. The default window is 50ms. For example: 'rate=10Mb/s' 'rate=250KB/s' 'rate=1MB/s@20ms' From: Chris Clark <christopher.w.clark@gmail.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * Disable xen bus and grant tables when supervisor_mode_kernel is enabled.Ian.Campbell@xensource.com2006-03-312-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Neither of these features are useful/available in this mode since only a single domain is supported. Do not attempt to initialise xen bus when supervisor_mode_kernel is enabled. Do not BUG_ON() failure to setup grant tables, future versions of supervisor_mode_kernel may return -ENOSYS here. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * The ia64 build doesn't yet include drivers/xen/Kconfig directly so wekaf24@firebug.cl.cam.ac.uk2006-03-311-0/+5
| | | | | | | | | | | | | | | | | | need to replicate the new XEN_INTERFACE_VERSION option in the arch Kconfig. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
| * Merged.emellor@leeni.uk.xensource.com2006-03-3114-98/+209
| |\
| | * Remove __HYPERVISOR_sched_op_new in favour of a header file interface ↵cl349@firebug.cl.cam.ac.uk2006-03-3014-96/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version number system. Define interface version in Kconfig and define it through CPPFLAGS for C and assembly file compilation. Add HYPERVISOR_{yield,block,shutdown} to remove direct use of sched_op from guest code. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>