Git Product home page Git Product logo

Comments (9)

huaicheng avatar huaicheng commented on May 25, 2024

Thanks for reporting this. I will take a look later (need a while).

from femu.

lovers-under-moon avatar lovers-under-moon commented on May 25, 2024

Thanks for reporting this. I will take a look later (need a while).

Thank you

from femu.

lovers-under-moon avatar lovers-under-moon commented on May 25, 2024

The qemu I used is https://github.com/spdk/qemu/tree/spdk-5.0.0

from femu.

lovers-under-moon avatar lovers-under-moon commented on May 25, 2024

Thanks for reporting this. I will take a look later (need a while).

Installing, using and debugging FEMU can cause side effects including headache, nausea, agitation, and depression. If your research condition does not improve after using FEMU for a week, please talk to your advisor or us right away.

Haha,I think I have headache symptoms now.I don’t know where is the bug .

from femu.

lovers-under-moon avatar lovers-under-moon commented on May 25, 2024

SPDK use NVMe read/write (0x01, 0x02) Commands for OCSSD read and write,but FEMU OCSSD2.0 do not support NVMe read/write (0x01, 0x02) Commands.FEMU support Vector Chunk Write/Read( (0x91, 0x92)).You can modify SPDK's read and write interface or add NVMe read/write (0x01, 0x02) function to FEMU.

from femu.

huaicheng avatar huaicheng commented on May 25, 2024

from femu.

huaicheng avatar huaicheng commented on May 25, 2024

With the above patch, the SPDK FTL "hello world" test runs fine on FEMU.

from femu.

lovers-under-moon avatar lovers-under-moon commented on May 25, 2024

With the above patch, the SPDK FTL "hello world" test runs fine on FEMU.

Thank you very much
Now the "hello world" test can run successfully.But I found another problem when I mounted SPDK FTL.FEMU does not support "Asynchronous Event Request command" (NVMe admin command opcode=0x0C) and "Log Page Identifier Chunk Notification"(lid=0xD0).
SPDK needs the support of these two admin commands to successfully mount user-mode FTL.

NVMe 1.3 specification.
image

OCSSD2.0 specification
image

Example of spdk mounting FTL
1.Run FEMU OCSSD mode:
./run-whitebox.sh

2.Build SPDK
git clone https://github.com/spdk/spdk -b v20.10
cd spdk
git submodule update --init
sudo scripts/pkgdep.sh
./configure
make

3.Mount FTL
sudo HUGEMEM=5120 scripts/setup.sh
sudo ./build/bin/nvmf_tgt

Then open another terminal window
scripts/rpc.py bdev_nvme_attach_controller -b nvme0 -a 00:05.0 -t pcie
scripts/rpc.py bdev_ocssd_create -c nvme0 -b nvme0n1 (Failed to run this)
scripts/rpc.py bdev_ftl_create -b ftl0 -d nvme0n1

image

from femu.

huaicheng avatar huaicheng commented on May 25, 2024

Thanks for testing it! Will take a look later.

from femu.

Related Issues (20)

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.