[RFC v3 0/2] target/loongarch: Add loongson binary translation feature

Bibo Mao posted 2 patches 5 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240530064941.1289573-1-maobibo@loongson.cn
Maintainers: Song Gao <gaosong@loongson.cn>
There is a newer version of this series
target/loongarch/cpu.c                | 53 ++++++++++++++++++
target/loongarch/cpu.h                | 18 +++++++
target/loongarch/kvm/kvm.c            | 78 +++++++++++++++++++++++++++
target/loongarch/kvm/kvm_loongarch.h  | 16 ++++++
target/loongarch/loongarch-qmp-cmds.c |  2 +-
target/loongarch/machine.c            | 24 +++++++++
6 files changed, 190 insertions(+), 1 deletion(-)
[RFC v3 0/2] target/loongarch: Add loongson binary translation feature
Posted by Bibo Mao 5 months, 4 weeks ago
Loongson Binary Translation (LBT) is used to accelerate binary
translation. LBT feature is added in kvm mode, not supported in TCG
mode since it is not emulated.

Here lbt=on/off property is added to parse command line to
enable/disable lbt feature. Also fix registers relative lbt are saved
and restored during migration.

It depends LBT support on kvm side, and it is listed at
https://lore.kernel.org/kvm/20240527074644.836699-1-maobibo@loongson.cn/

---
v2 ... v3:
  1. Property lbt is added only if kvm is enabled
  2. Use feature variable lbt with OnOffAuto type, rather than feature
bitmap flags default_features and forced_features

v1 ... v2:
  1. Add LBT register saving and restoring in vmstate
  2. Add two pseudo feature flags: default_features and forced_features
---
Bibo Mao (2):
  target/loongarch: Add loongson binary translation feature
  target/loongarch: Implement lbt registers save/restore function

 target/loongarch/cpu.c                | 53 ++++++++++++++++++
 target/loongarch/cpu.h                | 18 +++++++
 target/loongarch/kvm/kvm.c            | 78 +++++++++++++++++++++++++++
 target/loongarch/kvm/kvm_loongarch.h  | 16 ++++++
 target/loongarch/loongarch-qmp-cmds.c |  2 +-
 target/loongarch/machine.c            | 24 +++++++++
 6 files changed, 190 insertions(+), 1 deletion(-)


base-commit: 3b2fe44bb7f605f179e5e7feb2c13c2eb3abbb80
-- 
2.39.3