Commit Graph
1806 Commits
Author SHA1 Message Date
kaf24@localhost.localdomain b842346faa [BLK] front: Fix free of event channel.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
2006-12-28 17:14:41 +00:00
kfraser@localhost.localdomain a32030439b [LINUX][IA64] New file swiotlb.h.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-12-21 11:10:43 +00:00
kfraser@localhost.localdomain 27ea071e57 [NET] front: Fix interface teardown.
Original bug discovered and fixed by Glauber de Oliveira Costa
<gcosta@redhat.com>.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 11:39:22 +00:00
kfraser@localhost.localdomain 576a882bc5 [LINUX] dma: Use swiotlb mask for coherent mappings too
The recent change to use a default DMA bit width of 30 bits (required
by chips like the b44) only converted the streaming DMA primitives.
The coherent mappings are still hard-coded to 31 bits.  This means
that b44 still doesn't work under Xen.

This patch makes the io_tlb_dma_bits variable global and uses it for
coherent memory mappings.

Thanks to Calvin Webster for providing a machine with a b44 and 2G
of memory I've been able to verify that this finally makes the b44
work under Xen.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Rename 'io_tlb_dma_bits' to the more correct 'dma_bits'. This also
affects the name of the boot parameter, which is now 'dma_bits='.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 11:21:04 +00:00
kfraser@localhost.localdomain 3d17485a07 [LINUX] Disallow nested event delivery.
This eliminates the risk of overflowing the kernel stack and is a
reasonable policy given that we have no concept of priorities among
event sources.

Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-20 11:09:56 +00:00
awilliam@xenbuild2.aw f4556d2362 merge with xen-unstable.hg 2006-12-18 10:56:34 -07:00
awilliam@xenbuild2.aw 5fb6147b15 [IA64] evtchn_callback fix and clean
Since we had changed to use event callback to deliver interrupts,

1. The pending_interruption is changed to pending_event.

2. get_ivr, set_tpr, get_trp and set_eoi are not used or only used
   in the initialization phase. There is no need to write this code
   in assembly.  This code is deleted.

3. hyper_ssm_i needs to be rewritten to jump to entchn_callback_handler
   instead of iva+0x3000 interrupt handler.  I will do this later.

Signed-off-by: Anthony Xu  <anthony.xu@intel.com>
2006-12-18 10:20:34 -07:00
kfraser@localhost.localdomain 6465003372 [XENFB] xenfb_update_screen() calls zap_page_range() while holding spinlock mm_lock.
Changeset 13018:c98ca86138a7422cdf9b15d87c95619b7277bb6a merely sweeps
the bug under the carpet: it silences zap_page_range()'s cries for
help by keeping interrupts enabled.  That doesn't fix the bug, and
it's also wrong: if a critical region gets interrupted, and the
interrupt printk()s, xenfb_refresh() gets executed and promptly
deadlocks.

This patch fixes the locking, but leaves open a race between
xenfb_update_screen() and do_no_page().  See the source code for a
detailed explanation of how it works, and where it fails.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
2006-12-15 17:29:25 +00:00
kfraser@localhost.localdomain 805c949b34 [NET]: Fix segmentation of linear packets
skb_segment fails to segment linear packets correctly because it
tries to write all linear parts of the original skb into each
segment.  This will always panic as each segment only contains
enough space for one MSS.

This was not detected earlier because linear packets should be
rare for GSO.  In fact it still remains to be seen what exactly
created the linear packets that triggered this bug.  Basically
the only time this should happen is if someone enables GSO
emulation on an interface that does not support SG.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-12-15 09:38:56 +00:00
kfraser@localhost.localdomain 89bc2ddec0 Merge with xen-ia64-unstable.hg 2006-12-14 18:22:58 +00:00
awilliam@xenbuild2.aw 5a170ea5d6 merge with xen-unstable.hg 2006-12-14 08:57:36 -07:00
awilliam@xenbuild2.aw 318b012682 [IA64][BUILD] XEN_XKBUFF needs to depend on NET
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-12-14 08:54:54 -07:00
kfraser@localhost.localdomain 65a186bbcb [NET] front: Fix crashes when xenstore watches fire multiple times.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-14 12:21:28 +00:00
kfraser@localhost.localdomain 7d613526dc [XENFB] No need for IRQs to be disabled in critical regions.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-14 11:37:14 +00:00
kfraser@localhost.localdomain b4439be6e5 [LINUX] Fix seg-fixup warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-14 11:09:27 +00:00
kfraser@localhost.localdomain 14118bd0a8 [LINUX] Fix build without CONFIG_HOTPLUG_CPU
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-12-14 10:32:38 +00:00
kfraser@localhost.localdomain 5eb892022a [NET] back: Atomic buffer allocations use __GFP_NOWARN.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-11 09:56:02 +00:00
awilliam@xenbuild2.aw 0741834153 merge with xen-unstable.hg 2006-12-08 09:09:18 -07:00
Ian Campbell c720eb6ab7 [LINUX] Kexec: Remove remainder of kexec-generic.patch
Rename xen_machine_kexec() to just machine_kexec() and only compile in
the Xen or native version as appropriate.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-12-08 11:47:09 +00:00
Ian Campbell 69f0c953b4 [LINUX] Kexec: Reapply kexec patches to sparse tree.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-12-08 11:47:09 +00:00
Ian Campbell 24a9aad534 [LINUX] Kexec: add kexec files to sparse tree.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-12-08 11:47:09 +00:00
Ian Campbell e793ba7d4e [LINUX] Kexec: Do not bug if a kexec hypercall fails.
This is non fatal since we can recover and boot without kexec
functionality.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-12-08 11:46:48 +00:00
kfraser@localhost.localdomain 7953e4aa37 [LINUX] CONFIG_XEN_BACKEND=m build properly.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-12-08 09:35:00 +00:00
kfraser@localhost.localdomain ebeefe4ef6 [LINUX] Make CONFIG_XEN_FRAMEBUFFER=m build properly.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-08 09:34:24 +00:00
kfraser@localhost.localdomain 27c982df5e [LINUX] Make xb_waitq static.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-12-08 09:27:39 +00:00
kfraser@localhost.localdomain e80c00aa78 [LINUX] Clean up and clarify find_unbound_irq().
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-08 09:19:37 +00:00
kfraser@localhost.localdomain a8b5e33ac8 [LINUX] Fail gracefully if we run out of spare IRQs.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-07 16:43:08 +00:00
awilliam@xenbuild2.aw c8f8d49382 [IA64] implement free_irq_vector() paravirtualization
This avoids a double free error message since dom0 isn't
actually using the ia64_vector_mask.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
2006-12-07 04:15:54 -07:00
awilliam@xenbuild.aw 0013d074cd [IA64] changed foreign domain page mapping semantic.
x86 foreign HVM domain page mapping semantic was changed to use gmfn
instead mfn.  It applies to domains with auto_translated_mode enabled,
and all ia64 domains enable auto_translated_mode.  This patch changes
ia64 foreign domain page mapping to use gmfn and fixes ia64 domU buidler.
However this patch breaks domain save/restore/dump-core.
They should also be fixed-up

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-12-05 10:59:32 -07:00
Ian Campbell 8537fbaead [LINUX] The crash note resource should be nested inside the hypervisor
resource.

This was exposed by 12709:98413fa7826c which corrected the length of
the hypervisor resource.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-12-05 17:01:34 +00:00
awilliam@xenbuild.aw bd4a1b45bf [IA64] paraviatualize /dev/mem to enable X.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-12-04 08:44:57 -07:00
awilliam@xenbuild.aw 9c5c2a1c0f [IA64] import linux/include/asm-ia64/uaccess.h for /dev/mem paravirtualization
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-12-04 08:37:20 -07:00
awilliam@xenbuild.aw 793cb77839 merge with xen-unstable.hg 2006-12-04 08:24:41 -07:00
awilliam@xenbuild.aw d8b39738aa [IA64] Change to new interrupt deliver mechanism.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
2006-12-01 11:40:57 -07:00
kfraser@localhost.localdomain 65ade46c57 [LINUX] dev/mem: Rename Xen's mmap_mem to xen_mmap_mem to
avoid conflict with the definition (which still exists and
is used) in drivers/char/mem.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-12-01 13:44:33 +00:00
Steven Smith 3c78f2e5d7 [LINUX] The removal of the console_use_vt hack was premature: it's still
required if CONFIG_VT is enabled but the domain isn't currently
configured to use the PV framebuffer.  Put it back in, in a slightly
more palatable form.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
2006-12-01 11:52:33 +00:00
Steven Smith a5ae44fcdf This is Anthony Liguori's virtual framebuffer forward ported and
extensively hacked based on feedback from xen-devel.

Its architecture is comparable to the common split device driver
architecture: xenfb and xenkbd modules serve as frontend in domU, and
the user space vncfb or sdlfb process serves as backend in dom0.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2006-12-01 09:48:32 +00:00
awilliam@xenbuild.aw 96403247eb [IA64] Fix sparse tree xenoprof/perfmon/oprofile build dependencies
Compile xenoprof perfmon related hypercall even when
CONFIG_PERFMON, CONFIG_OPROFILE, CONFIG_OPROFILE_MODULE are disabled.
They should be compiled in vmlinux unconditionally because they
might be called by other modules in theory.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-30 15:57:15 -07:00
Ian Campbell fcd9174e64 [LINUX] Fix backward compatibility with hypervisors which do not support kexec.
Also do not rely on side effects in BUG_ON(x) -- use if(x) BUG() instead.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-30 18:21:50 +00:00
Ian Campbell 55b918302f [LINUX] Only initialise kexec in domain0.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
2006-11-30 17:53:59 +00:00
kfraser@localhost.localdomain f665678307 [LINUX] Properly trigger XenbusStateClosed in blkfront
In some situations, like when error happens in block attach for
a guest in dom0, backend send us XenbusStateClosing notification.
However, as frontend were never properly initialized, it fails
to change its own state to XenbusStateClosed, leaving the system
in a dead-end state.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
2006-11-30 17:34:48 +00:00
kfraser@localhost.localdomain 90f0b6ab3a [LINUX] Missing xenoprof.h header file for x86/64.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2006-11-30 17:27:00 +00:00
kfraser@localhost.localdomain 99bbc67f93 linux/x86-64: missing agp.h
This causes data corruption and/or crashes when AGP is actually used.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
2006-11-30 17:21:52 +00:00
Ian Campbell 6fc8621b96 [XEN] Kexec / Kdump: x86_64 specific code
This patch contains the x86_64 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-11-30 12:38:51 +00:00
Ian Campbell 92491dae02 [XEN] Kexec / Kdump: x86_32 specific code
This patch contains the x86_32 implementation of Kexec / Kdump for Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-11-30 12:38:51 +00:00
Ian Campbell a173b7d011 [XEN] Kexec / Kdump: Generic code
This patch implements the generic portion of the Kexec / Kdump port to Xen.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
Signed-Off-By: Simon Horman <horms@verge.net.au>
2006-11-30 12:38:50 +00:00
awilliam@xenbuild.aw ac0269d27c merge with xen-unstable.hg 2006-11-29 11:07:28 -07:00
awilliam@xenbuild.aw 1691a97d3b [IA64] remove undefined debugging line
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
2006-11-29 09:16:46 -07:00
kfraser@localhost.localdomain 74517de104 [LINUX] Avoid triggering the softlockup BUG when offline for too long.
After being offline for a long time, the softlockup  watchdog triggers
a BUG() on our faces. This is expected, as in fact, we spent more than
a fixed 10*HZ amount of time without touching the watchdog.

However, by inspecting the contents of stolen inside timer irq handler,
we can gain awareness of the fact, and do better than that.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
2006-11-29 12:16:59 +00:00
kfraser@localhost.localdomain 536c3bc789 [LINUX] console: Fix comment.
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-29 12:04:49 +00:00