* [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR
@ 2008-09-17 16:44 Mike Day
2008-09-18 14:07 ` [PATCH] [KVM-userspace] remove compatibility code related toCONFIG_DMAR Han, Weidong
2008-09-23 9:25 ` [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR Avi Kivity
0 siblings, 2 replies; 5+ messages in thread
From: Mike Day @ 2008-09-17 16:44 UTC (permalink / raw)
To: kvm, Avi Kivity
Compatibility code for intel_iommu no longer needed when
dependency on CONFIG_DMAR removed from kvm kernel build.
Signed-off-by: Mike D. Day <ncmike@ncultra.org>
---
external-module-compat.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/kernel/external-module-compat.c b/kernel/external-module-compat.c
index 4b9a9f2..71429c7 100644
--- a/kernel/external-module-compat.c
+++ b/kernel/external-module-compat.c
@@ -265,14 +265,3 @@ struct pci_dev *pci_get_bus_and_slot(unsigned int bus, unsigned int devfn)
}
#endif
-
-#include <linux/intel-iommu.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
-
-int intel_iommu_found()
-{
- return 0;
-}
-
-#endif
--
Mike Day
http://www.ncultra.org
AIM: ncmikeday | Yahoo IM: ultra.runner
PGP key: http://www.ncultra.org/ncmike/pubkey.asc
^ permalink raw reply related [flat|nested] 5+ messages in thread* RE: [PATCH] [KVM-userspace] remove compatibility code related toCONFIG_DMAR
2008-09-17 16:44 [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR Mike Day
@ 2008-09-18 14:07 ` Han, Weidong
2008-09-18 14:44 ` Mike Day
2008-09-23 9:25 ` [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR Avi Kivity
1 sibling, 1 reply; 5+ messages in thread
From: Han, Weidong @ 2008-09-18 14:07 UTC (permalink / raw)
To: ncmike, kvm, Avi Kivity
This compatibility code for intel_iommu makes VT-d cannot work in
current code (version < 2.6.28), due to intel_iommu_found() returns 0.
Why add this limitation?
Randy (Weidong)
Mike Day wrote:
> Compatibility code for intel_iommu no longer needed when
> dependency on CONFIG_DMAR removed from kvm kernel build.
>
> Signed-off-by: Mike D. Day <ncmike@ncultra.org>
> ---
> external-module-compat.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/kernel/external-module-compat.c
> b/kernel/external-module-compat.c
> index 4b9a9f2..71429c7 100644
> --- a/kernel/external-module-compat.c
> +++ b/kernel/external-module-compat.c
> @@ -265,14 +265,3 @@ struct pci_dev *pci_get_bus_and_slot(unsigned
> int bus, unsigned int devfn) }
>
> #endif
> -
> -#include <linux/intel-iommu.h>
> -
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
> -
> -int intel_iommu_found()
> -{
> - return 0;
> -}
> -
> -#endif
>
> --
> Mike Day
> http://www.ncultra.org
> AIM: ncmikeday | Yahoo IM: ultra.runner
> PGP key: http://www.ncultra.org/ncmike/pubkey.asc
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: remove compatibility code related toCONFIG_DMAR
2008-09-18 14:07 ` [PATCH] [KVM-userspace] remove compatibility code related toCONFIG_DMAR Han, Weidong
@ 2008-09-18 14:44 ` Mike Day
2008-09-19 1:34 ` Han, Weidong
0 siblings, 1 reply; 5+ messages in thread
From: Mike Day @ 2008-09-18 14:44 UTC (permalink / raw)
To: Han, Weidong; +Cc: kvm, Avi Kivity
On 18/09/08 22:07 +0800, Han, Weidong wrote:
The previous patch I sent out (for the kvm kernel tree) changes
intel-iommu.h so this compatibility code is no longer needed.
Mike
> This compatibility code for intel_iommu makes VT-d cannot work in
> current code (version < 2.6.28), due to intel_iommu_found() returns 0.
> Why add this limitation?
>
> Randy (Weidong)
>
> Mike Day wrote:
> > Compatibility code for intel_iommu no longer needed when
> > dependency on CONFIG_DMAR removed from kvm kernel build.
> >
> > Signed-off-by: Mike D. Day <ncmike@ncultra.org>
> > ---
> > external-module-compat.c | 11 -----------
> > 1 file changed, 11 deletions(-)
> >
> > diff --git a/kernel/external-module-compat.c
> > b/kernel/external-module-compat.c
> > index 4b9a9f2..71429c7 100644
> > --- a/kernel/external-module-compat.c
> > +++ b/kernel/external-module-compat.c
> > @@ -265,14 +265,3 @@ struct pci_dev *pci_get_bus_and_slot(unsigned
> > int bus, unsigned int devfn) }
> >
> > #endif
> > -
> > -#include <linux/intel-iommu.h>
> > -
> > -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
> > -
> > -int intel_iommu_found()
> > -{
> > - return 0;
> > -}
> > -
> > -#endif
> >
> > --
> > Mike Day
> > http://www.ncultra.org
> > AIM: ncmikeday | Yahoo IM: ultra.runner
> > PGP key: http://www.ncultra.org/ncmike/pubkey.asc
--
Mike Day
http://www.ncultra.org
AIM: ncmikeday | Yahoo IM: ultra.runner
PGP key: http://www.ncultra.org/ncmike/pubkey.asc
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: remove compatibility code related toCONFIG_DMAR
2008-09-18 14:44 ` Mike Day
@ 2008-09-19 1:34 ` Han, Weidong
0 siblings, 0 replies; 5+ messages in thread
From: Han, Weidong @ 2008-09-19 1:34 UTC (permalink / raw)
To: ncmike; +Cc: kvm, Avi Kivity
Mike,
I saw your patch. It's good.
Randy (Weidong)
Mike Day wrote:
> On 18/09/08 22:07 +0800, Han, Weidong wrote:
> The previous patch I sent out (for the kvm kernel tree) changes
> intel-iommu.h so this compatibility code is no longer needed.
>
> Mike
>
>> This compatibility code for intel_iommu makes VT-d cannot work in
>> current code (version < 2.6.28), due to intel_iommu_found() returns
>> 0. Why add this limitation?
>>
>> Randy (Weidong)
>>
>> Mike Day wrote:
>>> Compatibility code for intel_iommu no longer needed when
>>> dependency on CONFIG_DMAR removed from kvm kernel build.
>>>
>>> Signed-off-by: Mike D. Day <ncmike@ncultra.org>
>>> ---
>>> external-module-compat.c | 11 -----------
>>> 1 file changed, 11 deletions(-)
>>>
>>> diff --git a/kernel/external-module-compat.c
>>> b/kernel/external-module-compat.c
>>> index 4b9a9f2..71429c7 100644
>>> --- a/kernel/external-module-compat.c
>>> +++ b/kernel/external-module-compat.c
>>> @@ -265,14 +265,3 @@ struct pci_dev *pci_get_bus_and_slot(unsigned
>>> int bus, unsigned int devfn) }
>>>
>>> #endif
>>> -
>>> -#include <linux/intel-iommu.h>
>>> -
>>> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
>>> -
>>> -int intel_iommu_found()
>>> -{
>>> - return 0;
>>> -}
>>> -
>>> -#endif
>>>
>>> --
>>> Mike Day
>>> http://www.ncultra.org
>>> AIM: ncmikeday | Yahoo IM: ultra.runner
>>> PGP key: http://www.ncultra.org/ncmike/pubkey.asc
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR
2008-09-17 16:44 [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR Mike Day
2008-09-18 14:07 ` [PATCH] [KVM-userspace] remove compatibility code related toCONFIG_DMAR Han, Weidong
@ 2008-09-23 9:25 ` Avi Kivity
1 sibling, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2008-09-23 9:25 UTC (permalink / raw)
To: ncmike; +Cc: kvm
Mike Day wrote:
> Compatibility code for intel_iommu no longer needed when
> dependency on CONFIG_DMAR removed from kvm kernel build.
>
> Signed-off-by: Mike D. Day <ncmike@ncultra.org>
> ---
> external-module-compat.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/kernel/external-module-compat.c b/kernel/external-module-compat.c
> index 4b9a9f2..71429c7 100644
> --- a/kernel/external-module-compat.c
> +++ b/kernel/external-module-compat.c
> @@ -265,14 +265,3 @@ struct pci_dev *pci_get_bus_and_slot(unsigned int bus, unsigned int devfn)
> }
>
> #endif
> -
> -#include <linux/intel-iommu.h>
> -
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
> -
> -int intel_iommu_found()
> -{
> - return 0;
> -}
> -
> -#endif
>
>
Older kernels won't have intel_iommu_found() even with your other patch,
so this code is still needed.
We can't compile the external module on a 2.6.27 tree that has the iommu
patched in; we can probably make this work by renaming
intel_iommu_found() to kvm_intel_iommu_found() in hack-module.awk.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-23 9:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 16:44 [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR Mike Day
2008-09-18 14:07 ` [PATCH] [KVM-userspace] remove compatibility code related toCONFIG_DMAR Han, Weidong
2008-09-18 14:44 ` Mike Day
2008-09-19 1:34 ` Han, Weidong
2008-09-23 9:25 ` [PATCH] [KVM-userspace] remove compatibility code related to CONFIG_DMAR Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox