Hi Alex, The new patch works well. Regards, Guanhua > -----Original Message----- > From: Alexander Graf [mailto:agraf@xxxxxxx] > Sent: Friday, February 01, 2013 4:15 PM > To: Gao Guanhua-B22826 > Cc: kvm-ppc@xxxxxxxxxxxxxxx > Subject: Re: Query about SPE operation fault in e500v2 KVM. thanks. > > On 01.02.2013, at 07:09, Gao Guanhua-B22826 wrote: > > > Hi Alex, > > > > The guest will not be hung after applying the patch, but the test > result is still wrong. > > > > root@model:/media/ram# ./spe_align_e500v2 high in 0x1 out 0xaaaaaaaa > > low in 0x1 out 0xbbbbbbbb spe test failed! > > Segmentation fault > > > > Then we made some more modifications, the test result is right finally. > > > > In arch/powerpc/kvm/booke.c kvmppc_booke_irqprio_deliver: > > case BOOKE_IRQPRIO_ALIGNMENT: > > update_dear = true; > > allowed = 1; > > msr_mask = MSR_CE | MSR_ME | MSR_DE; > > int_class = INT_CLASS_NONCRIT; > > break; > > In arch/powerpc/kvm/booke_interrupts.S > > #define NEED_DEAR_MASK ((1<<BOOKE_INTERRUPT_DATA_STORAGE) | \ > > (1<<BOOKE_INTERRUPT_DTLB_MISS) | \ > > (1<<BOOKE_INTERRUPT_ALIGNMENT)) > > > > Test result: > > root@model:/media/ram# ./spe_align_e500v2 high in 0x64 out 0x64 low in > > 0x64 out 0x64 > > Thanks a lot for testing and fixing this one :). I'm glad it works for > you. I've written up a patch that does this slightly differently and also > takes EPR into account. Could you please check whether that one works as > well? > > > Thanks, > > Alex > -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html