GithubHelp home page GithubHelp logo

riscv-kvm-demo's Introduction

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

riscv-kvm-demo's People

Contributors

ez4yunfeng2 avatar

Stargazers

Bamvor Jian Zhang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.