]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Use auto method with LSX feature
authorBibo Mao <maobibo@loongson.cn>
Thu, 19 Dec 2024 12:54:23 +0000 (20:54 +0800)
committerBibo Mao <maobibo@loongson.cn>
Fri, 27 Dec 2024 03:32:55 +0000 (11:32 +0800)
commit936c3f4d79160b0c4d9d0097b5643fc7e460c605
tree1ad5823c7868de318b57822d4f987abedfe82667
parentb360109fc6b3b6ffae071d5b38c9bba0f9728160
target/loongarch: Use auto method with LSX feature

Like LBT feature, add type OnOffAuto for LSX feature setting. Also
add LSX feature detection with new VM ioctl command, fallback to old
method if it is not supported.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
target/loongarch/cpu.c
target/loongarch/cpu.h
target/loongarch/kvm/kvm.c