如何在QEMU中模拟SATA磁盘驱动器 [英] How to emulate a SATA disk drive in QEMU

查看:1105
本文介绍了如何在QEMU中模拟SATA磁盘驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在QEMU中模拟SATA磁盘驱动器,以检查我要开发的设备驱动程序.如何才能做到这一点?非常感谢您的帮助.

I want to emulate a SATA disk drive in QEMU to check a device driver I'm trying to develop. How can this be done? Would greatly appreciate your help.

推荐答案

Gentoo Wiki 提供以下参数:

 -drive id=disk,file=IMAGE.img,if=none \
 -device ahci,id=ahci \
 -device ide-drive,drive=disk,bus=ahci.0

为ICH-9 AHCI控制器设置仿真层(尚未稳定),并为其使用指定的图像文件. AHCI仿真支持NCQ,因此可以同时处理多个读取或写入请求.

Set emulation layer for an ICH-9 AHCI controller (not yet stable ) and use the specified image file for it. The AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at the same time.

这篇关于如何在QEMU中模拟SATA磁盘驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆