qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC v3 0/2] target/loongarch: Add loongson binary translation feature
@ 2024-05-30  6:49 Bibo Mao
  2024-05-30  6:49 ` [RFC v3 1/2] " Bibo Mao
  2024-05-30  6:49 ` [RFC v3 2/2] target/loongarch: Implement lbt registers save/restore function Bibo Mao
  0 siblings, 2 replies; 11+ messages in thread
From: Bibo Mao @ 2024-05-30  6:49 UTC (permalink / raw)
  To: Song Gao, Philippe Mathieu-Daudé; +Cc: qemu-devel

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



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-07-03 10:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-30  6:49 [RFC v3 0/2] target/loongarch: Add loongson binary translation feature Bibo Mao
2024-05-30  6:49 ` [RFC v3 1/2] " Bibo Mao
2024-07-01  6:57   ` Jiaxun Yang
2024-07-01  7:32     ` maobibo
2024-07-01  8:42       ` Jiaxun Yang
2024-07-01  9:23         ` maobibo
2024-07-03  7:50     ` Jiaxun Yang
2024-07-03  9:43       ` Huacai Chen
2024-07-03 10:10         ` maobibo
2024-07-03 10:19           ` Jiaxun Yang
2024-05-30  6:49 ` [RFC v3 2/2] target/loongarch: Implement lbt registers save/restore function Bibo Mao

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 NNTP newsgroup(s).