Skip to content

ez4yunfeng2/riscv-kvm-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Riscv Kvm Demo.
QEMU, KvmTools were referenced during the coding process.

Usage:

make run

Running log:

           _  _
          | ||_|
          | | _ ____  _   _  _  _ 
          | || |  _ \| | | |\ \/ /
          | || | | | | |_| |/    \
          |_||_|_| |_|\____|\_/\_/

               Busybox Rootfs

Please press Enter to activate this console. 
/ # cd apps/
/apps # ./kvm
KVM (3), VMDF (4), VCPU (5)
reg.id: 8000000
reg.addr: 1

 Control Status Registers:
 ------------------------
 SSTATUS:  0x0000000000000000
 SIE:      0x0000000000000000
 STVEC:    0x0000000000000000
 SIP:      0x0000000000000000
 SATP:     0x0000000000000000
 STVAL:    0x0000000000000000
 SCAUSE:   0x0000000000000000
 SSCRATCH: 0x0000000000000000

 General Purpose Registers:
 -------------------------
 MODE:  0x0
 PC: 0x0000000000000000   RA: 0x0000000000000000 SP: 0x0000000000000000 GP: 0x0000000000000000
 TP: 0x0000000000000000   T0: 0x0000000000000000 T1: 0x0000000000000000 T2: 0x0000000000000000
 S0: 0x0000000000000000   S1: 0x0000000000000000 A0: 0x0000000000000000 A1: 0x0000000000000000
 A2: 0x0000000000000000   A3: 0x0000000000000000 A4: 0x0000000000000000 A5: 0x0000000000000000
 A6: 0x0000000000000000   A7: 0x0000000000000000 S2: 0x0000000000000000 S3: 0x0000000000000000
 S4: 0x0000000000000000   S5: 0x0000000000000000 S6: 0x0000000000000000 S7: 0x0000000000000000
 S8: 0x0000000000000000   S9: 0x0000000000000000 S10: 0x0000000000000000 S11: 0x0000000000000000
 T3: 0x0000000000000000   T4: 0x0000000000000000 T5: 0x0000000000000000 T6: 0x0000000000000000

KVM RUN:

hello world!
Read From CharDev!


KVM END
/apps # QEMU: Terminated

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published