Commit Graph
1589 Commits
Author SHA1 Message Date
awilliam@xenbuild.aw fc81946a2c merge with xen-unstable.hg 2006-09-10 14:52:57 -06:00
awilliam@xenbuild.aw dff14d2746 [IA64] Cleanup for PV-on-HVM for IPF
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-09-10 14:26:27 -06:00
kfraser@ubuntu.eng.hq.xensource.com 5e1a83e8f5 Build fix. 2006-09-08 15:46:54 -07:00
kfraser@ubuntu.eng.hq.xensource.com 160a8ad575 [LINUX] console: ensure virtual console is disabled if mfn/evtchn
not provided.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-08 14:49:00 -07:00
ssmith@weybridge.uk.xensource.com 114411f240 Add support for netif frontends which don't support checksum offload.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-09-04 16:38:24 +01:00
awilliam@xenbuild.aw 3a15682138 merge with xen-unstable.hg 2006-09-01 13:04:02 -06:00
awilliam@xenbuild.aw e4e3263749 [IA64] update buildconfigs
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>
2006-09-01 11:20:48 -06:00
kaf24@firebug.cl.cam.ac.uk e026a54ad6 [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
is exported to modules.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 16:11:51 +01:00
kaf24@firebug.cl.cam.ac.uk 8b7ee4cecb [XENBUS] Make frontend drivers shutdown cleanly.
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>
2006-09-01 00:42:14 +01:00
kaf24@firebug.cl.cam.ac.uk 5182367c40 [XENBUS] Introduce new "online" node for backend drivers.
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>
2006-09-01 00:33:19 +01:00
kaf24@firebug.cl.cam.ac.uk e957a7cb4a Add xenbus_strstate() helper function for more readable debug output.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-09-01 00:20:42 +01:00
kaf24@firebug.cl.cam.ac.uk 5bfcf44bb8 [LINUX] Remove vm_map_xen_pages(), clean up __direct_remap_page_range.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-31 18:23:28 +01:00
kaf24@firebug.cl.cam.ac.uk 1a1adcfe49 [LINUX] /proc/iomem should not be initialised from pseudophysical e820 map.
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>
2006-08-31 03:05:40 +01:00
kaf24@firebug.cl.cam.ac.uk 1b4f247ac5 Merge with xen-ia64-unstable.hg 2006-08-30 21:38:34 +01:00
kaf24@firebug.cl.cam.ac.uk 02980865d0 [NET] front: move register_netdev() + sysfs attribute registering from 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>
2006-08-30 18:40:40 +01:00
kaf24@firebug.cl.cam.ac.uk c398044d5d [LINUX][X86_64] P2M map must be allocated on page aligned boundary.
Otherwise save/restore can break.
Signed-off-by: Kazuo Moriwaka <moriwaka@valinux.co.jp>
2006-08-30 17:56:49 +01:00
akw@devbox.site 34cac35129 Small blktap cleanups.
Signed-off-by: Andrew Warfield <andy@xensource.com>
2006-08-29 15:55:24 -07:00
awilliam@xenbuild.aw e012111cf5 [IA64] Modify sparse headers for PV-on-HVM/IPF
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-08-28 16:16:07 -06:00
awilliam@xenbuild.aw 22932bd03c merge with xen-unstable.hg 2006-08-27 10:24:41 -06:00
awilliam@xenbuild.aw 26cb12a513 [IA64] Clean up: change asm constraints and remove _hypercall_imm*
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-08-24 11:42:24 -06:00
kfraser@localhost.localdomain 9a0c7e1900 [LINUX] Remove hypercall permission checks from privcmd driver.
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>
2006-08-24 17:58:28 +01:00
awilliam@xenbuild.aw 0bbee1ed75 [IA64] PV-to-HVM prep for maddr.h
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>
2006-08-23 12:56:10 -06:00
awilliam@xenbuild.aw 3edc42f921 [IA64] split parts of page.h into maddr.h
ia64 support for xen-unstable.hg cset 11081:9c953e1b6fad

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-08-23 11:15:29 -06:00
awilliam@xenbuild.aw 760268640c [IA64] only setup extra vga console support on dom0
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-08-23 11:14:52 -06:00
awilliam@xenbuild.aw 9f557e7ff2 merge with xen-unstable.hg 2006-08-23 11:11:27 -06:00
Ian Campbell b543b44c65 [XEN/LINUX] Define Xen ELF notes in kernel header and update dom0 builder.
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>
2006-08-23 14:41:05 +01:00
awilliam@xenbuild.aw 417209a93e [IA64] Add stubs to Linux/IPF for the new hvm_op hypercall.
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
2006-08-22 14:44:13 -06:00
kfraser@localhost.localdomain b3ea76b1e0 [HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pci
driver can now handle multi-page hypercall stub areas.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-22 17:16:58 +01:00
kfraser@localhost.localdomain 314ded7410 [x86_64] Guests no longer set _PAGE_USER on kernel mappings.
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>
2006-08-22 15:26:40 +01:00
Ian Campbell 5db8d219b0 [LINUX] Support creating ELF note segments in the kernel ELF image.
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>
2006-08-22 12:20:43 +01:00
Ian Campbell d08c8d1fee [LINUX] Revert bits of cset 11202 since they break the -xenU build for x86/64.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-08-22 11:30:13 +01:00
kaf24@localhost.localdomain e7b9a93ed4 [XENBUS] Allow user of xenbus_read_driver_state() to distinguish
absence of state field in xenstore by returning XenbusStateUnknown
rather than XenbusStateClosed.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-19 14:28:10 +01:00
kaf24@localhost.localdomain 35f4fc005c [LINUX] Replace uses of CONFIG_XEN_PRIVILEGED_GUEST with is_initial_xendomain().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-08-19 12:08:12 +01:00
kaf24@localhost.localdomain 9f60d1c88b [NET] front: Fix receive path for auto-translated guests, so that
driver balloon allowance is properly accounted.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-19 11:39:04 +01:00
kaf24@localhost.localdomain 8da2f6c59c [NET] front: Fix tx buffer leak in teardown path. Fix rx-buffer
cleanup: cannot free skbuffs until their memory is remapped by
multicall.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-19 11:08:40 +01:00
kaf24@localhost.localdomain 587411253f [NET] front: Fix rx buffer leak when tearing down an interface.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-08-19 10:58:07 +01:00
kaf24@localhost.localdomain a2a686df00 [XENBUS] Cleanup correctly on suspend, unregister watches.
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>
2006-08-19 10:21:02 +01:00
kaf24@localhost.localdomain 7d0aeaacea [NET/BLK] back: Change the netback and blkback device drivers to allow
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>
2006-08-19 10:20:08 +01:00
kaf24@localhost.localdomain eafec813bf [BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") unconditionally.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
2006-08-19 10:17:48 +01:00
kaf24@localhost.localdomain 7ee41b61d8 [XENBUS] A few cleanups.
* 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>
2006-08-19 10:15:01 +01:00
kfraser@localhost.localdomain 5b25e510fe [NET] front: Improve correctness when there is no connection to backend driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-17 19:11:14 +01:00
kfraser@localhost.localdomain d72404ae25 [NET] front: Allow driver to be built for an HVM guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-17 18:45:59 +01:00
kfraser@localhost.localdomain c3bc0c6a72 [NET] front: Allow driver to be built against kernels which do not
have extended checksum-offload info fields in teh skbuff structure.
Based on a patch from Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-17 17:08:19 +01:00
kfraser@localhost.localdomain 5455b6130d [NET] front: Make netfront compile against kernels without the GSO patch.
Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-17 16:57:43 +01:00
kfraser@localhost.localdomain 6c90c31b47 [LINUX] Fix return value of gnttab_resume().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-08-17 16:57:16 +01:00
kfraser@localhost.localdomain dc043970e7 [HVM] Allow blkfront driver to be built for an HVM guest.
Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-17 16:33:42 +01:00
kfraser@localhost.localdomain 05592e02ad [HVM] Allow xenbus to run in an HVM guest.
Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-17 16:32:30 +01:00
kfraser@localhost.localdomain a03d12d189 [LINUX] Allow xenbus to be built as a module.
Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-17 16:28:47 +01:00
kfraser@localhost.localdomain a8475c2e49 [HVM] Avoid accessing start_info from xenbus as far as possible, since
HVM domains do things slightly differently.
Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-17 16:22:08 +01:00
kfraser@localhost.localdomain 738c1ffa96 [HVM] Make grant tables functions work in PV-on-HVM drivers.
Signed-off-by: Steven Smith <ssmith@xensource.com>
2006-08-17 16:21:08 +01:00