loongarch.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Huacai Chen <chenhuacai@kernel.org>
To: Bibo Mao <maobibo@loongson.cn>
Cc: Tao Cui <cuitao@kylinos.cn>,
	zhaotianrui@loongson.cn, loongarch@lists.linux.dev,
	 kernel@xen0n.name
Subject: Re: [PATCH] LoongArch/KVM: Use kvm_set_pte() in kvm_flush_pte
Date: Wed, 29 Apr 2026 17:53:16 +0800	[thread overview]
Message-ID: <CAAhV-H6xGgm2mRLZFOMmqKZr503YnSKGsBssoVceTrfDs0hPKQ@mail.gmail.com> (raw)
In-Reply-To: <bdfd9d8a-7614-420f-0ef3-fddc694fe9e4@loongson.cn>

On Wed, Apr 29, 2026 at 11:25 AM Bibo Mao <maobibo@loongson.cn> wrote:
>
>
>
> On 2026/4/28 下午9:00, Tao Cui wrote:
> > kvm_flush_pte() is the only caller that directly assigns *pte instead
> > of using the kvm_set_pte() wrapper. Use the wrapper for consistency
> > with the rest of the file.
> >
> > No functional change intended.
> >
> > Signed-off-by: Tao Cui <cuitao@kylinos.cn>
> > ---
> >   arch/loongarch/kvm/mmu.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/loongarch/kvm/mmu.c b/arch/loongarch/kvm/mmu.c
> > index a7fa458e3360..e104897aa532 100644
> > --- a/arch/loongarch/kvm/mmu.c
> > +++ b/arch/loongarch/kvm/mmu.c
> > @@ -95,7 +95,7 @@ static int kvm_flush_pte(kvm_pte_t *pte, phys_addr_t addr, kvm_ptw_ctx *ctx)
> >       else
> >               kvm->stat.pages--;
> >
> > -     *pte = ctx->invalid_entry;
> > +     kvm_set_pte(pte, ctx->invalid_entry);
> >
> >       return 1;
> >   }
> >
> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Applied, thanks.

Huacai
>
>

      reply	other threads:[~2026-04-29  9:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-28 13:00 [PATCH] LoongArch/KVM: Use kvm_set_pte() in kvm_flush_pte Tao Cui
2026-04-29  3:22 ` Bibo Mao
2026-04-29  9:53   ` Huacai Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAhV-H6xGgm2mRLZFOMmqKZr503YnSKGsBssoVceTrfDs0hPKQ@mail.gmail.com \
    --to=chenhuacai@kernel.org \
    --cc=cuitao@kylinos.cn \
    --cc=kernel@xen0n.name \
    --cc=loongarch@lists.linux.dev \
    --cc=maobibo@loongson.cn \
    --cc=zhaotianrui@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).