KVM: Allow PIT emulation without speaker port
authorJan Kiszka <jan.kiszka@web.de>
Thu, 14 May 2009 20:42:53 +0000 (22:42 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:41 +0000 (08:32 +0300)
commitc5ff41ce66382d657a76bc06ba252d848826950f
tree4b7bc3674faa6259b1e6b07fc616b17dcf281d98
parent721eecbf4fe995ca94a9edec0c9843b1cc0eaaf3
KVM: Allow PIT emulation without speaker port

The in-kernel speaker emulation is only a dummy and also unneeded from
the performance point of view. Rather, it takes user space support to
generate sound output on the host, e.g. console beeps.

To allow this, introduce KVM_CREATE_PIT2 which controls in-kernel
speaker port emulation via a flag passed along the new IOCTL. It also
leaves room for future extensions of the PIT configuration interface.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h
arch/x86/kvm/x86.c
include/linux/kvm.h