aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
Commit message (Collapse)AuthorAgeFilesLines
...
| * [BLKTAP] Fix blktap oops on domain shutdownAndrew Warfield2006-09-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a domain shuts down with a blktap-backed block device open, it can easily cause a dom0 oops. The XenbusStateClosing event can occur while the tapdisk userland thread is still processing IO requests (eg. readaheads) from the domU. But the xenbus state handler calls tap_blkif_unmap(), unmapping the blkif->blk_ring.sring rin buffer, so when the tapdisk thread next calls the BLKTAP_IOCTL_KICK_FE to return the completion event to the FE via that ring buffer, it oopses. This can be fixed simply by not calling tap_blkif_unmap() in this case; the ring buffer will still be unmapped later on when the blkif is destroyed by blktap_remove(), only then it will properly wait for the blkif refcnt to reach zero before doing so. Signed-off-by: Stephen Tweedie <sct@redhat.com>
| * [NET] back: 4 loopbacks by default for dom0 (previously was 8).kfraser@localhost.localdomain2006-09-281-1/+1
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] back: Create 0 loopbacks by default for non-domain-0.kfraser@localhost.localdomain2006-09-281-1/+5
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* | [IA64] do not export XSI_BASE, use set_shared_info_vaawilliam@xenbuild.aw2006-10-012-7/+3
|/ | | | | | | | | | | Until now, the set_shared_info_va hypercall was never used. This patch remove XSI_BASE and use this hypercall to set the xsi address. Because xsi is now in the top 1MB (before percpu space), linux code should be slightly more compact (addl instead of movl). Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* [LINUX] Provide permanent global version of machine_e820 map forkfraser@localhost.localdomain2006-09-212-18/+19
| | | | | general use. Signed-off-by: Keir Fraser <keir@xensource.com>
* [linux] Update to linux-2.6.16.29.Christian Limpach2006-09-199-13/+27
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* Clean up dom0_vga_console_info structure for v3.0.3.kfraser@localhost.localdomain2006-09-185-60/+48
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Add new operation XENOPROF_get_buffer in xenoprof hypercall. Alsokaf24@firebug.cl.cam.ac.uk2006-09-131-38/+51
| | | | | | | | | | | | remove buffer related arguments from XENOPROF_init operation. This is the first step to allow dynamic mapping/unmapping of xenoprof buffers to enable profiling a domain in passive mode and then switch to active mode (or vice-versa). Currently a domain can only be profiled in a single mode. Also passive domains cannot have oprofile builtin the kernel or passive profiling will fail. Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
* [IA64] swiotlb clash fixawilliam@xenbuild.aw2006-09-121-0/+2
| | | | | | | | | | | Do not define dma_supported to platform_dma_supported when building the Xen kernel. This happend to work for DIG builds because the swiotlb.c version of dma_supported compiles to identical code as arch/i386/kernel/pci-dma-xen.c so the linker didn't complain. Signed-off-by: Jes Sorensen <jes@sgi.com>
* [IA64] machvec cleanupsawilliam@xenbuild.aw2006-09-122-15/+33
| | | | | | | | Move the DIG specific platform_dma_foo defines to where they belong. Signed-off-by: Jes Sorensen <jes@sgi.com>
* merge with xen-unstable.hgawilliam@xenbuild.aw2006-09-103-14/+32
|\
| * Build fix.kfraser@ubuntu.eng.hq.xensource.com2006-09-081-1/+1
| |
| * [LINUX] console: ensure virtual console is disabled if mfn/evtchnkfraser@ubuntu.eng.hq.xensource.com2006-09-082-13/+23
| | | | | | | | | | | | not provided. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Add support for netif frontends which don't support checksum offload.ssmith@weybridge.uk.xensource.com2006-09-041-0/+8
| | | | | | | | Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* | [IA64] Cleanup for PV-on-HVM for IPFawilliam@xenbuild.aw2006-09-103-5/+17
| | | | | | | | | | | | | | Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-09-0117-119/+203
|\|
| * [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The formerkaf24@firebug.cl.cam.ac.uk2006-09-011-2/+3
| | | | | | | | | | is exported to modules. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [XENBUS] Make frontend drivers shutdown cleanly.kaf24@firebug.cl.cam.ac.uk2006-09-015-8/+42
| | | | | | | | | | | | | | | | This patch makes frontend drivers being shutdown when devices_shutdown() is called and walks down the device tree. Most of it is handled by the xenbus core, which got a new function for the bus->shutdown callback. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| * [XENBUS] Introduce new "online" node for backend drivers.kaf24@firebug.cl.cam.ac.uk2006-09-017-14/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Driver changes: Make backend drivers check it when entering Closed state, only unregister devices when the "online" node is either "0" or not present. The later maintains backward compatibility. Tools changes: Update "online" node when creating and hot-unplugging devices. Background: When kexec'ing a new kernel, the old kernel's frontend driver will shutdown, but the backend device should *NOT* disappear due to that, so the new kernel instance can reconnect. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| * Add xenbus_strstate() helper function for more readable debug output.kaf24@firebug.cl.cam.ac.uk2006-09-013-2/+19
| | | | | | | | | | From: Gerd Hoffmann <kraxel@suse.de> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Remove vm_map_xen_pages(), clean up __direct_remap_page_range.kaf24@firebug.cl.cam.ac.uk2006-08-312-57/+36
| | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] /proc/iomem should not be initialised from pseudophysical e820 map.kaf24@firebug.cl.cam.ac.uk2006-08-313-6/+8
| | | | | | | | | | | | | | | | | | | | | | This is because it should only contain real I/O memory address ranges, otherwise we can get false conflicts between a real I/O range and a 'pseudophysical' RAM range, causing drivers to fail to work in a domU. Also prevent kernel code/data being requested as iomem resources -- they are not contiguous in 'io memory' space so this would not make sense. Signed-off-by: Keir Fraser <keir@xensource.com>
| * Merge with xen-ia64-unstable.hgkaf24@firebug.cl.cam.ac.uk2006-08-303-32/+42
| |\
| | * [NET] front: move register_netdev() + sysfs attribute registering from ↵kaf24@firebug.cl.cam.ac.uk2006-08-301-25/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | create_netdev() into the new open_netdev() function. open_netdev is called as very last thing in netdev_probe. This closes at least one initialization race: uninitialized mac address is visible for a short time in /sys/class/net/${if}/address Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| | * [LINUX][X86_64] P2M map must be allocated on page aligned boundary.kaf24@firebug.cl.cam.ac.uk2006-08-301-3/+3
| | | | | | | | | | | | | | | | | | Otherwise save/restore can break. Signed-off-by: Kazuo Moriwaka <moriwaka@valinux.co.jp>
| | * Small blktap cleanups.akw@devbox.site2006-08-291-4/+4
| | | | | | | | | | | | Signed-off-by: Andrew Warfield <andy@xensource.com>
* | | [IA64] update buildconfigsawilliam@xenbuild.aw2006-09-011-6/+0
|/ / | | | | | | | | | | | | | | | | | | | | This fixes the sparse tree buildconfigs to allow xenU to build automatically. There's no need to force netdev front/back on from the arch Kconfig file anymore. Based on patch from Akio Takebe & Yoshiro Fujita. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] Modify sparse headers for PV-on-HVM/IPFawilliam@xenbuild.aw2006-08-282-7/+31
| | | | | | | | | | | | | | Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-08-273-31/+43
|\|
| * [LINUX] Remove hypercall permission checks from privcmd driver.kfraser@localhost.localdomain2006-08-241-23/+0
| | | | | | | | | | | | | | | | | | | | This will allow the tools management to be revised independently of dom0 kernel interfaces. Currently tools cannot be 'smarter' than the kernel in terms of hypercalls they know about, because the kernel disallows access to any hypercalls it does not know about. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [XEN/LINUX] Define Xen ELF notes in kernel header and update dom0 builder.Ian Campbell2006-08-232-8/+43
| | | | | | | | | | | | | | | | | | | | ELF notes provide a cleaner interface for passing Xen specific information from the kernel to the domain builder than the existing __xen_guest section string. The __xen_guest string is retained in kernels built with 3.0.2 compatability for domU however dom0 requires the new interface. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
* | [IA64] Clean up: change asm constraints and remove _hypercall_imm*awilliam@xenbuild.aw2006-08-241-118/+31
| | | | | | | | | | | | Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* | [IA64] PV-to-HVM prep for maddr.hawilliam@xenbuild.aw2006-08-231-22/+29
| | | | | | | | | | | | | | | | | | Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com> Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com> [merged with existing maddr.h] Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] split parts of page.h into maddr.hawilliam@xenbuild.aw2006-08-232-65/+82
| | | | | | | | | | | | | | | | ia64 support for xen-unstable.hg cset 11081:9c953e1b6fad Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | [IA64] only setup extra vga console support on dom0awilliam@xenbuild.aw2006-08-231-1/+1
| | | | | | | | | | | | Signed-off-by: Alex Williamson <alex.williamson@hp.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-08-2364-764/+1565
|\|
| * [HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pcikfraser@localhost.localdomain2006-08-224-17/+39
| | | | | | | | | | driver can now handle multi-page hypercall stub areas. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [x86_64] Guests no longer set _PAGE_USER on kernel mappings.kfraser@localhost.localdomain2006-08-223-17/+13
| | | | | | | | | | | | | | | | | | This may allow guest kernels to be run outside ring 3 in future, and also provides scope for optimisations today (e.g., using global bit on user mappings). Signed-off-by: Jun Nakajima <jun.nakajima@intel.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Support creating ELF note segments in the kernel ELF image.Ian Campbell2006-08-221-2/+10
| | | | | | | | | | | | | | i386 version is taken from 2.6.18-rc4-mm1 and x86_64 version has been submitted for inclusion. Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [LINUX] Revert bits of cset 11202 since they break the -xenU build for x86/64.Ian Campbell2006-08-221-0/+12
| | | | | | | | Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
| * [XENBUS] Allow user of xenbus_read_driver_state() to distinguishkaf24@localhost.localdomain2006-08-1910-17/+11
| | | | | | | | | | | | absence of state field in xenstore by returning XenbusStateUnknown rather than XenbusStateClosed. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [LINUX] Replace uses of CONFIG_XEN_PRIVILEGED_GUEST with is_initial_xendomain().kaf24@localhost.localdomain2006-08-196-41/+23
| | | | | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
| * [NET] front: Fix receive path for auto-translated guests, so thatkaf24@localhost.localdomain2006-08-191-25/+32
| | | | | | | | | | driver balloon allowance is properly accounted. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] front: Fix tx buffer leak in teardown path. Fix rx-bufferkaf24@localhost.localdomain2006-08-191-14/+29
| | | | | | | | | | | | cleanup: cannot free skbuffs until their memory is remapped by multicall. Signed-off-by: Keir Fraser <keir@xensource.com>
| * [NET] front: Fix rx buffer leak when tearing down an interface.kaf24@localhost.localdomain2006-08-193-0/+95
| | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| * [XENBUS] Cleanup correctly on suspend, unregister watches.kaf24@localhost.localdomain2006-08-191-0/+10
| | | | | | | | | | | | | | Again needed for domU kexec, so the next kernel instance can register watches without running into -EBUSY. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| * [NET/BLK] back: Change the netback and blkback device drivers to allowkaf24@localhost.localdomain2006-08-192-0/+20
| | | | | | | | | | | | | | | | | | and handle frontend state transition from "Closing" to "Initialising". Instead of destroying the backend device then they wait for a reconnect from the frontend. Needed for domU kexec support, to hand over devices from one kernel instance to the next. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| * [BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") ↵kaf24@localhost.localdomain2006-08-191-11/+7
| | | | | | | | | | | | unconditionally. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| * [XENBUS] A few cleanups.kaf24@localhost.localdomain2006-08-191-11/+17
| | | | | | | | | | | | | | | | | | * move function prototypes to the top of the file. * uses the "struct bus_type" function pointers instead of overwriting the "struct device_driver" ones for xenbus_dev_probe() and xenbus_dev_remove(). Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
| * [NET] front: Improve correctness when there is no connection to backend driver.kfraser@localhost.localdomain2006-08-171-13/+19
| | | | | | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>