Am 18.10.2010 15:48, Roedel, Joerg wrote:
> On Mon, Oct 18, 2010 at 09:38:40AM -0400, Jan Kiszka wrote:
>> We also have to call kvm_iommu_map_pages for CONFIG_AMD_IOMMU. So drop
>> the dependency on Intel IOMMU, kvm_iommu_map_pages will be a nop anyway
>> if CONFIG_IOMMU_API is not defined.
>>
>> Signed-off-by: Jan Kiszka <[email protected]>
> 
> Acked-by: Joerg Roedel <[email protected]>
> 
> Is this also a -stable candidate?

I can't seriously judge as I was not able to test its effect on real
hardware.

The patch seems to apply (with mechanical adjustments) down to 2.6.32.
If it is considered for stable, it will also take [1] to avoid build
breakage without CONFIG_IOMMU_API.

Jan

[1] http://thread.gmane.org/gmane.comp.emulators.kvm.devel/60954

> 
>> ---
>>  virt/kvm/kvm_main.c |    2 --
>>  1 files changed, 0 insertions(+), 2 deletions(-)
>>
>> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
>> index 1aeeb7f..ac326de 100644
>> --- a/virt/kvm/kvm_main.c
>> +++ b/virt/kvm/kvm_main.c
>> @@ -705,14 +705,12 @@ skip_lpage:
>>      if (r)
>>              goto out_free;
>>  
>> -#ifdef CONFIG_DMAR
>>      /* map the pages in iommu page table */
>>      if (npages) {
>>              r = kvm_iommu_map_pages(kvm, &new);
>>              if (r)
>>                      goto out_free;
>>      }
>> -#endif
>>  
>>      r = -ENOMEM;
>>      slots = kzalloc(sizeof(struct kvm_memslots), GFP_KERNEL);
>> -- 
>> 1.7.1
>>
> 

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to