Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Virtio Block Driver #74

Open
bayedieng opened this issue Nov 10, 2021 · 3 comments
Open

Implement Virtio Block Driver #74

bayedieng opened this issue Nov 10, 2021 · 3 comments

Comments

@bayedieng
Copy link
Contributor

bayedieng commented Nov 10, 2021

See #48

@bayedieng
Copy link
Contributor Author

Hey @nuta, I began working on the virtio-blk driver and added an additional device param in the run-qemu script for the virtio-blk-pci device. I noticed that when building and running the kernel a virtio-net.pcap file is automatically generated. I would like to do the same for a vdisk file but not sure how.

@nuta
Copy link
Owner

nuta commented Nov 13, 2021

You can use QEMU's tracing to figure out what's going on in the host's emulation:

$ make run QEMU_ARGS="--trace 'virtio_*'"

Tip: I usually use my own QEMU build to insert printf and enable hidden DEBUG macros (an example in FAT emulation) when I debug my device drivers.

@bayedieng
Copy link
Contributor Author

Thanks, got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants