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 v4 00/14] target/loongarch: add LVZ support for TCG
Date: Wed, 26 Aug 2026 18:30:04 +0800	[thread overview]
Message-ID: <cover.1787739852.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 (14):
  target/loongarch: Define LVZ CSR fields
  target/loongarch: Add LVZ CPU state definitions
  target/loongarch: Add LVZ CSR metadata
  target/loongarch: Add LVZ CPU model support
  target/loongarch: Add LVZ guest interrupt state
  target/loongarch: Add LVZ guest timer support
  target/loongarch: Add LVZ VM entry and exception handling
  target/loongarch: Add LVZ guest CSR helpers
  target/loongarch: Add LVZ migration state
  target/loongarch: Add LVZ MMU and PTW support
  target/loongarch: Translate LVZ guest CSR instructions
  target/loongarch: Translate LVZ guest TLB instructions
  target/loongarch: Translate LVZ guest traps and HVC
  fix(tcg/loongarch): strip flag bits in lddir/ldpte address calculation

 target/loongarch/arch_dump.c                  |   6 +-
 target/loongarch/cpu-csr.h                    |  38 ++
 target/loongarch/cpu-mmu.h                    |  38 +-
 target/loongarch/cpu.c                        | 247 ++++++---
 target/loongarch/cpu.h                        |  64 ++-
 target/loongarch/cpu_helper.c                 |  84 +--
 target/loongarch/csr.c                        | 112 ++--
 target/loongarch/csr.h                        |   6 +-
 target/loongarch/disas.c                      |  15 +
 target/loongarch/insns.decode                 |  14 +
 target/loongarch/internals.h                  |  10 +-
 target/loongarch/machine.c                    | 111 +++-
 target/loongarch/tcg/constant_timer.c         |  67 ++-
 target/loongarch/tcg/csr_helper.c             | 224 +++++++-
 target/loongarch/tcg/helper.h                 |  36 +-
 .../tcg/insn_trans/trans_extra.c.inc          |   2 +-
 .../tcg/insn_trans/trans_privileged.c.inc     | 388 +++++++++++---
 target/loongarch/tcg/op_helper.c              |  22 +
 target/loongarch/tcg/tcg_cpu.c                |  82 ++-
 target/loongarch/tcg/tcg_loongarch.h          |   3 +-
 target/loongarch/tcg/tlb_helper.c             | 498 ++++++++++++------
 target/loongarch/tcg/translate.c              |   6 +-
 target/loongarch/translate.h                  |   2 +
 23 files changed, 1588 insertions(+), 487 deletions(-)

-- 
2.55.0



             reply	other threads:[~2026-08-26 10:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-26 10:30 SignKirigami [this message]
2026-08-26 10:30 ` [PATCH v4 01/14] target/loongarch: Define LVZ CSR fields SignKirigami
2026-08-31  2:27   ` Bibo Mao
2026-08-26 10:30 ` [PATCH v4 02/14] target/loongarch: Add LVZ CPU state definitions SignKirigami
2026-08-31  2:56   ` Bibo Mao
2026-08-26 10:30 ` [PATCH v4 03/14] target/loongarch: Add LVZ CSR metadata SignKirigami
2026-09-01  7:08   ` Bibo Mao
2026-09-02  3:09     ` SignKirigami
2026-08-26 10:30 ` [PATCH v4 04/14] target/loongarch: Add LVZ CPU model support SignKirigami
2026-09-02  3:09   ` Bibo Mao
2026-08-26 10:30 ` [PATCH v4 05/14] target/loongarch: Add LVZ guest interrupt state SignKirigami
2026-09-02  3:33   ` Bibo Mao
2026-08-26 10:30 ` [PATCH v4 06/14] target/loongarch: Add LVZ guest timer support SignKirigami
2026-08-26 10:30 ` [PATCH v4 07/14] target/loongarch: Add LVZ VM entry and exception handling SignKirigami
2026-09-02  9:19   ` Bibo Mao
2026-08-26 10:30 ` [PATCH v4 08/14] target/loongarch: Add LVZ guest CSR helpers SignKirigami
2026-09-02  9:55   ` Bibo Mao
2026-08-26 10:30 ` [PATCH v4 09/14] target/loongarch: Add LVZ migration state SignKirigami
2026-08-26 10:30 ` [PATCH v4 10/14] target/loongarch: Add LVZ MMU and PTW support SignKirigami
2026-08-26 10:30 ` [PATCH v4 11/14] target/loongarch: Translate LVZ guest CSR instructions SignKirigami
2026-08-26 10:30 ` [PATCH v4 12/14] target/loongarch: Translate LVZ guest TLB instructions SignKirigami
2026-08-26 10:30 ` [PATCH v4 13/14] target/loongarch: Translate LVZ guest traps and HVC SignKirigami
2026-08-26 10:30 ` [PATCH v4 14/14] fix(tcg/loongarch): strip flag bits in lddir/ldpte address calculation SignKirigami

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.1787739852.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.