Re: [PATCH] hw/loongarch: Add VM mode in IOCSR feature register in kvm mode

2024-05-14 Thread gaosong
在 2024/5/14 上午10:51, Bibo Mao 写道: If VM runs in kvm mode, VM mode is added in IOCSR feature register. So guest can detect kvm hypervisor type and enable possible pv functions. Signed-off-by: Bibo Mao --- Reviewed-by: Song Gao Thanks. Song Gao hw/loongarch/virt.c | 12 +--- 1 file

[PATCH] hw/loongarch: Add VM mode in IOCSR feature register in kvm mode

2024-05-13 Thread Bibo Mao
If VM runs in kvm mode, VM mode is added in IOCSR feature register. So guest can detect kvm hypervisor type and enable possible pv functions. Signed-off-by: Bibo Mao --- hw/loongarch/virt.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/loongarch/virt.c b/hw/