Re: [PATCH] kvm-userspace: Make PC speaker emulation aware of in-kernel PIT

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

 



Jan,

While the patch itself looks fine, IMO it would be better to move all of 
the timer handling to userspace, except the performance critical parts,
since most of it is generic. Either periodic or one-shot timer, with:

    - PIO or MMIO region returns remaining time for expiration.
    - PIO or MMIO region programs the next event and timer mode.

Oversimplified of course (kvm_timer_ops was the first step in that
direction). I believe there will be a proposed HPET in-kernel driver.

I don't see what is the problem with partial components that Avi talks
about.

On Thu, Apr 23, 2009 at 10:24:05PM +0200, Jan Kiszka wrote:
> When using the in-kernel PIT the speaker emulation has to synchronize
> the PIT state with KVM. Enhance the existing speaker sound device and
> allow it to take over port 0x61 by using KVM_CREATE_PIT_NOSPKR when
> available. This unbreaks -soundhw pcspk in KVM mode.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux