Christian Limpach
495989297b
[linux] Delay making the VCPUOP_initialise calls until the cpu is brought up
...
the first time.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
2007-01-29 22:43:51 +00:00
kfraser@localhost.localdomain
a802ad78c3
netfront: Better fix for netfront_tx_slot_available().
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-25 16:58:21 +00:00
kfraser@localhost.localdomain
8658df107c
netfront: Check availability of grant references in start_xmit().
...
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com >
2007-01-25 12:24:43 +00:00
kfraser@localhost.localdomain
d32128e96e
bimodal blkback: Support multiple ring protocols.
...
This is needed for 32-on-64 support. Right now there are three
protocols: native, x86_32 and x86_64. If needed it can be extended.
Interface changes (io/blkif.h)
* Define the x86_32 and x86_64 structs additionally to the native
version.
* Add helper functions to convert them requests to native.
Backend changes:
* Look at the "protocol" name of the frontend and switch ring
handling accordingly. If the protocol node isn't present it
assumes native protocol.
* As the request struct is copied anyway before being processed (for
security reasons) it is converted to native at that point so most
backend code doesn't need to know what the frontend speaks.
* In case of blktap this is completely transparent to userspace, the
kernel/userspace ring is always native no matter what the frontend
speaks.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de >
2007-01-24 10:38:17 +00:00
john.levon@sun.com
95d3856e97
Close save-after-restore race.
...
Make xc_linux_save() wait for the frame_list_list MFN to be updated by the
domain before trying to use it. Make Linux set the top-level MFN /after/
updating the other MFN lists.
Signed-off-by: John Levon <john.levon@sun.com >
2007-01-23 19:06:31 -08:00
kfraser@localhost.localdomain
1ac5e8ece3
linux: Make resend_irq_on_evtchn() non-static for ia64 use.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-23 15:54:12 +00:00
kfraser@localhost.localdomain
7606be28a6
bimodal blkfront: Create a new node "protocol" in xenstore, add the
...
protocol name it speaks there.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de >
2007-01-23 14:48:42 +00:00
kfraser@localhost.localdomain
c82ff605c7
bimodal: pvfb frontend
...
Create a new node "protocol" in xenstore, add the protocol name it
speaks there.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de >
2007-01-23 14:47:26 +00:00
kfraser@localhost.localdomain
50f5003308
linux: Fix enable_irq() crash by removing a BUG_ON() assumption in our
...
event-channel retrigger() function. Also clean up bitmap usages.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-23 13:39:20 +00:00
Ian Campbell
e22738def9
[PV-on-HVM] Make PV drivers on HVM kernels work on older kernels after
...
update to 2.6.18.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2007-01-22 17:10:27 +00:00
kfraser@localhost.localdomain
f272b20670
Add unsuspend hook for resuming devices in the checkpoint parent.
...
Nothing uses it at the moment.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca >
2007-01-19 16:11:31 +00:00
kfraser@localhost.localdomain
931818cacb
Make xen_suspend handle resume.
...
Don't destroy xenstore watches on suspend, and only recreate them when
resuming in a new domain. Likewise, only invoke frontend device resume
code when in a new domain (the resume functions all tear down the
existing function and wait for the backend to negotiate a new one,
which does not happen in the source domain).
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca >
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-19 16:06:09 +00:00
Christian Limpach
c6a0a466fa
[merge] with xen-unstable
...
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
2007-01-19 14:48:57 +00:00
Christian Limpach
1a9914c007
[linux networking] Remove the code to allocate page sized skbs.
...
This is no longer used much since the default is to always copy packets
to guests.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
2007-01-18 18:40:30 +00:00
Christian Limpach
361f8004cb
[merge] with xen-unstable
2007-01-18 15:18:07 +00:00
Christian Limpach
54a1273470
[linux] Update to linux-2.6.18.
...
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
--HG--
rename : linux-2.6-xen-sparse/include/asm-i386/mach-xen/setup_arch_pre.h => linux-2.6-xen-sparse/include/asm-i386/mach-xen/setup_arch.h
rename : patches/linux-2.6.17/blktap-aio-16_03_06.patch => patches/linux-2.6.18/blktap-aio-16_03_06.patch
rename : patches/linux-2.6.17/fix-ide-cd-pio-mode.patch => patches/linux-2.6.18/fix-ide-cd-pio-mode.patch
rename : patches/linux-2.6.17/git-3566561bfadffcb5dbc85d576be80c0dbf2cccc9.patch => patches/linux-2.6.18/git-3566561bfadffcb5dbc85d576be80c0dbf2cccc9.patch
rename : patches/linux-2.6.17/git-4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f.patch => patches/linux-2.6.18/git-4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f.patch
rename : patches/linux-2.6.17/git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch => patches/linux-2.6.18/git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch
rename : patches/linux-2.6.17/i386-mach-io-check-nmi.patch => patches/linux-2.6.18/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.17/ipv6-no-autoconf.patch => patches/linux-2.6.18/ipv6-no-autoconf.patch
rename : patches/linux-2.6.17/linux-2.6.19-rc1-kexec-move_segment_code-i386.patch => patches/linux-2.6.18/linux-2.6.19-rc1-kexec-move_segment_code-i386.patch
rename : patches/linux-2.6.17/linux-2.6.19-rc1-kexec-move_segment_code-x86_64.patch => patches/linux-2.6.18/linux-2.6.19-rc1-kexec-move_segment_code-x86_64.patch
rename : patches/linux-2.6.17/net-csum.patch => patches/linux-2.6.18/net-csum.patch
rename : patches/linux-2.6.17/net-gso-5-rcv-mss.patch => patches/linux-2.6.18/net-gso-5-rcv-mss.patch
rename : patches/linux-2.6.17/net-gso-6-linear-segmentation.patch => patches/linux-2.6.18/net-gso-6-linear-segmentation.patch
rename : patches/linux-2.6.17/pmd-shared.patch => patches/linux-2.6.18/pmd-shared.patch
rename : patches/linux-2.6.17/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch => patches/linux-2.6.18/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch
rename : patches/linux-2.6.17/series => patches/linux-2.6.18/series
rename : patches/linux-2.6.17/x86-elfnote-as-preprocessor-macro.patch => patches/linux-2.6.18/x86-elfnote-as-preprocessor-macro.patch
rename : patches/linux-2.6.17/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.18/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.17/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.18/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.17/xen-hotplug.patch => patches/linux-2.6.18/xen-hotplug.patch
rename : patches/linux-2.6.17/xenoprof-generic.patch => patches/linux-2.6.18/xenoprof-generic.patch
2007-01-17 18:41:22 +00:00
Christian Limpach
1e6fbb9393
[linux x86_64] Disable smp alternatives.
...
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
2007-01-12 15:32:03 +00:00
Christian Limpach
432e7b62cb
[linux] Update to linux-2.6.17.
...
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com >
--HG--
rename : patches/linux-2.6.16.33/blktap-aio-16_03_06.patch => patches/linux-2.6.17/blktap-aio-16_03_06.patch
rename : patches/linux-2.6.16.33/fix-hz-suspend.patch => patches/linux-2.6.17/fix-hz-suspend.patch
rename : patches/linux-2.6.16.33/fix-ide-cd-pio-mode.patch => patches/linux-2.6.17/fix-ide-cd-pio-mode.patch
rename : patches/linux-2.6.16.33/git-2a8a3d5b65e86ec1dfef7d268c64a909eab94af7.patch => patches/linux-2.6.17/git-2a8a3d5b65e86ec1dfef7d268c64a909eab94af7.patch
rename : patches/linux-2.6.16.33/git-2efe55a9cec8418f0e0cde3dc3787a42fddc4411.patch => patches/linux-2.6.17/git-2efe55a9cec8418f0e0cde3dc3787a42fddc4411.patch
rename : patches/linux-2.6.16.33/git-3566561bfadffcb5dbc85d576be80c0dbf2cccc9.patch => patches/linux-2.6.17/git-3566561bfadffcb5dbc85d576be80c0dbf2cccc9.patch
rename : patches/linux-2.6.16.33/git-4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f.patch => patches/linux-2.6.17/git-4bfaaef01a1badb9e8ffb0c0a37cd2379008d21f.patch
rename : patches/linux-2.6.16.33/git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch => patches/linux-2.6.17/git-dbaab49f92ff6ae6255762a948375e4036cbdbd2.patch
rename : patches/linux-2.6.16.33/i386-mach-io-check-nmi.patch => patches/linux-2.6.17/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16.33/ipv6-no-autoconf.patch => patches/linux-2.6.17/ipv6-no-autoconf.patch
rename : patches/linux-2.6.16.33/kasprintf.patch => patches/linux-2.6.17/kasprintf.patch
rename : patches/linux-2.6.16.33/linux-2.6.19-rc1-kexec-move_segment_code-i386.patch => patches/linux-2.6.17/linux-2.6.19-rc1-kexec-move_segment_code-i386.patch
rename : patches/linux-2.6.16.33/linux-2.6.19-rc1-kexec-move_segment_code-x86_64.patch => patches/linux-2.6.17/linux-2.6.19-rc1-kexec-move_segment_code-x86_64.patch
rename : patches/linux-2.6.16.33/net-csum.patch => patches/linux-2.6.17/net-csum.patch
rename : patches/linux-2.6.16.33/net-gso-0-base.patch => patches/linux-2.6.17/net-gso-0-base.patch
rename : patches/linux-2.6.16.33/net-gso-1-check-dodgy.patch => patches/linux-2.6.17/net-gso-1-check-dodgy.patch
rename : patches/linux-2.6.16.33/net-gso-2-checksum-fix.patch => patches/linux-2.6.17/net-gso-2-checksum-fix.patch
rename : patches/linux-2.6.16.33/net-gso-3-fix-errorcheck.patch => patches/linux-2.6.17/net-gso-3-fix-errorcheck.patch
rename : patches/linux-2.6.16.33/net-gso-4-kill-warnon.patch => patches/linux-2.6.17/net-gso-4-kill-warnon.patch
rename : patches/linux-2.6.16.33/net-gso-5-rcv-mss.patch => patches/linux-2.6.17/net-gso-5-rcv-mss.patch
rename : patches/linux-2.6.16.33/net-gso-6-linear-segmentation.patch => patches/linux-2.6.17/net-gso-6-linear-segmentation.patch
rename : patches/linux-2.6.16.33/pmd-shared.patch => patches/linux-2.6.17/pmd-shared.patch
rename : patches/linux-2.6.16.33/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch => patches/linux-2.6.17/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch
rename : patches/linux-2.6.16.33/series => patches/linux-2.6.17/series
rename : patches/linux-2.6.16.33/vsnprintf.patch => patches/linux-2.6.17/vsnprintf.patch
rename : patches/linux-2.6.16.33/x86-elfnote-as-preprocessor-macro.patch => patches/linux-2.6.17/x86-elfnote-as-preprocessor-macro.patch
rename : patches/linux-2.6.16.33/x86-increase-interrupt-vector-range.patch => patches/linux-2.6.17/x86-increase-interrupt-vector-range.patch
rename : patches/linux-2.6.16.33/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.17/x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.16.33/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch => patches/linux-2.6.17/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
rename : patches/linux-2.6.16.33/xen-hotplug.patch => patches/linux-2.6.17/xen-hotplug.patch
rename : patches/linux-2.6.16.33/xenoprof-generic.patch => patches/linux-2.6.17/xenoprof-generic.patch
2007-01-12 14:30:49 +00:00
Jake Wires
409d47638a
[BLKTAP/BLKBACK] name blktap/blkback kernel threads as "domid.virtual_devname"
...
Signed-off-by: Jake Wires <jwires@xensource.com >
2007-01-09 18:56:44 -08:00
Ian Campbell
0257938d11
[LINUX] Clarify comment in xen_machine_kexec_setup_resources().
...
Noticed by Horms.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2007-01-10 09:39:24 +00:00
kfraser@localhost.localdomain
a9e6f2b531
[BALLOON] Ifdef some x86-specific balloon init code.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-05 17:39:34 +00:00
kfraser@localhost.localdomain
30bc7b0ff1
[LINUX] Build blktap as module named xenblktap.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-01-03 13:46:23 +00:00
Ian Campbell
3c4b2d4c00
[PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather.
...
The 'll' length modifier is not available with scanf (and therefore
xenbus_gather) on older kernel versions so use 'L' which is available at
least back to 2.6.5.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2007-01-02 14:19:47 +00:00
kaf24@localhost.localdomain
47fad056d3
[LINUX] Extend the event-channel interfaces to provide helper methods
...
for creating interdomain event channels bound to IRQ handlers.
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-12-30 18:23:27 +00:00
Steven Hand
3dcbf823b3
Revert cset 13181:f087c013cf12 since the event channel is already unbound via
...
blkif_free() -> unbind_from_irqhandler() -> unbind_from_irq()
Signed-off-by: Steven Hand <steven@xensource.com >
2006-12-29 17:46:40 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
kfraser@localhost.localdomain
536c3bc789
[LINUX] console: Fix comment.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-11-29 12:04:49 +00:00
kfraser@localhost.localdomain
2dcb3ad6f8
[LINUX] console: Add option to use /dev/xvc0, major=204, minor=191.
...
The major/minor has now been allocated to us by lanana.org.
This is based on previous patches from:
Jeremy Katz <katzj@redhat.com >
Amos Waterland <apw@us.ibm.com >
Signed-off-by: Keir Fraser <keir@xensource.com >
2006-11-29 11:37:59 +00:00