[PATCH 0/2] target/loongarch: Add API cpu_has_msgint()

Bibo Mao posted 2 patches 3 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261029085654.78806-1-maobibo@loongson.cn
Maintainers: Song Gao <17746591750@163.com>, Bibo Mao <maobibo@loongson.cn>, Xianglai Li <lixianglai@loongson.cn>, Jiaxun Yang <jiaxun.yang@flygoat.com>
hw/loongarch/virt.c        |  4 ++--
target/loongarch/cpu.c     |  4 +++-
target/loongarch/cpu.h     |  6 ++++++
target/loongarch/kvm/kvm.c | 11 ++---------
target/loongarch/machine.c |  2 +-
5 files changed, 14 insertions(+), 13 deletions(-)
[PATCH 0/2] target/loongarch: Add API cpu_has_msgint()
Posted by Bibo Mao 3 weeks, 3 days ago
Add API cpu_has_msgint() and replace kvm_cpu_has_msgint() with the new
API, also check CPU msgint feature with API cpu_has_msgint() rather than
OnOffAuto type variable CPULoongArchState::msgint.

There is problem if msgint is set as ON_OFF_AUTO_AUTO in KVM mode, QEMU
will check host feature and set its real value in cpucfg1, which is used
by API cpu_has_msgint(), however field msgint is still ON_OFF_AUTO_AUTO.

Bibo Mao (2):
  target/loongarch: Replace kvm_cpu_has_msgint() with cpu_has_msgint()
  target/loongarch: Check CPU msgint feature with cpu_has_msgint()

 hw/loongarch/virt.c        |  4 ++--
 target/loongarch/cpu.c     |  4 +++-
 target/loongarch/cpu.h     |  6 ++++++
 target/loongarch/kvm/kvm.c | 11 ++---------
 target/loongarch/machine.c |  2 +-
 5 files changed, 14 insertions(+), 13 deletions(-)


base-commit: 73294d096cc591e122fde9e63db4739de6d84f2b
-- 
2.54.0