From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BCB1C2D0CE for ; Tue, 21 Jan 2020 14:50:04 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 66C35207E0 for ; Tue, 21 Jan 2020 14:50:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZJE0lCnM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 66C35207E0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:56008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ituqx-0001r0-8T for qemu-devel@archiver.kernel.org; Tue, 21 Jan 2020 09:50:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39731) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itu8d-0006Ks-Lc for qemu-devel@nongnu.org; Tue, 21 Jan 2020 09:04:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itu8Z-0007Ke-Ra for qemu-devel@nongnu.org; Tue, 21 Jan 2020 09:04:15 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:34516 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1itu8Z-0007Je-Nb for qemu-devel@nongnu.org; Tue, 21 Jan 2020 09:04:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579615451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1yewETrp0bx5dCOhPi4FrNd4A1wPaHg/+rWGjLZ7t5k=; b=ZJE0lCnMQ7FLZ16YDjNXDPKL13sK29oOloQ43fK9dLTiW3OXgk89KwXsNcZgiPYCu5f9ex lGwRV7/i+mO9GooiTJVb/gEHbyxxLQ+5GTE6yON5nBESyQICe2dJbldiPiqD8XvuoaD5SN UCTWdmlVSRa9UyX/knfx1g32xEv7O94= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-198-Q1TTmX2CM7ifNImeokplPw-1; Tue, 21 Jan 2020 09:04:09 -0500 X-MC-Unique: Q1TTmX2CM7ifNImeokplPw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 82ABD8010D6; Tue, 21 Jan 2020 14:04:07 +0000 (UTC) Received: from gondolin (dhcp-192-195.str.redhat.com [10.33.192.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id 945C08BE1E; Tue, 21 Jan 2020 14:04:00 +0000 (UTC) Date: Tue, 21 Jan 2020 15:03:58 +0100 From: Cornelia Huck To: Philippe =?UTF-8?B?TWF0aGlldS1EYXVkw6k=?= Subject: Re: [PATCH v2 09/10] accel: Replace current_machine->accelerator by current_accel() wrapper Message-ID: <20200121150358.63e5095b.cohuck@redhat.com> In-Reply-To: <20200121110349.25842-10-philmd@redhat.com> References: <20200121110349.25842-1-philmd@redhat.com> <20200121110349.25842-10-philmd@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Alistair Francis , Eduardo Habkost , Like Xu , David Hildenbrand , Marcelo Tosatti , qemu-devel@nongnu.org, Markus Armbruster , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org, "open list:Overall KVM CPUs" , Paolo Bonzini , Richard Henderson , David Gibson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, 21 Jan 2020 12:03:48 +0100 Philippe Mathieu-Daud=C3=A9 wrote: > We actually want to access the accelerator, not the machine, so > use the current_accel() wrapper instead. >=20 > Suggested-by: Paolo Bonzini > Reviewed-by: Alistair Francis > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > v2: > - Reworded description > - Remove unused include in arm/kvm64 > --- > accel/kvm/kvm-all.c | 4 ++-- > accel/tcg/tcg-all.c | 2 +- > memory.c | 2 +- > target/arm/kvm64.c | 5 ++--- > target/i386/kvm.c | 2 +- > target/ppc/kvm.c | 2 +- > vl.c | 2 +- > 7 files changed, 9 insertions(+), 10 deletions(-) > diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c > index b5799e62b4..45ede6b6d9 100644 > --- a/target/ppc/kvm.c > +++ b/target/ppc/kvm.c > @@ -258,7 +258,7 @@ static void kvm_get_smmu_info(struct kvm_ppc_smmu_inf= o *info, Error **errp) > =20 > struct ppc_radix_page_info *kvm_get_radix_page_info(void) > { > - KVMState *s =3D KVM_STATE(current_machine->accelerator); > + KVMState *s =3D KVM_STATE(current_accel()); > struct ppc_radix_page_info *radix_page_info; > struct kvm_ppc_rmmu_info rmmu_info; > int i; What about the usage in kvmppc_svm_off()?