]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/swiotlb: Simplify the logic.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 28 Jul 2012 00:10:58 +0000 (20:10 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 4 Dec 2012 17:32:50 +0000 (12:32 -0500)
commit7263be0591b01ca56d567baf9649e590125c74ab
treeb106f9bd41d6dfc29ad0af33eab391f5ed28aac8
parent1a21f53fb8ebc01e953a7c7e6e2705dc7d94128e
xen/swiotlb: Simplify the logic.

Its pretty easy:
 1). We only check to see if we need Xen SWIOTLB for PV guests.
 2). If swiotlb=force or iommu=soft is set, then Xen SWIOTLB will
     be enabled.
 3). If it is an initial domain, then Xen SWIOTLB will be enabled.
 4). Native SWIOTLB must be disabled for PV guests.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 988f0e24bbcbbf550dff016faf8273a94f4eb1af)
arch/x86/xen/pci-swiotlb-xen.c