Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Xiao Guangrong
On Jul 18, 2013, at 3:31 AM, Gleb Natapov wrote: > On Thu, Jul 18, 2013 at 03:07:11AM +0800, Xiao Guangrong wrote: >> Ouch! >> >> The guest is hang when boot from ubuntu iso, i bisected the code and found >> it is caused by: >> >> cad55f1aed000db46dfd1b5706707f33624d8604 is the first bad comm

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Markus Trippelsdorf
On 2013.07.18 at 03:27 +0800, Xiao Guangrong wrote: > > Could you please try this: > > index 460b9c6..16d1578 100644 > --- a/arch/x86/kvm/mmu.c > +++ b/arch/x86/kvm/mmu.c > @@ -2952,6 +2952,9 @@ static bool page_fault_can_be_fast(u32 error_code) > !(error_code & PFERR_WRITE_MASK)) >

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Gleb Natapov
On Thu, Jul 18, 2013 at 03:07:11AM +0800, Xiao Guangrong wrote: > Ouch! > > The guest is hang when boot from ubuntu iso, i bisected the code and found it > is caused by: > > cad55f1aed000db46dfd1b5706707f33624d8604 is the first bad commit > commit cad55f1aed000db46dfd1b5706707f33624d8604 > Autho

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Gleb Natapov
On Wed, Jul 17, 2013 at 09:00:29PM +0200, Markus Trippelsdorf wrote: > > > 10346403 qemu-system-x86-1403 [001] 1451.422260: check_mmio_spte: > > > spte fee00e3f kvm_gen 7ffc8 spte-gen 7ffc7 valid 0 > > > ... Can you trace only this event and record stack information: trace-cmd re

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Xiao Guangrong
Hi, Could you please try this: index 460b9c6..16d1578 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2952,6 +2952,9 @@ static bool page_fault_can_be_fast(u32 error_code) !(error_code & PFERR_WRITE_MASK)) return false; + if (error_code & PFERR_RS

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Xiao Guangrong
Ouch! The guest is hang when boot from ubuntu iso, i bisected the code and found it is caused by: cad55f1aed000db46dfd1b5706707f33624d8604 is the first bad commit commit cad55f1aed000db46dfd1b5706707f33624d8604 Author: Cornelia Huck Date: Wed Jul 3 16:30:53 2013 +0200 KVM: kvm-io: suppor

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Gleb Natapov
On Wed, Jul 17, 2013 at 08:42:26PM +0200, Markus Trippelsdorf wrote: > On 2013.07.18 at 01:25 +0800, Xiao Guangrong wrote: > > Hi Markus, > > > > Thanks for your report! I am downloading the ubuntu iso and will try to > > reproducible it. > > > > Could you please enable these tracepoints: > > kv

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Markus Trippelsdorf
On 2013.07.18 at 01:25 +0800, Xiao Guangrong wrote: > Hi Markus, > > Thanks for your report! I am downloading the ubuntu iso and will try to > reproducible it. > > Could you please enable these tracepoints: > kvmmmu/check_mmio_spte > kvmmmu/handle_mmio_page_fault > kvmmmu/kvm_mmu_invalidate_zap_

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Markus Trippelsdorf
On 2013.07.18 at 01:25 +0800, Xiao Guangrong wrote: > Hi Markus, > > Thanks for your report! I am downloading the ubuntu iso and will try to > reproducible it. Please note that the exact guest doesn't matter. I first noticed the hang when I tried to install Fedora 19 today. > Could you please e

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Xiao Guangrong
Hi Markus, Thanks for your report! I am downloading the ubuntu iso and will try to reproducible it. Could you please enable these tracepoints: kvmmmu/check_mmio_spte kvmmmu/handle_mmio_page_fault kvmmmu/kvm_mmu_invalidate_zap_all_pages kvmmmu/mark_mmio_spte kvm/kvm_mmio kvm/vcpu_match_mmio and

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Markus Trippelsdorf
On 2013.07.17 at 19:42 +0300, Gleb Natapov wrote: > On Wed, Jul 17, 2013 at 06:32:15PM +0200, Markus Trippelsdorf wrote: > > The following commit: > > commit f8f559422b6c6a05469dfde614b67789b6142cb5 > > Author: Xiao Guangrong > > Date: Fri Jun 7 16:51:26 2013 +0800 > > > > KVM: MMU: fast

Re: commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Gleb Natapov
On Wed, Jul 17, 2013 at 06:32:15PM +0200, Markus Trippelsdorf wrote: > The following commit: > commit f8f559422b6c6a05469dfde614b67789b6142cb5 > Author: Xiao Guangrong > Date: Fri Jun 7 16:51:26 2013 +0800 > > KVM: MMU: fast invalidate all mmio sptes > > causes my kvm qemu qcow2 images

commit f8f559422b (KVM: MMU: fast invalidate all mmio sptes) causes hang

2013-07-17 Thread Markus Trippelsdorf
The following commit: commit f8f559422b6c6a05469dfde614b67789b6142cb5 Author: Xiao Guangrong Date: Fri Jun 7 16:51:26 2013 +0800 KVM: MMU: fast invalidate all mmio sptes causes my kvm qemu qcow2 images to hang when they switch from the boot console to the desktop. For example: qemu-sys