qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH RFC 2/9] target/riscv: Add target/riscv/kvm.c to place the pu


From: Jiangyifei
Subject: RE: [PATCH RFC 2/9] target/riscv: Add target/riscv/kvm.c to place the public kvm interface
Date: Sat, 11 Apr 2020 04:11:26 +0000

> -----Original Message-----
> From: Anup Patel [mailto:address@hidden]
> Sent: Tuesday, March 31, 2020 7:19 PM
> To: Jiangyifei <address@hidden>
> Cc: QEMU Developers <address@hidden>; open list:RISC-V
> <address@hidden>; Anup Patel <address@hidden>;
> Zhanghailiang <address@hidden>; Sagar Karandikar
> <address@hidden>; Bastian Koppelmann
> <address@hidden>; Zhangxiaofeng (F)
> <address@hidden>; Alistair Francis
> <address@hidden>; yinyipeng <address@hidden>; Palmer
> Dabbelt <address@hidden>; dengkai (A) <address@hidden>
> Subject: Re: [PATCH RFC 2/9] target/riscv: Add target/riscv/kvm.c to place the
> public kvm interface
> 
> On Tue, Mar 31, 2020 at 2:43 PM Anup Patel <address@hidden> wrote:
> >
> > On Fri, Mar 13, 2020 at 9:23 AM Yifei Jiang <address@hidden> wrote:
> > >
> > > Add target/riscv/kvm.c to place kvm_arch_* function needed by
> kvm/kvm-all.c.
> > > Meanwhile, add riscv64 kvm support to configure.
> >
> > This should be for both riscv64 and riscv32. The KVMTOOL compiles
> > perfectly fine for riscv32 (although not tested much) so there is no
> > harm is supporting both riscv64 and riscv32 from start itself.
> 
> For your reference, I have updated KVM RISC-V and KVMTOOL RISC-V repos
> at:
> https://github.com/kvm-riscv/linux.git (riscv_kvm_master branch)
> https://github.com/kvm-riscv/kvmtool.git (riscv_master branch)
> 
> Above repos work for both RV32 and RV64 systems.
> 
> Regards,
> Anup

Hi,

I will add riscv32 support and send v2 series. But I don't test completely, 
because it need time to build riscv32 QEMU and its dependent libraries.
Anyway, I will continue to build and test riscv32 QEMU.

By the way, I had a problem with start riscv64 vm at latest kvm-riscv version.
lastest version:
tcg qemu: https://github.com/qemu/qemu
linux: https://github.com/kvm-riscv/linux
opensbi: https://github.com/riscv/opensbi
kvmtool: https://github.com/kvm-riscv/kvmtool
when start vm with kvmtools or this qemu series, I received kernel panic.
Do you have this problem ?

[    3.583963] Run /sbin/init as init process
[    3.972264] rcS[44]: unhandled signal 11 code 0x1 at 0x0000003fc8d67170
[    3.997398] CPU: 0 PID: 44 Comm: rcS Not tainted 
5.6.0-rc5-14036-g6e1e9fcf5f30 #2
[    4.025143] epc: 0000003fc8d67170 ra : 0000000000018c1c sp : 0000003fffb84e00
[    4.051611]  gp : 0000000000136648 tp : 0000003fd6086710 t0 : 
0000000000000003
[    4.078223]  t1 : 000000000001792c t2 : 000000000000000b s0 : 
0000000000018bf0
[    4.105082]  s1 : 0000003fffa2fa70 a0 : 0000000000019868 a1 : 
0000000000000002
[    4.131824]  a2 : 0000003fffb84e08 a3 : 0000000000104984 a4 : 
00000000001049dc
[    4.158209]  a5 : 0000003fd628e710 a6 : 0000003fffb84e00 a7 : 
0000000000000000
[    4.184756]  s2 : 0000003fffa2fa10 s3 : 0000000000137010 s4 : 
0000000000000001
[    4.211448]  s5 : 0000003fc8d65918 s6 : 0000000000000001 s7 : 
0000000000112000
[    4.238238]  s8 : 0000000000136140 s9 : 0000000000000000 s10: 
0000000000000000
[    4.264880]  s11: 0000000000000000 t3 : 0000003fc8d67170 t4 : 
0000000000000002
[    4.291543]  t5 : 0000003fd6282180 t6 : 0000000000000000
[    4.311196] status: 0000000000004020 badaddr: 0000003fc8d67170 cause: 
000000000000000c
[    4.348835] init[1]: unhandled signal 11 code 0x1 at 0x0000003fd6292468
[    4.373718] CPU: 0 PID: 1 Comm: init Not tainted 
5.6.0-rc5-14036-g6e1e9fcf5f30 #2
[    4.401344] epc: 0000003fd6292468 ra : 0000000000102f88 sp : 0000003fffa2f960
[    4.427814]  gp : 0000000000136648 tp : 0000003fc8b50710 t0 : 
0000003fd629d170
[    4.454199]  t1 : 0000000000000238 t2 : 00000000001353f0 s0 : 
0000000000124000
[    4.480699]  s1 : 0000000000000008 a0 : 0000000000123aa8 a1 : 
0000000000000006
[    4.507352]  a2 : 0000000000000000 a3 : 0000000000000000 a4 : 
0000000000000000
[    4.533818]  a5 : fffffffffffff000 a6 : 0000003fc8d65918 a7 : 
0000000000000104
[    4.560408]  s2 : 0000000000000000 s3 : 0000000000000000 s4 : 
0000000000000000
[    4.586966]  s5 : 000000000000002c s6 : 0000000000000003 s7 : 
0000000000000000
[    4.613331]  s8 : 0000000000136140 s9 : 0000000000000000 s10: 
0000000000000000
[    4.640006]  s11: 0000000000000000 t3 : 0000003fd6292468 t4 : 
0000000000000002
[    4.666372]  t5 : 0000003fc8b53dc8 t6 : 0000000000000000
[    4.686124] status: 0000000000004020 badaddr: 0000003fd6292468 cause: 
000000000000000c
[    4.715612] Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x0000000b

Best Regards,
Yifei Jiang

reply via email to

[Prev in Thread] Current Thread [Next in Thread]