mbox series

[0/2] target/loongarch: Use auto method for LSX/LASX feature

Message ID 20241212024426.1391363-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series target/loongarch: Use auto method for LSX/LASX feature | expand

Message

Bibo Mao Dec. 12, 2024, 2:44 a.m. UTC
Like LBT feature, add type OnOffAuto for LSX and LASX feature setting.
Also add feature detection with new VM ioctl command, fallback to old
method if it is not supported.

Bibo Mao (2):
  target/loongarch: Use auto method with LSX feature
  target/loongarch: Use auto method with LASX feature

 target/loongarch/cpu.c     |  82 ++++++++++++++++------------
 target/loongarch/cpu.h     |   4 ++
 target/loongarch/kvm/kvm.c | 107 +++++++++++++++++++++++++++++++++++++
 3 files changed, 160 insertions(+), 33 deletions(-)


base-commit: 1cf9bc6eba7506ab6d9de635f224259225f63466