From patchwork Tue Oct 25 09:00:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 9394155 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 17FCD60231 for ; Tue, 25 Oct 2016 09:00:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04CD628A8D for ; Tue, 25 Oct 2016 09:00:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB15129499; Tue, 25 Oct 2016 09:00:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9228E28A8D for ; Tue, 25 Oct 2016 09:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758624AbcJYJAn (ORCPT ); Tue, 25 Oct 2016 05:00:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60608 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754577AbcJYJAl (ORCPT ); Tue, 25 Oct 2016 05:00:41 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 02612C0467CF for ; Tue, 25 Oct 2016 09:00:41 +0000 (UTC) Received: from pxdev.xzpeter.org (vpn1-4-156.pek2.redhat.com [10.72.4.156]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9P90QeI025038; Tue, 25 Oct 2016 05:00:37 -0400 From: Peter Xu To: kvm@vger.kernel.org Cc: pbonzini@redhat.com, drjones@redhat.com, rkrcmar@redhat.com, peterx@redhat.com Subject: [kvm-unit-tests PATCH 3/3] tests: don't call setup_idt() if with smp_init() Date: Tue, 25 Oct 2016 17:00:30 +0800 Message-Id: <1477386030-13955-4-git-send-email-peterx@redhat.com> In-Reply-To: <1477386030-13955-1-git-send-email-peterx@redhat.com> References: <1477386030-13955-1-git-send-email-peterx@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 25 Oct 2016 09:00:41 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP smp_init() will setup idt as default. No need to call it twice. Signed-off-by: Peter Xu --- x86/apic.c | 1 - x86/hyperv_stimer.c | 1 - x86/hyperv_synic.c | 1 - x86/ioapic.c | 1 - x86/tscdeadline_latency.c | 1 - 5 files changed, 5 deletions(-) diff --git a/x86/apic.c b/x86/apic.c index fefb584..eff9a11 100644 --- a/x86/apic.c +++ b/x86/apic.c @@ -393,7 +393,6 @@ int main() { setup_vm(); smp_init(); - setup_idt(); test_lapic_existence(); diff --git a/x86/hyperv_stimer.c b/x86/hyperv_stimer.c index 6382938..5292523 100644 --- a/x86/hyperv_stimer.c +++ b/x86/hyperv_stimer.c @@ -330,7 +330,6 @@ static void stimer_test_all(void) setup_vm(); smp_init(); - setup_idt(); enable_apic(); handle_irq(SINT1_VEC, stimer_isr); diff --git a/x86/hyperv_synic.c b/x86/hyperv_synic.c index 3f98c42..74bbd58 100644 --- a/x86/hyperv_synic.c +++ b/x86/hyperv_synic.c @@ -154,7 +154,6 @@ int main(int ac, char **av) setup_vm(); smp_init(); - setup_idt(); enable_apic(); synic_prepare_sint_vecs(); diff --git a/x86/ioapic.c b/x86/ioapic.c index a554e43..314c9bb 100644 --- a/x86/ioapic.c +++ b/x86/ioapic.c @@ -398,7 +398,6 @@ int main(void) { setup_vm(); smp_init(); - setup_idt(); mask_pic_interrupts(); diff --git a/x86/tscdeadline_latency.c b/x86/tscdeadline_latency.c index 0592802..0617a1b 100644 --- a/x86/tscdeadline_latency.c +++ b/x86/tscdeadline_latency.c @@ -106,7 +106,6 @@ int main(int argc, char **argv) setup_vm(); smp_init(); - setup_idt(); test_lapic_existence();