Re: [PATCH] KVM x86: Handle hypercalls for assigned PCI devices

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Amit Shah
Date: Tuesday, April 29, 2008 - 8:58 am

On Tuesday 29 April 2008 20:14:16 Glauber Costa wrote:


The function names are long enough already. Prefixing everything with kvm_ 
could hurt the eye as well.


Yes; it's going to trickle down soon.


It does keep everything nicely in one place though. You're right though. Some 
more attention is needed.


I was lazy and used the return value from here to propagate it down further. 
But this kicked me to modify that.


The error's going to the guest. The guest, as we know, has already done a 
successful DMA allocation. Something went wrong in the hypercall, and we 
don't know why (bad page). Any kind of error here isn't going to be 
intelligible to the guest anyway. It's mostly a host thing if we ever hit 
this.


We can't use atomic mappings for guest pages. They can be swapped out.
--
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, 3:37 am)
[PATCH] KVM PV Guest: Implement paravirtualized DMA, Amit Shah, (Tue Apr 29, 3:37 am)
Re: PV DMA for PCI passthrough devices for KVM, Andi Kleen, (Tue Apr 29, 6:15 am)
Re: [PATCH] KVM x86: Handle hypercalls for assigned PCI de ..., Amit Shah, (Tue Apr 29, 8:58 am)
Re: [PATCH] x86 DMA: Handle devices assigned to the guest ..., Muli Ben-Yehuda, (Tue Apr 29, 11:29 pm)