[Android-virt] io-thread required?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter.

I finally had some cycles to actually play with KVM again this
weekend, and I noticed that QEMU (the older branch that I based my
stuff) does not generate timer interrupts, when the io-thread is not
enabled.

The timer interrupts in hw/arm_timer.c seem to be based simply on
posix_timers, so in my simple logic I figured that the timers should
still work on a single thread, when timer interrupts occur in the
kernel they should generate a signal to the KVM process and KVM should
exit due to checking for signal_pending(current) and everything should
work. It certainly used to work without the io-thread option, but in
the recent kernel on which I rebased the code (Catalin's master
branch) no emulated timer interrupts are ever raised (in fact a quick
ftrace shows that the timer is cancelled in hrtimer and never
activated again).

Is this a bug, or should io-thread just be enabled with KVM and I
shouldn't worry about the case above? Perhaps some of you can shed
some light on this?

Thanks!
-Christoffer


[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux