Re: [PATCH] x86 DMA: Handle devices assigned to the guest by the host

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Amit Shah <amit.shah@...>
Cc: <kvm-devel@...>, <chrisw@...>, <allen.m.kay@...>, <linux-kernel@...>, <gcosta@...>, <avi@...>, <virtualization@...>, <BENAMI@...>
Date: Tuesday, April 29, 2008 - 9:14 am

Amit Shah <amit.shah@qumranet.com> writes:

First double unlikely in a condition is useless. Just drop them.

And then ->is_xyz() in a generic vops interface is about as ugly
and non generic as you can get. dma_alloc_coherent is not performance
critical, so you should rather change the interface that ->alloc_coherent
is always called and the other handlers handle the !mmu case correctly.
In fact they need that already I guess (e.g. on DMAR there is not really
a nommu case) 

-Andi

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PV DMA for PCI passthrough devices for KVM, Amit Shah, (Tue Apr 29, 6:37 am)
Re: PV DMA for PCI passthrough devices for KVM, Andi Kleen, (Tue Apr 29, 9:15 am)
Re: [PATCH] x86 DMA: Handle devices assigned to the guest by..., Andi Kleen, (Tue Apr 29, 9:14 am)
[PATCH] KVM PV Guest: Implement paravirtualized DMA, Amit Shah, (Tue Apr 29, 6:37 am)