From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhu Yijun Subject: [question kvm-unit-tests] FAIL about apic testcase Date: Tue, 12 Apr 2016 21:34:53 +0800 Message-ID: <570CF97D.6040809@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: , Hangaohuai To: , Paolo Bonzini Return-path: Received: from szxga01-in.huawei.com ([58.251.152.64]:34991 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932939AbcDLNfN (ORCPT ); Tue, 12 Apr 2016 09:35:13 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I run kvm-unit-tests on rhel_7.0, and the apic unittest failed. test.log file showed as follow: qemu-kvm -enable-kvm -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -kernel x86/apic.flat -smp 2 -cpu qemu64,+x2apic,+tsc-deadline enabling apic enabling apic paging enabled cr0 = 80010011 cr3 = 7fff000 cr4 = 20 apic version: 1050014 PASS: apic existence x2apic enabled FAIL: x2apic enabled to invalid state FAIL: x2apic enabled to apic enabled FAIL: disabled to invalid state FAIL: disabled to x2apic enabled FAIL: apic enabled to invalid state PASS: apicbase: relocate apic FAIL: apicbase: reserved physaddr bits FAIL: apicbase: reserved low bits PASS: self ipi PASS: nmi-after-sti PASS: multiple nmi tsc deadline timer not detected SUMMARY: 12 tests, 7 unexpected failures I found that all the tests with "test_for_exception()" failed. After looking at this function, I cannot understand the macro: "#define set_exception_jmpbuf(jmpbuf) \ (setjmp(jmpbuf) ? : (__set_exception_jmpbuf(&(jmpbuf)), 0))" So it it always return 0? and what's mean about the statement "(__set_exception_jmpbuf(&(jmpbuf)), 0)"? Thanks in advance! Zhu Yijun