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


Reply via email to