Message ID | 20180619014319.28272-15-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 2963F601D7 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 02:08:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14E3028D55 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 02:08:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0976828D60; Tue, 19 Jun 2018 02:08:44 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 98D8C28D55 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 19 Jun 2018 02:08:43 +0000 (UTC) Received: from localhost ([::1]:38508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fV64Y-0002CG-3s for patchwork-qemu-devel@patchwork.kernel.org; Mon, 18 Jun 2018 22:08:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5hB-0000iS-Hq for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:44:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5hA-0007xg-J8 for qemu-devel@nongnu.org; Mon, 18 Jun 2018 21:44:33 -0400 Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]:39684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fV5hA-0007x3-Dt; Mon, 18 Jun 2018 21:44:32 -0400 Received: by mail-oi0-x241.google.com with SMTP id t22-v6so16699647oih.6; Mon, 18 Jun 2018 18:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XBIIn2zPumrey8jrcEZBqbza6n+jON531yb8z6m6xwk=; b=Zx9UIs0S2CmTKN5q6il6+CueIFlIZCJN6N1srZ0uBgjgIGrJ9Bs1nsB+8/0IAgqu9C lTbVKcLJJ/FliDyiQhwbGaAg/YziqeWl2Tiywe365ldvDe6Rh7eBD0dVdXWXEwIb3QUB 3KChPd8AgMMnDgNVc8OEFEzhTgAVws8ybdgPP4XcvlH96j47hlyp94GQqjSkrpR/ClBV xuGXEhYNpPizFeyTjIHiGYVDKVIUi4oqboeWaduNVoG3zsIN2ZVOyeuhLnt6vI9ItF2U afHJxAWg/1bwmIf9HOQXuLf6bMQNfwxWItWRW6SSOfA79sUTl0/8tJ0P+ZvmEAqIUtWB BWIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=XBIIn2zPumrey8jrcEZBqbza6n+jON531yb8z6m6xwk=; b=muudwXP46Lf9+xAyW2cWGSGgmdZlEQIMXCBITjzDplEPyxTW9hVCUdLTVY8CXeZDfy gINC7KRhWlLU4icXNV/nGwZ2lGEZPo3uBC2QBBVpkCCbKajZFOAfBK3x/KW12HFqo+3M aJEB2CHZlYQESlIpVMnDWk6vrJXK1G2rmmu2EYyMZ2J5DY7I4uuYp5xRynypH289xWr8 a9nQ5+mik4GRuzB1uRQoIVFfj7q43udiDKzpHNMBc2lQWEAdWMxGfFk5NqqARbGS1ULv AVyrNLePX/iCUbUYqyOBj1PH2AqTwnP0rqNxolQJArJh3eGzeLMRUhTtv1d5uRONEHX4 MWGw== X-Gm-Message-State: APt69E3MG7aW4rEGvOhwUfI8spA+amSKRKWOzRPMmbVyJT4cCBqRtx4c HjTbK/+DBfowjEBRhEfO/KJYTyIC X-Google-Smtp-Source: ADUXVKISn1fhOr11ZuZQGHYW/FhsUwkiHRNHiitrAH1mXvrxQwn0JOn5YyCSAURHBr6Sd58Ym3LfkA== X-Received: by 2002:aca:3382:: with SMTP id z124-v6mr8788701oiz.49.1529372671268; Mon, 18 Jun 2018 18:44:31 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id d38-v6sm11477836otc.44.2018.06.18.18.44.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 18:44:30 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 18 Jun 2018 20:41:40 -0500 Message-Id: <20180619014319.28272-15-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> References: <20180619014319.28272-1-mdroth@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::241 Subject: [Qemu-devel] [PATCH 014/113] spapr: fix missing CPU core nodes in DT when running with TCG X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: David Gibson <david@gibson.dropbear.id.au>, qemu-stable@nongnu.org, Greg Kurz <groug@kaod.org> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index a36494b87b..d53123c127 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3655,13 +3655,7 @@ static void spapr_pic_print_info(InterruptStatsProvider *obj, int spapr_get_vcpu_id(PowerPCCPU *cpu) { - CPUState *cs = CPU(cpu); - - if (kvm_enabled()) { - return kvm_arch_vcpu_id(cs); - } else { - return cs->cpu_index; - } + return cpu->vcpu_id; } void spapr_set_vcpu_id(PowerPCCPU *cpu, int cpu_index, Error **errp)