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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BD98C433F5 for ; Sat, 6 Nov 2021 15:56:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 633B86108C for ; Sat, 6 Nov 2021 15:56:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232416AbhKFP7Q convert rfc822-to-8bit (ORCPT ); Sat, 6 Nov 2021 11:59:16 -0400 Received: from mail-ot1-f48.google.com ([209.85.210.48]:34743 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231435AbhKFP7P (ORCPT ); Sat, 6 Nov 2021 11:59:15 -0400 Received: by mail-ot1-f48.google.com with SMTP id s7-20020a056830148700b0055ad72acb7eso16895568otq.1; Sat, 06 Nov 2021 08:56:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eBDSUIjOttiaXGIBqHqfJQJUcKgBFvtaHFb5EhflaV4=; b=b1txsNtE1JejwznR1IbZ4kkCbvfvlKIfgfptuuOkWmUw9ebT8Q2lPtaTwqflAdH2/d tJv4fpwYb/b9RIEvy1ZN6rB23DhSBR1EZ+ThFVKSTV7gM6XzXQZNGw71vZXHXUa75oR0 PmhmSqISBD06IDkNnLjPl4685jKCuEiRZdlblYY4B8ptLiFioR4rsvumnPivuuFjZwFj +WkiXku1jiEaykWv6BB/Y43gj4x/YnpmLPaYZk0fNcMz882ADq7f/4bq93Gw55kPX6f2 HVOn0YIEHPSSmwCymdEowOssm8yg4jf84AVW/gzuUiOdu63QcFSGb/n/mv4MsUn5L3T9 pZbg== X-Gm-Message-State: AOAM531pJY+MFHm18LkEsfIjW85nUVxAGpLzt49CxFAbh/9waSRlvobX jOXKsjLtXAaE0h8Ek+fgRk56i9Ab6mlvAET0Mws= X-Google-Smtp-Source: ABdhPJxwhCJyC+uhck/vVYoIRwMhWus9uJyoYA8q1C4DG6hFBkzj6XG5LHI4onqLHXxXLvHpBvFJjhBzstBp2T8d+3A= X-Received: by 2002:a9d:4e97:: with SMTP id v23mr20053935otk.190.1636214193915; Sat, 06 Nov 2021 08:56:33 -0700 (PDT) MIME-Version: 1.0 References: <20211105192101.3862492-1-maz@kernel.org> <20211105192101.3862492-3-maz@kernel.org> In-Reply-To: <20211105192101.3862492-3-maz@kernel.org> From: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Date: Sat, 6 Nov 2021 16:56:22 +0100 Message-ID: Subject: Re: [PATCH 2/5] KVM: mips: Use kvm_get_vcpu() instead of open-coded access To: Marc Zyngier Cc: kvm , "open list:BROADCOM NVRAM DRIVER" , kvmarm@lists.cs.columbia.edu, linuxppc-dev@lists.ozlabs.org, Huacai Chen , Aleksandar Markovic , Anup Patel , Atish Patra , Christian Borntraeger , Janosch Frank , David Hildenbrand , Claudio Imbrenda , Paolo Bonzini , Juergen Gross , Nicholas Piggin , Sean Christopherson , Paul Mackerras , Michael Ellerman , James Morse , Suzuki K Poulose , Alexandru Elisei , kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On Fri, Nov 5, 2021 at 9:14 PM Marc Zyngier wrote: > > As we are about to change the way vcpus are allocated, mandate > the use of kvm_get_vcpu() instead of open-coding the access. > > Signed-off-by: Marc Zyngier > --- > arch/mips/kvm/loongson_ipi.c | 4 ++-- > arch/mips/kvm/mips.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20A0AC433EF for ; Sat, 6 Nov 2021 15:57:09 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 4869160EDF for ; Sat, 6 Nov 2021 15:57:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4869160EDF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HmhpB10CKz3bNy for ; Sun, 7 Nov 2021 02:57:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.210.52; helo=mail-ot1-f52.google.com; envelope-from=philippe.mathieu.daude@gmail.com; receiver=) Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Hmhnj2Nqqz2xsH for ; Sun, 7 Nov 2021 02:56:39 +1100 (AEDT) Received: by mail-ot1-f52.google.com with SMTP id g91-20020a9d12e4000000b0055ae68cfc3dso15200284otg.9 for ; Sat, 06 Nov 2021 08:56:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eBDSUIjOttiaXGIBqHqfJQJUcKgBFvtaHFb5EhflaV4=; b=VWdqzNt8eAKKMJYMQE5PGSoDKjENjxL9ll/hw5uMCB7vbFDrPn+cxytT035jbh4Ml/ nlioU4yiUOC+XHSjpKXOot1dZoVtV+Y3JyO2uLnX34qroNAuC3AwHqUyQXNswWSD3vpt GcS9N8hyYiq6boqWAX8HoXLJfGYpJurm0fcKaJxxUBgluBZUqOwGX5nS9lPURcmh00yA UzEuYC0B494uEdc3PsZfT/LJawDyzljgQSrBCDAHGxaTw48ILrLZe4LNetvOtoUmT9kz zIzQPJcbkh9Nlr+dvYCxOhKjBuFsNjbVnHo+d/zjn7zruUAL1WBvClqWWUB78+KVXa6v w9vw== X-Gm-Message-State: AOAM53060J/zsVZ/eEmHfebse42ckkVy+XrZR82MeDyDTe1MMLPMjz5G 0kGArfj+WiPQN279HlZSy4SD+pGf3G5njAyPCwk= X-Google-Smtp-Source: ABdhPJxwhCJyC+uhck/vVYoIRwMhWus9uJyoYA8q1C4DG6hFBkzj6XG5LHI4onqLHXxXLvHpBvFJjhBzstBp2T8d+3A= X-Received: by 2002:a9d:4e97:: with SMTP id v23mr20053935otk.190.1636214193915; Sat, 06 Nov 2021 08:56:33 -0700 (PDT) MIME-Version: 1.0 References: <20211105192101.3862492-1-maz@kernel.org> <20211105192101.3862492-3-maz@kernel.org> In-Reply-To: <20211105192101.3862492-3-maz@kernel.org> From: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Date: Sat, 6 Nov 2021 16:56:22 +0100 Message-ID: Subject: Re: [PATCH 2/5] KVM: mips: Use kvm_get_vcpu() instead of open-coded access To: Marc Zyngier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm , David Hildenbrand , Atish Patra , Paul Mackerras , Claudio Imbrenda , kvmarm@lists.cs.columbia.edu, Janosch Frank , Huacai Chen , Christian Borntraeger , Aleksandar Markovic , kernel-team@android.com, Suzuki K Poulose , Nicholas Piggin , Alexandru Elisei , Juergen Gross , Sean Christopherson , Anup Patel , "open list:BROADCOM NVRAM DRIVER" , James Morse , Paolo Bonzini , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Fri, Nov 5, 2021 at 9:14 PM Marc Zyngier wrote: > > As we are about to change the way vcpus are allocated, mandate > the use of kvm_get_vcpu() instead of open-coding the access. > > Signed-off-by: Marc Zyngier > --- > arch/mips/kvm/loongson_ipi.c | 4 ++-- > arch/mips/kvm/mips.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daud=C3=A9 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EFB3C433EF for ; Sun, 7 Nov 2021 13:26:46 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id E1BA761215 for ; Sun, 7 Nov 2021 13:26:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E1BA761215 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 4D9274B1B0; Sun, 7 Nov 2021 08:26:45 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V2YtOA8rP9CW; Sun, 7 Nov 2021 08:26:43 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id B625E4B195; Sun, 7 Nov 2021 08:26:43 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id AE65F4B156 for ; Sat, 6 Nov 2021 11:56:35 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pSlnPXQzKpG4 for ; Sat, 6 Nov 2021 11:56:34 -0400 (EDT) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 8473B4B136 for ; Sat, 6 Nov 2021 11:56:34 -0400 (EDT) Received: by mail-ot1-f51.google.com with SMTP id z2-20020a9d71c2000000b0055c6a7d08b8so5736315otj.5 for ; Sat, 06 Nov 2021 08:56:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eBDSUIjOttiaXGIBqHqfJQJUcKgBFvtaHFb5EhflaV4=; b=jwu1jYdLMd+soBglUZdDw+LFWGg8j95W5+z9C42+a4nn9jwqVlGUw0hFSM1pITTcGT lsGpFaNsdJAk0XsgX4YXWuaSqBG6tR+X1Asxd+XTyTuUHldyEP6pJe3TLMM7AbeTcSVP 1MyiRmH46yppdVl0l+iOGT1Ngzc4JJwQZ6G/5CmKHp6gpPeU/C4T2dEY8XnQXZRGtT3P yupUP+jowcw/SUwi6NPV4xRYrmD00VneE62YvxNuYHRKnVYfkw/TNdDdDQrcDuMIGw9x 8/k5pB6tiOWjPKseoY3MLTdzx1DWg/vGO/eV+k6KZ2De8gdIRza+sUgEtY3atAU5Mbq8 GhfQ== X-Gm-Message-State: AOAM533aOB5znaiJqxZy7lzZTAbHU9lSFd9ILpQkZyTYgRxPdTQvxdHJ zSdZrWu0vs51KGJM33XLYUVqhJHtravUCz82IIs= X-Google-Smtp-Source: ABdhPJxwhCJyC+uhck/vVYoIRwMhWus9uJyoYA8q1C4DG6hFBkzj6XG5LHI4onqLHXxXLvHpBvFJjhBzstBp2T8d+3A= X-Received: by 2002:a9d:4e97:: with SMTP id v23mr20053935otk.190.1636214193915; Sat, 06 Nov 2021 08:56:33 -0700 (PDT) MIME-Version: 1.0 References: <20211105192101.3862492-1-maz@kernel.org> <20211105192101.3862492-3-maz@kernel.org> In-Reply-To: <20211105192101.3862492-3-maz@kernel.org> From: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Date: Sat, 6 Nov 2021 16:56:22 +0100 Message-ID: Subject: Re: [PATCH 2/5] KVM: mips: Use kvm_get_vcpu() instead of open-coded access To: Marc Zyngier X-Mailman-Approved-At: Sun, 07 Nov 2021 08:26:42 -0500 Cc: kvm , David Hildenbrand , Atish Patra , Paul Mackerras , Claudio Imbrenda , kvmarm@lists.cs.columbia.edu, Janosch Frank , Michael Ellerman , Huacai Chen , Christian Borntraeger , Aleksandar Markovic , kernel-team@android.com, Nicholas Piggin , Juergen Gross , Anup Patel , "open list:BROADCOM NVRAM DRIVER" , Paolo Bonzini , linuxppc-dev@lists.ozlabs.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu T24gRnJpLCBOb3YgNSwgMjAyMSBhdCA5OjE0IFBNIE1hcmMgWnluZ2llciA8bWF6QGtlcm5lbC5v cmc+IHdyb3RlOgo+Cj4gQXMgd2UgYXJlIGFib3V0IHRvIGNoYW5nZSB0aGUgd2F5IHZjcHVzIGFy ZSBhbGxvY2F0ZWQsIG1hbmRhdGUKPiB0aGUgdXNlIG9mIGt2bV9nZXRfdmNwdSgpIGluc3RlYWQg b2Ygb3Blbi1jb2RpbmcgdGhlIGFjY2Vzcy4KPgo+IFNpZ25lZC1vZmYtYnk6IE1hcmMgWnluZ2ll ciA8bWF6QGtlcm5lbC5vcmc+Cj4gLS0tCj4gIGFyY2gvbWlwcy9rdm0vbG9vbmdzb25faXBpLmMg fCA0ICsrLS0KPiAgYXJjaC9taXBzL2t2bS9taXBzLmMgICAgICAgICB8IDIgKy0KPiAgMiBmaWxl cyBjaGFuZ2VkLCAzIGluc2VydGlvbnMoKyksIDMgZGVsZXRpb25zKC0pCgpSZXZpZXdlZC1ieTog UGhpbGlwcGUgTWF0aGlldS1EYXVkw6kgPGY0YnVnQGFtc2F0Lm9yZz4KX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Ka3ZtYXJtIG1haWxpbmcgbGlzdAprdm1h cm1AbGlzdHMuY3MuY29sdW1iaWEuZWR1Cmh0dHBzOi8vbGlzdHMuY3MuY29sdW1iaWEuZWR1L21h aWxtYW4vbGlzdGluZm8va3ZtYXJtCg==