Well, in fact not only the smp test failed, all tests failed. I don't know it is just me or not. But after debugging the kvmctl main.c and libkvm.c code, I found out that it is the invocation to pre_kvm_run() and post_kvm_run() caused the segfault, it is really mysterious. Then I just commented out them, and the tests (including smp and others) aborted at case KVM_EXIT_EXCEPTION, which seems not successful either. This is all what I have done up to now. Thank you for your reply. Shawn On Mon, Sep 14, 2009 at 8:07 PM, Marcelo Tosatti <mtosatti@xxxxxxxxxx> wrote: > On Mon, Sep 14, 2009 at 10:18:32AM +0300, Avi Kivity wrote: >> On 09/14/2009 10:12 AM, shawn du wrote: >>> Thank you for your information. >>> >>> Although those tests will be eliminated, I will try to fix them. I >>> just consider running these tests will be an easier and quicker way >> >> for me to dissect kvm. If there is another way, please let me know. > > Yes, smp is broken (and its not worthwhile to fix the fake apic > support). > >> I recommend moving smptest to use the real APIC, not the fake APIC >> provided by kvmctl. > > +1. > >> It's true that kvmctl is a lot easier to understand than qemu, that's a >> downside of moving the testsuite to qemu. > > -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html