diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-01-27 11:57:19 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-01-27 21:31:12 +0100 |
commit | 128ca093cc3cf3fc0368fa56b6a98f395090ddb0 (patch) | |
tree | ad495664807c971ea380e8b8c2673d4859940044 /virt | |
parent | 82268083fa78452c1c8be30a82984e470d9678c7 (diff) | |
download | linux-stable-128ca093cc3cf3fc0368fa56b6a98f395090ddb0.tar.gz linux-stable-128ca093cc3cf3fc0368fa56b6a98f395090ddb0.tar.bz2 linux-stable-128ca093cc3cf3fc0368fa56b6a98f395090ddb0.zip |
kvm: iommu: Add cond_resched to legacy device assignment code
When assigning devices to large memory guests (>=128GB guest
memory in the failure case) the functions to create the
IOMMU page-tables for the whole guest might run for a very
long time. On non-preemptible kernels this might cause
Soft-Lockup warnings. Fix these by adding a cond_resched()
to the mapping and unmapping loops.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions