aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
Commit message (Collapse)AuthorAgeFilesLines
...
* | [IA64] Xencomm fixes for HVM PV-drivers and driver domain.awilliam@xenbuild.aw2006-10-148-221/+358
| | | | | | | | | | | | | | | | Create xcom_mini.c from xcom_hcall.c Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-1417-491/+482
|\|
| * [NET] front: Do not read features from backend until it enters InitWait.kfraser@localhost.localdomain2006-10-131-45/+45
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Simplify probing of new interfaces. There's no needkfraser@localhost.localdomain2006-10-133-80/+33
| | | | | | | | | | | | | | 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>
| * [NET] front: No need to read handle field from xenstore. It's not used.kfraser@localhost.localdomain2006-10-131-12/+4
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Copy tx_ring data before verificationkfraser@localhost.localdomain2006-10-121-26/+27
| | | | | | | | | | | | | | | | We need to make a copy of data from tx_ring before verifying them as otherwise what we end up using may be different from what was verified. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
| * Fix privcmd mmap() on 64b architectures for regions larger than 2GB.kfraser@localhost.localdomain2006-10-121-3/+4
| | | | | | | | | | Signed-off-by: Xin Li <xin.b.li@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [IA64] Add support for enforcing singleshot mmap() semantics at thekfraser@localhost.localdomain2006-10-123-6/+21
| | | | | | | | | | | | privcmd interface. From: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [PRIVCMD] Fix ia64 domain creation by abstracting the singleshot mapping check.kfraser@localhost.localdomain2006-10-121-8/+12
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Fix inter-domain networking when using rx-copy path.kfraser@localhost.localdomain2006-10-121-4/+12
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] front: Fix error handling to correctly skip bogus frags.kfraser@localhost.localdomain2006-10-121-7/+15
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Fix netif rate limiting.kfraser@localhost.localdomain2006-10-102-3/+20
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Refcount fixes to vif rate-limiting code.kfraser@localhost.localdomain2006-10-092-3/+8
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [PRIVCMD] Fix trivial bug introduced in IOCTL_PRIVCMD_MMAP.kfraser@localhost.localdomain2006-10-091-1/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Various fixes for mmapping I/O and foreign memory pages.kfraser@localhost.localdomain2006-10-093-69/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, auto-translate guests can use remap_pfn_range() rather than direct_remap_pfn_range(). This actually works better because remap_pfn_range() can legitimately assert VM_PFNMAP (this patch removes this flag for direct_remap_pfn_range(). There are various cleanups and fixes to the privcmd interface: 1. VMAs should be searched and used under the mmap semaphore 2. Mapping should be single shot (since cirect_remap_pfn_range() expects the PTEs to be empty when it is called). 3. Demand-fault population of the privcmd vma should be disallowed. 4. Various others, including a more thorough check of input args. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [BALLOON] Replace alloc_empty_page_range with new helper ↵kfraser@localhost.localdomain2006-10-066-145/+86
| | | | | | | | | | | | | | alloc_empty_pages_and_pagevec. This is a better fit with all the callers, who now allocate discontiguous empty pages. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [BLK] tap: Allocate pages for foreign mappings individually rather than ↵kfraser@localhost.localdomain2006-10-061-81/+46
| | | | | | | | | | | | contiguously. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [TPM] back: Allocate pages for foreign mappings individually rather than ↵kaf24@firebug.cl.cam.ac.uk2006-10-053-16/+43
| | | | | | | | | | | | contiguously. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Allocate pages for foreign mappings individually rather than ↵kaf24@firebug.cl.cam.ac.uk2006-10-051-19/+30
| | | | | | | | | | | | contiguously. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Remove unused rx_mmap area. Copying happens inside Xen, sokaf24@firebug.cl.cam.ac.uk2006-10-051-18/+0
| | | | | | | | | | | | there is no need for a mapping area inside the driver for copying receive path. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [BLK] back: Allocate pages for foreign mappings individually ratherkaf24@firebug.cl.cam.ac.uk2006-10-053-39/+44
| | | | | | | | | | than in one large contiguous region. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] front: Fix size of grant_rx_ref[]. It should use the RX ringkfraser@localhost.localdomain2006-10-051-1/+1
| | | | | | | | | | size, rather than the TX ring size. Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
| * [NET] front: Include linux/moduleparam.h since we use module_param_*Ian Campbell2006-10-051-0/+1
| | | | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [NET] front: If the kernel does not include GSO then look for TSO.Ian Campbell2006-10-051-5/+32
| | | | | | | | | | | | | | This allows us to take advantage of TSO when running as PV-on-HVM on older kernels. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [NET] front: Invert the test for a kernel with GSO support.Ian Campbell2006-10-051-4/+4
| | | | | | | | | | | | This simplifies a subsequent patch. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* | [IA64] Remove test of dead CONFIG_XEN_IA64_DOM0_NON_VP awilliam@xenbuild.aw2006-10-081-2/+0
| | | | | | | | | | | | Signed-off-by: Aron Griffis <aron@hp.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-053-14/+36
|\|
| * [LINUX] Don't bother to write a 5-bit value to a 2-bit field.kfraser@localhost.localdomain2006-10-041-1/+0
| | | | | | | | | | From: Jan Beulich <jbeulich@novell.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Disable packet queuing when a client has no receive buffers.kfraser@localhost.localdomain2006-10-042-13/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | This turns out to be dangerous as packets can be queued indefinitely, introducing resource dependencies between guests (if the queued packets originate from another virtual machine). For example, this can prevent interfaces from being torn down and hence defunct virtual machines from being destroyed. The queuing functionality is retained as a module option, but a warning is printed if it is enabled. It is not intended for general use! Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] fix sparse tree build with p2m exposure disabledawilliam@xenbuild.aw2006-10-041-0/+4
| | | | | | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] p2m exposure. linux side part.awilliam@xenbuild.aw2006-10-044-0/+320
| | | | | | | | | | | | | | | | | | | | | | | | This patch introduce compile time option XEN_IA64_EXPOSE_P2M to enable this feature and boot option xen_ia64_p2m_expose to disable the functionality. This patch also introduce XEN_IA64_EXPOSE_P2M_USE_DTR to map p2m table with dtr and boot option xen_ia64_p2m_expose_use_dtr to disable it. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | [IA64] remove getmeminfo.nr_pages trick from xencommawilliam@xenbuild.aw2006-10-041-4/+1
| | | | | | | | | | | | | | | | getmeminfo nr_page trick is not anymore necessary. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | [IA64] xencomm_privcmd_sched_opawilliam@xenbuild.aw2006-10-041-0/+30
| | | | | | | | | | | | | | | | Necessary for reboot on VTi domains. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* | [IA64] add GNTTABOP_copy to xencommize_grant_table_opawilliam@xenbuild.aw2006-10-031-0/+1
| | | | | | | | | | | | | | | | This is used w/ xennet.rx_copy Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-032-18/+57
|\|
| * [NET] Make MAX_SKBUFF_ORDER page-size independent.kfraser@localhost.localdomain2006-10-031-1/+6
| | | | | | | | | | Original patch from Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] front: Allow copying receive path to be selected by user atkfraser@localhost.localdomain2006-10-021-17/+51
| | | | | | | | | | module load time. Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] Implement fast hypercall for physdevop eoi.awilliam@xenbuild.aw2006-10-021-2/+12
| | | | | | | | | | | | | | | | | | | | Eoi is a very frequent hypercall which has only one argument passed through a structure. To avoid the xencomm overhead, a new hypercall is created and the argument is passed by value. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | [IA64] Use xencomm for hypercalls.awilliam@xenbuild.aw2006-10-0213-204/+1504
| | | | | | | | | | | | | | | | | | | | With xencomm metaphysical addresses are passed to the hypervisor instead of virtual addresses. This patch breaks compatibility. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-10-018-132/+205
|\|
| * [NET] back: Loopback must copy foreign mappings.kfraser@localhost.localdomain2006-09-292-1/+51
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Make evtchn device use a dynamic minor number.kfraser@localhost.localdomain2006-09-292-5/+1
| | | | | | | | | | | | | | | | Also update the code in tools to create the device node if udev fails. The tools now read the sysfs system to find the minor number needed. Original patch from Steven Rostedt <srostedt@redhat.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [BLKTAP] Remove unnecessary TLB flush from blktap driver.kfraser@localhost.localdomain2006-09-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | blktap_poll is calling tlb_flush_all() in its main ring buffer polling loop. This seems to be superfluous: the hypervisor should be performing any necessary tlb flushes on grant table operations performed by the back-end. Even a simple memory barrier is unnecessary here as the RING_PUSH_REQUESTS() call performs a wmb() anyway. And tlb_flush_all() is not exported to modules, so this call prevents blktap from building as a module. Just remove it. Signed-off-by: Stephen Tweedie <sct@redhat.com>
| * [NET] back: Reset netfilter context in loopback receive path.kfraser@localhost.localdomain2006-09-291-1/+7
| | | | | | | | | | The issue is described in bugzilla report #746. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [BLK] front: Flush workqueues with no locks held. Operation can sleep.kfraser@localhost.localdomain2006-09-291-2/+6
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [XENBUS] Don't perform normal state-machine transitions andkfraser@localhost.localdomain2006-09-292-1/+15
| | | | | | | | | | | | | | | | | | notifications during shutdown. When rootfs goes away this can cause the system to hang, as we notify userspace etc. Instead we forcibly reset the state machine back to state Closed if we are a frontend driver, to get the backend to release resources. Necessary if we are going to kexec. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [BLKTAP] have udev create the device for blktapAndrew Warfield2006-09-281-6/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes blktap Do The Right Thing(TM). It allows udev to create the /dev/xen/blktap[0-9] devices. It creates a sysfs class called "xen". This part may later be placed someplace else, but currently blktap is the only user so it is placed in the blktap code. When blktap is initialized, a blktap0 sysfs class device is made. The other devices blktapX (X > 0) are made when the BLKTAP_IOCTL_NEWINTF ioctl is called. This way we don't flood the sysfs and /dev/xen with unnecessary devices. I added a rule in the xen-backend.rules to allow for udev to create the blktap devices. With this, we can really remove the code to search and create the /dev/xen/blktap[0-9]*, but I'll leave it in for now. With the use of udev, we really should remove that code as well as the code for creating the evtchn device. udev works for both of these now. But that removal will have to be in another patch. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
| * [BLKTAP] have blktap use a dynamic majorAndrew Warfield2006-09-281-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | blktap currently uses a hardcoded major of 254 for the device. This is not robust in anyway and needs to be dynamic. Note: it is better not to have the daemon create the node, and have udev create it instead. But since the daemon currently creates the node anyway, it is still the way this is done. That change needs to be made at another time. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
| * [BLKTAP] Fix SMP debugging assert failures in blktapAndrew Warfield2006-09-281-36/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blktap is calling non-atomic kernel functions with irqs disabled, which hits various kernel debug traps if those are enabled. The problem is req_increase(), which takes the pending_free_lock. This function is currently only ever called from module initialiation, where it is impossible for it to race against anything else. Its companion, req_decrease(), is not called at all. Fix by removing the offending locking from req_increase() and, while we're at it, remove req_decrease() entirely. Signed-off-by: Stephen Tweedie <sct@redhat.com>
| * [BLKTAP] clean up blktap and remove private structureAndrew Warfield2006-09-281-72/+51
| | | | | | | | | | | | | | | | | | | | | | This patch cleans up the blktap.c code to make it form to the Linux coding style a little better. It also removes the private data structure that is only used to store the index of the tabfds descriptor. Instead the filp->private_data now points to the descriptor itself. Signed-off-by: Steven Rostedt <srostedt@redhat.com>