Jan Beulich
256eea1f72
unmodified drivers: use upstream sync_bitops if available
...
The forward ported xenlinux sources in openSuSE 12.2 were switched from
the old synch_bitops to the sync_bitops since kernel version 3.3. Add
compat macros to use either old or new helpers depending on used kernel
source version.
Signed-off-by: Jan Beulich <jbeulich@suse.com >
Signed-off-by: Olaf Hering <olaf@aepfle.de >
2012-03-16 11:35:06 +01:00
Keir Fraser
c7c69094e5
PV-on-HVM: Define atomic_cmpxchg() for old Linux kernels.
...
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com >
2009-05-26 09:52:59 +01:00
Keir Fraser
b41dfb227d
PV-on-HVM: Add a compatibility linux/scatterlist.h for kernels before 2.6.12
...
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com >
2009-03-12 11:25:40 +00:00
Keir Fraser
530cff8bab
pv-on-hvm: fix for Centos 5.2
...
From: Yoshisato YANAGISAWA <yanagisawa.yoshisato@lab.ntt.co.jp >
Signed-off-by: Keir Fraser <keir.fraser@citrix.com >
2008-12-09 13:00:52 +00:00
Keir Fraser
2b795c6e37
PV-on-HVM: Fix build for RHEL/SLES.
...
Signed-off-by: Ben Guthro <bguthro@virtualiron.com >
2007-12-05 10:42:45 +00:00
Keir Fraser
1f0123a08f
PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels.
...
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com >
2007-11-01 09:33:56 +00:00
Keir Fraser
bb59a254af
pv-on-hvm: fixes for unmodified drivers build and modern Linux
...
- The adjustments to README and overrides.mk are generic.
- The removal of explicit linux/config.h inclusion should also not
cause any issues.
- The introduction of irq_handler_t should eliminiate warnings on
2.6.19+ kernels (I didn't check they're there, but since the
request_irq prototype changed, I'm sure there's at least
one. However, as a result changes to the Linux tree are expected to
be required.
- The change setup_xen_features -> xen_setup_features follows the
naming in mainline 2.6.23 but would apparently also require changes
to the Linux tree.
- The changes SA_* -> IRQF_ and pci_module_init ->
pci_register_driver should also not cause issues.
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-10-25 15:54:19 +01:00
kfraser@localhost.localdomain
abfd726ed8
PV-on-HVM: Define DEFINE_RWLOCK() macro for older Linux kernels.
...
Signed-off-by: Ben Guthro <bguthro@virtualron.com >
2007-08-30 16:17:07 +01:00
kfraser@localhost.localdomain
f4f4412534
PV-on-HVML: Remove extra parentheses in netif_tx_lock_bh and netif_tx_unlock_bh
...
macros, as it caused problems when compiling against a SLES9 tree.
Signed-off-by: Ben Guthro <bguthro@virtualiron.com >
2007-08-30 16:13:42 +01:00
kfraser@localhost.localdomain
b28538178f
Fix PV-on-HVM driver build.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-07-12 16:03:41 +01:00
kfraser@localhost.localdomain
e17fb5f345
PV-on-HVM: Fix 64-bit build.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-04-12 08:02:38 +01:00
Keir Fraser
e4daaaabe1
PV-on-HVM: A bit more re-jigging so the build gets further against
...
native Linux 2.6.5. It's not quite there still, but closer.
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-04-06 11:17:08 +01:00
Ian Campbell
93d1b5695a
LINUX: PVonHVM: Fixes to build with kernels back to 2.6.5.
...
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2007-04-05 15:38:09 +01:00
Keir Fraser
ed34f48aa8
Various cleanups and fixes for PV-on-HVM drivers.
...
Signed-off-by: Keir Fraser <keir@xensource.com >
2007-04-04 21:49:04 +01:00
kaf24@localhost.localdomain
0900d4a0e1
Cleanups for unmodified (pv-on-hvm) driver building.
...
- some cleanup to mkbuildtree
- adjustment to the fake __supported_pte_mask definition (removing the
export for x86-64 in native Linux is being discussed, so this shouldn't be
i386 specific)
- remove odd/unused defines (mostly CONFIG_*) in overrides.mk
Signed-off-by: Jan Beulich <jbeulich@novell.com >
2007-01-26 13:34:02 +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
Ian Campbell
b23fab8e20
[LINUX] Import kasprintf patch from upstream.
...
kasprintf has been merged upstream with a slightly different protoype
to the one in Xen. Import this patch and fixup the Xen tree to fit.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2006-11-27 13:50:02 +00:00
Ian Campbell
d8656aaa3e
PV-on-HVM: Fix PV-on-HVM drivers for IA64.
...
Thanks to Kasai Takanori and Doi Tsunehisa for testing.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2006-11-02 11:56:26 +00:00
Ian Campbell
a0b780220a
PV-to-HVM: Add a compatibility define for the end_that_request_last
...
which changed prototype in 2.6.16.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
4a154f7453
PV-on-HVM: Include compatibility kzalloc implementation for kernels
...
before 2.6.14.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
f81a7efad8
PV-to-HVM: Impletement compatibility version of
...
schedule_timeout_interruptible for kernels before 2.6.14
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
e46b787ee3
PV-on-HVM: Implement compatibilty version of wait_for_completion_timeout
...
for kernels before 2.6.11
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
5a246a6332
PV-on-HVM: Include compatability vmalloc_to_pfn for kernels before 2.6.10
...
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
c957115a57
PV-to-HVM: Implement compatibility nonseekable_open as a nop on
...
kernels before 2.6.9
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
6b8b36040d
PV-to-HVM: Add compatibility definitions of various #defines when they
...
are not present in the kernel we are building against.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
da611bef47
PV-on-HVM: Include compatability headers for asm/pgtable-no{pmd,pud}.h
...
for kernels before 2.6.11.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
212cd2b3a0
PV-on-HVM: Add a compatibility linux/mutex.h for kernels before
...
2.6.16. This implements the new mutex type in terms of the old
semaphore type.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
3dd858632a
PV-on-HVM: Add a compatibility linux/io.h for kernels before 2.6.16
...
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00
Ian Campbell
06b12ba822
PV-on-HVM: Add infrastructure for a compatibility shim in order to
...
support PV-on-HVM drivers for older kernel releases.
The compatability code is included in the xen-platform-pci module
since this module underpins all the others.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com >
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com >
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com >
2006-10-25 13:58:30 +01:00