All of lore.kernel.org
 help / color / mirror / Atom feed
From: SignKirigami <prcups@krgm.moe>
To: qemu-devel@nongnu.org
Cc: Bibo Mao <maobibo@loongson.cn>,
	xianglai li <lixianglai@loongson.cn>,
	SignKirigami <prcups@krgm.moe>
Subject: [PATCH v3 0/8] target/loongarch: add LVZ support for TCG
Date: Fri, 10 Jul 2026 17:00:09 +0800	[thread overview]
Message-ID: <cover.1783673526.git.prcups@krgm.moe> (raw)

This patch implements Loongson VirtualiZation (LVZ) extension support
for LoongArch's TCG target. With this patch, it is now possible to start
a nested KVM-accelerated virtual machine on a TCG-emulated virtual machine.

SignKirigami (8):
  target/loongarch: Define LVZ CSR fields
  target/loongarch: Add LVZ CPU state definitions
  target/loongarch: Add LVZ translation context flags
  target/loongarch: Add LVZ guest CSR tables
  target/loongarch: Dump host CSRs with LVZ state
  target/loongarch: Add LVZ CPU runtime control
  target/loongarch: Add LVZ MMU and PTW support
  target/loongarch: Translate LVZ instructions

 target/loongarch/arch_dump.c                  |   6 +-
 target/loongarch/cpu-csr.h                    |  42 ++
 target/loongarch/cpu-mmu.h                    |  39 +-
 target/loongarch/cpu.c                        | 279 ++++++---
 target/loongarch/cpu.h                        |  62 +-
 target/loongarch/cpu_helper.c                 |  87 ++-
 target/loongarch/csr.c                        | 124 +++-
 target/loongarch/csr.h                        |  12 +-
 target/loongarch/disas.c                      |  16 +
 target/loongarch/insns.decode                 |  14 +
 target/loongarch/internals.h                  |   8 +-
 target/loongarch/machine.c                    | 125 +++-
 target/loongarch/tcg/constant_timer.c         |  74 ++-
 target/loongarch/tcg/csr_helper.c             | 136 ++++-
 target/loongarch/tcg/helper.h                 |  30 +-
 .../tcg/insn_trans/trans_extra.c.inc          |   2 +-
 .../tcg/insn_trans/trans_privileged.c.inc     | 353 ++++++++++-
 target/loongarch/tcg/op_helper.c              |  45 +-
 target/loongarch/tcg/tcg_cpu.c                |  65 +-
 target/loongarch/tcg/tcg_loongarch.h          |   3 +-
 target/loongarch/tcg/tlb_helper.c             | 577 +++++++++++++-----
 target/loongarch/tcg/translate.c              |   6 +-
 target/loongarch/translate.h                  |   2 +
 23 files changed, 1747 insertions(+), 360 deletions(-)

-- 
2.52.0



             reply	other threads:[~2026-07-10  9:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10  9:00 SignKirigami [this message]
2026-07-10  9:00 ` [PATCH v3 1/8] target/loongarch: Define LVZ CSR fields SignKirigami
2026-07-13  6:35   ` Bibo Mao
2026-07-10  9:00 ` [PATCH v3 2/8] target/loongarch: Add LVZ CPU state definitions SignKirigami
2026-07-10  9:00 ` [PATCH v3 3/8] target/loongarch: Add LVZ translation context flags SignKirigami
2026-07-10  9:00 ` [PATCH v3 4/8] target/loongarch: Add LVZ guest CSR tables SignKirigami
2026-07-13  6:50   ` Bibo Mao
2026-07-10  9:00 ` [PATCH v3 5/8] target/loongarch: Dump host CSRs with LVZ state SignKirigami
2026-07-13  7:02   ` Bibo Mao
2026-07-10  9:00 ` [PATCH v3 6/8] target/loongarch: Add LVZ CPU runtime control SignKirigami
2026-07-13  9:10   ` Bibo Mao
2026-07-10  9:00 ` [PATCH v3 7/8] target/loongarch: Add LVZ MMU and PTW support SignKirigami
2026-07-10  9:00 ` [PATCH v3 8/8] target/loongarch: Translate LVZ instructions SignKirigami
2026-07-13  9:29   ` Bibo Mao

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=cover.1783673526.git.prcups@krgm.moe \
    --to=prcups@krgm.moe \
    --cc=lixianglai@loongson.cn \
    --cc=maobibo@loongson.cn \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.