target/loongarch: Set cpuid CSR register only once with kvm mode
commit61f6e1509de2cef9df1c649f6b318c36288c119b
authorBibo Mao <maobibo@loongson.cn>
Mon, 15 Jan 2024 08:51:21 +0000 (15 16:51 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 25 Jan 2024 07:25:03 +0000 (25 15:25 +0800)
tree04491705b4dcff659176d33274dc678b4488e5d3
parent4a4efae44f19528589204581e9e2fab69c5d39aa
target/loongarch: Set cpuid CSR register only once with kvm mode

CSR cpuid register is used for routing irq to different vcpus, its
value is kept unchanged since poweron. So it is not necessary to
set CSR cpuid register after system resets, and it is only set at
vm creation stage.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20240115085121.180524-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/kvm/kvm.c