* [Qemu-devel] Disk I/O in QEMU
@ 2014-03-11 7:08 Le Tan
2014-03-11 12:23 ` Stefan Hajnoczi
0 siblings, 1 reply; 5+ messages in thread
From: Le Tan @ 2014-03-11 7:08 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
Hi, I am now studying the disk I/O in QEMU, but I know little about QEMU. I
want to know how QEMU implements or emulates the disk I/O? Where to find
some materials about this? And if I can get all the disk I/O request from
the guest in QEMU? Thanks!
[-- Attachment #2: Type: text/html, Size: 272 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Disk I/O in QEMU
2014-03-11 7:08 [Qemu-devel] Disk I/O in QEMU Le Tan
@ 2014-03-11 12:23 ` Stefan Hajnoczi
2014-03-12 12:27 ` Le Tan
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Hajnoczi @ 2014-03-11 12:23 UTC (permalink / raw)
To: Le Tan; +Cc: qemu-devel
On Tue, Mar 11, 2014 at 03:08:52PM +0800, Le Tan wrote:
> Hi, I am now studying the disk I/O in QEMU, but I know little about QEMU. I
> want to know how QEMU implements or emulates the disk I/O? Where to find
> some materials about this? And if I can get all the disk I/O request from
> the guest in QEMU? Thanks!
QEMU emulates hardware including IDE or SCSI controllers. I/O requests
go through QEMU. Look at hw/block/.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Disk I/O in QEMU
2014-03-11 12:23 ` Stefan Hajnoczi
@ 2014-03-12 12:27 ` Le Tan
2014-03-12 13:13 ` Fam Zheng
0 siblings, 1 reply; 5+ messages in thread
From: Le Tan @ 2014-03-12 12:27 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]
Hi Stefan,
Thanks for your help. I find that the source code of qemu-1.2.0 doesn't
have hw/block/. So I download the qemu-1.6.2. However it doesn't work. I
run the configure like this:
./configure --enable-kvm --x86_64-softmmu
then make and make install.
I can start the vm using this command:
qemu-system-x86_64 -m 1024 -smp 2 -hda my.img
But the qemu is not using the kvm to accelerate. Then I add the
"-enable-kvm" in the command. I connect to the vm via VNC. However, the
vnc-viewer is just black and displays nothing.
It used to work fine with qemu-1.2.0 (qemu-kvm). Of course, with qemu-kvm,
there is no need to add the "-enable-kvm" option.
So with qemu-1.6.2, did I miss any options?
Thanks!
2014-03-11 20:23 GMT+08:00 Stefan Hajnoczi <stefanha@gmail.com>:
> On Tue, Mar 11, 2014 at 03:08:52PM +0800, Le Tan wrote:
> > Hi, I am now studying the disk I/O in QEMU, but I know little about
> QEMU. I
> > want to know how QEMU implements or emulates the disk I/O? Where to find
> > some materials about this? And if I can get all the disk I/O request from
> > the guest in QEMU? Thanks!
>
> QEMU emulates hardware including IDE or SCSI controllers. I/O requests
> go through QEMU. Look at hw/block/.
>
> Stefan
>
[-- Attachment #2: Type: text/html, Size: 1791 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Disk I/O in QEMU
2014-03-12 12:27 ` Le Tan
@ 2014-03-12 13:13 ` Fam Zheng
2014-03-12 13:19 ` Le Tan
0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2014-03-12 13:13 UTC (permalink / raw)
To: Le Tan; +Cc: Stefan Hajnoczi, qemu-devel
On Wed, 03/12 20:27, Le Tan wrote:
> Hi Stefan,
> Thanks for your help. I find that the source code of qemu-1.2.0 doesn't
> have hw/block/. So I download the qemu-1.6.2. However it doesn't work. I
> run the configure like this:
> ./configure --enable-kvm --x86_64-softmmu
> then make and make install.
> I can start the vm using this command:
> qemu-system-x86_64 -m 1024 -smp 2 -hda my.img
> But the qemu is not using the kvm to accelerate. Then I add the
> "-enable-kvm" in the command. I connect to the vm via VNC. However, the
> vnc-viewer is just black and displays nothing.
> It used to work fine with qemu-1.2.0 (qemu-kvm). Of course, with qemu-kvm,
> there is no need to add the "-enable-kvm" option.
> So with qemu-1.6.2, did I miss any options?
> Thanks!
>
But you didn't specify vnc as display in your command line?
Try specify "-vnc :0" and connect with "vncviewer :0".
Fam
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Disk I/O in QEMU
2014-03-12 13:13 ` Fam Zheng
@ 2014-03-12 13:19 ` Le Tan
0 siblings, 0 replies; 5+ messages in thread
From: Le Tan @ 2014-03-12 13:19 UTC (permalink / raw)
To: Fam Zheng; +Cc: Stefan Hajnoczi, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]
I am sorry I didn't give the complete command I have executed. It is like
this:
qemu-system-x86_64 -m 1024 -smp 2 -hda /home/tanle/study/new.img -nographic
-vnc 192.168.146.118:2 -enable-kvm
If I delete the "-enable-kvm", it is ok and the system can boot up (just
slow). But with "-enable-kvm", the vnc viewer is just black, displaying
nothing.
So did I miss any options? Or there is something else wrong?
Thanks!
2014-03-12 21:13 GMT+08:00 Fam Zheng <famz@redhat.com>:
> On Wed, 03/12 20:27, Le Tan wrote:
> > Hi Stefan,
> > Thanks for your help. I find that the source code of qemu-1.2.0 doesn't
> > have hw/block/. So I download the qemu-1.6.2. However it doesn't work. I
> > run the configure like this:
> > ./configure --enable-kvm --x86_64-softmmu
> > then make and make install.
> > I can start the vm using this command:
> > qemu-system-x86_64 -m 1024 -smp 2 -hda my.img
> > But the qemu is not using the kvm to accelerate. Then I add the
> > "-enable-kvm" in the command. I connect to the vm via VNC. However, the
> > vnc-viewer is just black and displays nothing.
> > It used to work fine with qemu-1.2.0 (qemu-kvm). Of course, with
> qemu-kvm,
> > there is no need to add the "-enable-kvm" option.
> > So with qemu-1.6.2, did I miss any options?
> > Thanks!
> >
>
> But you didn't specify vnc as display in your command line?
>
> Try specify "-vnc :0" and connect with "vncviewer :0".
>
> Fam
>
[-- Attachment #2: Type: text/html, Size: 2065 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-12 13:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 7:08 [Qemu-devel] Disk I/O in QEMU Le Tan
2014-03-11 12:23 ` Stefan Hajnoczi
2014-03-12 12:27 ` Le Tan
2014-03-12 13:13 ` Fam Zheng
2014-03-12 13:19 ` Le Tan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).