Re: [PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-05-26 Thread Alexey Kardashevskiy
On 05/25/2013 12:45 PM, David Gibson wrote: > On Wed, May 22, 2013 at 04:06:57PM -0500, Scott Wood wrote: >> On 05/20/2013 10:06:46 PM, Alexey Kardashevskiy wrote: >>> diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c >>> index 8465c2a..da6bf61 100644 >>> --- a/arch/powerpc/kvm/p

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-26 Thread Xiao Guangrong
On 05/25/2013 04:34 AM, Marcelo Tosatti wrote: > On Thu, May 23, 2013 at 03:55:53AM +0800, Xiao Guangrong wrote: >> Zap at lease 10 pages before releasing mmu-lock to reduce the overload >> caused by requiring lock >> >> After the patch, kvm_zap_obsolete_pages can forward progress anyway, >> so upd

Re: [PATCH v7 03/11] KVM: MMU: fast invalidate all pages

2013-05-26 Thread Xiao Guangrong
Hi Marcelo, On 05/25/2013 04:23 AM, Marcelo Tosatti wrote: >> +static void kvm_zap_obsolete_pages(struct kvm *kvm) >> +{ >> +struct kvm_mmu_page *sp, *node; >> +LIST_HEAD(invalid_list); >> + >> +restart: >> +list_for_each_entry_safe_reverse(sp, node, >> + &kvm->arch.active_mm

Re: [PATCH] kvm tools: add status notification hook to virtio-mmio

2013-05-26 Thread Asias He
On Sun, May 26, 2013 at 11:33 PM, Sasha Levin wrote: > On 05/21/2013 08:29 AM, Marc Zyngier wrote: >> Patch e03b449cbddf (kvm tools: add status notification hook for >> virtio) converted virtio-net to use a new notification mechanism, >> but unfortunately left virtio-mmio behind. >> >> The direct

Re: [PATCH] kvm tools: add status notification hook to virtio-mmio

2013-05-26 Thread Sasha Levin
On 05/21/2013 08:29 AM, Marc Zyngier wrote: > Patch e03b449cbddf (kvm tools: add status notification hook for > virtio) converted virtio-net to use a new notification mechanism, > but unfortunately left virtio-mmio behind. > > The direct consequence is that both arm and arm64 guests are left > wit

[PATCH v3-resend 00/11] uaccess: better might_sleep/might_fault behavior

2013-05-26 Thread Michael S. Tsirkin
I seem to have mis-sent v3. Trying again with same patches after fixing the message id for the cover letter. I hope the duplicates that are thus created don't inconvenience people too much. If they do, I apologize. I have pared down the Cc list to reduce the noise. sched maintainers are Cc'd on al

[PATCH RFC] KVM: Fix race in apic->pending_events processing

2013-05-26 Thread Gleb Natapov
apic->pending_events processing has a race that may cause INIT and SIPI processing to be reordered: vpu0:vcpu1: set INIT test_and_clear_bit(KVM_APIC_INIT) process INIT set INIT set SIPI

Re: [PATCH v7 03/11] KVM: MMU: fast invalidate all pages

2013-05-26 Thread Gleb Natapov
On Fri, May 24, 2013 at 05:23:07PM -0300, Marcelo Tosatti wrote: > Hi Xiao, > > On Thu, May 23, 2013 at 03:55:52AM +0800, Xiao Guangrong wrote: > > The current kvm_mmu_zap_all is really slow - it is holding mmu-lock to > > walk and zap all shadow pages one by one, also it need to zap all guest > >