Commit Graph
1823 Commits
Author SHA1 Message Date
kfraser@localhost.localdomain 30ec819826 Merge. 2006-07-28 16:53:58 +01:00
kfraser@localhost.localdomain 4c975eb710 [PCI] Per-device permissive flag (replaces global permissive flag).
Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
2006-07-28 12:56:10 +01:00
kfraser@localhost.localdomain 5b0a11ef14 [PCI] Allow per-device configuration for fine-grained control over PCI
configuration space writes, with a goal that was also previously
described by Ryan:

"Permissive mode should only be used as a fall back for unknown
devices.
I think the correct solution for dealing with these device-specific
configuration space registers is to identify them and add the
device-specific fields to the overlay. This patch adds a special
configuration space handler for network cards based on the tg3 linux
network device driver. This handler should allow for reads/writes to
all of the configuration space registers that the tg3 driver requires."

This patch attempts to address concerns with Ryan's original
submission by moving policy from the dom0 kernel into dom0 user-space.
As new quirky devices emerge they can be incorporated into the user-space
policy.  An added benefit is that changes to the policy are effective
for domains created after the changes are written (no need rebuild the
hypervisor or restart xend).

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
2006-07-28 12:54:58 +01:00
kfraser@localhost.localdomain a111f90b19 [LINUX] Clean up reboot.c suspend handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-28 11:10:08 +01:00
awilliam@xenbuild.aw 0fe57ed434 merge with xen-unstable.hg 2006-07-27 10:43:34 -06:00
awilliam@xenbuild.aw 47c4e81c74 [IA64] remove a debug message
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-07-27 09:16:32 -06:00
kfraser@localhost.localdomain 9314b23b01 Revert previous changeset. Needs more review.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-27 14:06:15 +01:00
kfraser@localhost.localdomain e91cb0ab6f [NET] back: Replace netif->active with netif_carrier_ok
The connection status to the frontend can be represented using
netif_carrier_ok instead of netif->active.  As a result, we delay
the construction of the dev qdisc until the carrier comes on.  This
is a prerequisite for adding a tx queue.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-27 13:52:02 +01:00
kfraser@localhost.localdomain 8fd94b35bf [NET] back: Make use of the simplicity of tasklets in net_rx_action
Tasklets have the property that each one is running on only one CPU at
any time.  This means that you don't have to worry about the tasklet
racing against itself.  Therefore any resources used by just a single
tasklet does not need to be guarded by locks.

Since net_rx_action is the only user of alloc_mfn, we can remove the
mfn_lock that guard it.

The notify_list array is huge by Linux standards so placing it on the
stack is unsafe.  Since net_rx_action is not re-entrant, we can simply
make it static.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-27 13:34:09 +01:00
kfraser@localhost.localdomain b93f5d8456 [NET] front: Zero gso features/pad
Set unused gso features/pad values to zero for forward-compatibility.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-27 13:32:29 +01:00
awilliam@xenbuild.aw d2ac905a14 merge with xen-unstable.hg 2006-07-26 10:49:32 -06:00
awilliam@xenbuild.aw 0adf62a2ae [IA64] nasty bug fix
Bug fix: restore phys_addr field, because some other Xen
functions consider it as unused.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-07-26 09:41:24 -06:00
awilliam@xenbuild.aw f08a891ab3 [IA64] linux without SMP
Add #ifdef CONFIG_SMP so that linux can compile without SMP.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-07-26 09:39:38 -06:00
kfraser@localhost.localdomain b296701bb2 [LINUX] Disable configuration of ARCH_SPARSEMEM_ENABLE on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-26 10:08:13 +01:00
awilliam@xenbuild.aw 31423d8a91 merge with xen-unstable.hg 2006-07-25 12:19:05 -06:00
kfraser@localhost.localdomain 1bcc086e02 Fix Linux so that it does not set a timeout if there are no pending
timers. Fix Xen so that it does not immediately fire a timer event if
it sees a very long timeout -- sometimes this means that there are
no pending timers.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-25 17:01:49 +01:00
kfraser@localhost.localdomain 30aab42f71 [LINUX][NET] Add default ethtool get_link implementation to all
interfaces. Some management tools rely on this operation.

From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-25 16:11:12 +01:00
kfraser@localhost.localdomain 5b4b7f6815 [LINUX] Improve single-page contiguous region creation/destruction
Batch page table updates and fold TLB flush into last one, reducing
number of hypercalls made from ((# of pages) + 1) to just 1.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-07-25 15:58:35 +01:00
awilliam@xenbuild.aw 9d20d1268d [IA64] Support domU coredump on ia64
This patch supports domU coredump on ia64.  xen_panic_event() is
registered to panic_notifier_list, and xen_panic_event() calls
HYPERVISOR_shutdown(SHUTDOWN_crash) at panic time.

If xend is notified of crash status, xend calls dumpCore()
and create domU's core in /var/xen/dump.

For sample crash module and usage, see:

http://lists.xensource.com/archives/html/xen-ia64-devel/2006-07/msg00230.html

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
[minor code re-arrangement]
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-07-24 14:26:03 -06:00
awilliam@xenbuild.aw 8cf361e195 [IA64] vDSO paravirtualization: paravirtualize vDSO
paravirtualize vdso areabased on Kevin's pointout and Dan's Idea.
introduce hyperprivop HYPERPRIVOP_RSM_BE and HYPERPRIVOP_GET_PSR.
and paravirtualize vdso area using them.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-07-24 13:43:35 -06:00
awilliam@xenbuild.aw cd20de68b5 [IA64] vDSO paravirtualization: import linux files
import gate.S, gate.ld.S and patch.c which are needed to
paravirtualize vdso area.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-07-24 13:04:40 -06:00
chris@kneesaa.uk.xensource.com d30245b2bf Fix some more text inconsistencies and put devices in a more sensible order.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
2006-07-14 14:18:39 +01:00
kaf24@firebug.cl.cam.ac.uk 815077ee40 [TPM] Discard a future response packet after a timeout has occurred instead of
removing the request right away.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-07-14 11:48:48 +01:00
kfraser@localhost.localdomain 0df65f6bf9 Fix typo in description of XEN_BLKDEV_TAP
Signed-off-by: Horms <horms@verge.net.au>
2006-07-14 11:43:57 +01:00
jchesterfield@dhcp92.uk.xensource.com 0da81aa1d4 Added blktap support. Includes kernel driver (enabled as CONFIG_XEN_BLKDEV_TAP=y) and userspace tools. The userspace deamon (blktapctrl) is enabled by default when xend is activated. For further information on using and configuring blktap see tools/blktap/README. 2006-07-13 10:13:26 +01:00
awilliam@xenbuild.aw 89b0862b3a [IA64] Save & restore.
xc_ia64_linux_save.c and xc_ia64_linux_restore.c added.
vcpu context has more registers and states (eg: tr registers).
Per cpu irqs are deallocated when cpu is switched off.
#if/#endif added in reboot.c for ia64.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-07-11 12:51:18 -06:00
kfraser@localhost.localdomain 3863ac76d1 [LINUX] Define dma_get_cache_alignment even on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-10 17:33:45 +01:00
kfraser@localhost.localdomain c11016e71c [XENOPROF] Some fixes for xenoprof passive domain support.
Currently, passive domain samples are being assigned to the wrong
kernel functions. This patch fixes this problem. In addition the patch changes the
encoding of domain switch ESCAPE codes (marks used to separate samples
in oprofile  buffers associated with different domains). Instead of
using 2 codes, one  for START and one for END of passive domain
samples, a single escape CODE value is used to indicate a domain switch (no
need for a STOP followed by a START). Finally there some other minor style
fixes.

Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
2006-07-10 16:05:44 +01:00
kfraser@localhost.localdomain b13a112805 [NET] net-gso.patch: Fix up GSO packets with broken checksums
Here is the original changelog:

   [NET] gso: Fix up GSO packets with broken checksums

   Certain subsystems in the stack (e.g., netfilter) can break the
   partial
   checksum on GSO packets.  Until they're fixed, this patch allows
   this to
   work by recomputing the partial checksums through the GSO
   mechanism.

   Once they've all been converted to update the partial checksum
   instead of
   clearing it, this workaround can be removed.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-10 15:36:04 +01:00
kfraser@localhost.localdomain fb79aef8d8 [XENCONSOLE] reference of tty->count in xencons_close() is racy.
It must be protected by tty_sem semaphore like con_close() in
drivers/char/vt.c. and prevent re-opening this tty.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-10 15:23:15 +01:00
awilliam@xenbuild.aw 989c3fcf11 merge with xen-unstable.hg 2006-07-05 20:11:37 -06:00
awilliam@xenbuild.aw b3b4baa6b8 [IA64] Implement and use DOM0_DOMAIN_STEUP.
DOM0_GETMEMLIST now reads ptes and use gpfn.
Domain builder reworked: calls DOMAIN_SETUP, setup start_info page.
SAL data are now in domain memory.
is_vti field added in domain.arch.
Many cleanups (indentation, static, warnings).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-07-05 09:28:32 -06:00
awilliam@xenbuild.aw db19e295c9 [IA64] A few clean ups in __xen_create/destroy_contiguous_region.
This is the IA64 counter part of the C/S
10563:a75c1bdfe76146ad591574d805be5be0a3098d2a of xen-unstable.hg

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-07-03 08:33:15 -06:00
kaf24@firebug.cl.cam.ac.uk 90ad2d20d5 [NET]: Rename feature-tso to feature-gso-tcpv4
This patch renames the name feature-tso to feature-gso-tcpv4 for future
expansion.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 09:07:33 +01:00
kaf24@firebug.cl.cam.ac.uk 7232160efd [NET] front: Zero negotiated bits in xen_set_features
When we reconnect to the backend we need to first zero all negotiated
bits as the functions xen_set_sg and xen_set_tso do not (and are not
supposed to) zero bits when they fail to set them.

This patch also permanently enables the NETIF_F_GSO_ROBUST bit as we
never parse any GSO fields ourselves (even if we did the backend could
not trust us so it's wasted effort).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 09:06:59 +01:00
kaf24@firebug.cl.cam.ac.uk 3c8767d832 [NET] back: Add GSO features field and check gso_size
This patch adds the as-yet unused GSO features which will contain
protocol-independent bits such as the ECN marker.

It also makes the backend check gso_size to ensure that it is non-zero.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 09:05:18 +01:00
kaf24@firebug.cl.cam.ac.uk 3de1ac2405 [NET] back: Fix off-by-one error in netbk_tx_err
The generalised extra request info patch introduced a bug with the use
of netbk_tx_err since it advanced the req_cons pointer by one.  This
patch fixes thing by delaying the increment in netbk_tx_err.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2006-07-03 08:57:15 +01:00
kfraser@dhcp93.uk.xensource.com 65dc3b4029 [LINUX] Fix booting with e.g. xencons=tty3, so that tty1/tty2 are valid (dummy) devices.
Attached patch makes it always create valid devices on tty1-tty63, but
all but the one specified by xencons are dummy devices.

From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-07-03 08:52:27 +01:00
kaf24@firebug.cl.cam.ac.uk d2f56f3181 Merge with xen-ia64-unstable.hg 2006-07-03 08:35:12 +01:00
kaf24@firebug.cl.cam.ac.uk d88eb17bac [XENBUS] Another simplification -- bus_for_each_dev() better than bus_find_device().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 22:02:18 +01:00
kfraser@dhcp93.uk.xensource.com f4b8644cb0 [XENBUS] Another fix to the wait-for-device-connection code.
The new method for printing unconnected device status is arguably
cleaner and also does not screw up reference counts (previous code
called bus_find_device() with no put_device() on the result.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 18:14:57 +01:00
kfraser@dhcp93.uk.xensource.com c97b7fb5d1 [XENBUS] Do not wait for devices with no driver to connect.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 17:53:52 +01:00
kaf24@firebug.cl.cam.ac.uk bab2abfd36 [XENBUS] Improve the code for waiting for devices to connect. Provide
a more useful error when devices fail to connect.
From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 17:02:22 +01:00
kfraser@dhcp93.uk.xensource.com 4509ffb83c [BLK] back: Only remove sysfs attributes if they were previously
added. Also check for errors during attribute creation.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 14:30:43 +01:00
kfraser@dhcp93.uk.xensource.com 0968f0be1f [LINUX] Replace pagetable walks by simple address calculation.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-06-30 10:35:54 +01:00
kfraser@dhcp93.uk.xensource.com a37cc2b0b8 [LINUX] A few clean ups and a fix to an error path in xen_create/destroy_contiguous_region.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 10:24:14 +01:00
kaf24@firebug.cl.cam.ac.uk 10e88b13f4 Use explicit accessors to handle unusually-sized atomic operations in grant table code.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
2006-06-30 10:10:39 +01:00
kaf24@firebug.cl.cam.ac.uk 047923da52 evtchn_do_upcall() has a micro optimization which is depends on that xchg is a barrier.
However xchg of IA64 has acquire semantics so that event
channel notification is lost sometimes. This patch fixes it.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-06-30 10:07:38 +01:00
kfraser@dhcp93.uk.xensource.com ff695fb354 [NET]: Remove gso.segs field from netif protocol.
From: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-06-30 10:04:22 +01:00
kaf24@firebug.cl.cam.ac.uk 33c0901c24 [BLK] back: Clean up sysfs-interfacing code to use VBD_SHOW macro where possible.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
2006-06-30 09:43:08 +01:00