From: Marcelo Tosatti <mtosatti@redhat.com>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: Avi Kivity <avi@redhat.com>, kvm-devel <kvm@vger.kernel.org>
Subject: Re: [PATCH v4] qemu-kvm: Make PC speaker emulation aware of in-kernel PIT
Date: Fri, 15 May 2009 19:14:22 -0300 [thread overview]
Message-ID: <20090515221422.GB12643@amt.cnet> (raw)
In-Reply-To: <4A0C8259.4010701@web.de>
On Thu, May 14, 2009 at 10:43: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_PIT2 where
> available. This unbreaks -soundhw pcspk in KVM mode.
>
> Changes in v4:
> - preserve full PIT state across read-modify-write
> - update kvm.h
>
> Changes in v3:
> - re-added incorrectly dropped kvm_enabled checks
>
> Changes in v2:
> - rebased over qemu-kvm and KVM_CREATE_PIT2
> - refactored hooks in pcspk
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Jan,
You always attempt to use KVM_CREATE_PIT2, so say on migration if the
destination does not support the new ioctl you fallback to in-kernel
dummy naturally. Seems the right thing to do.
Would be nice to avoid sprinkling KVM details inside hw/pcspk.c though
but that is another problem.
Looks good (and v3 kernel patch).
next prev parent reply other threads:[~2009-05-15 22:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-12 7:28 [PATCH v2] qemu-kvm: Make PC speaker emulation aware of in-kernel PIT Jan Kiszka
2009-05-12 21:58 ` [PATCH v3] " Jan Kiszka
2009-05-14 20:43 ` [PATCH v4] " Jan Kiszka
2009-05-15 22:14 ` Marcelo Tosatti [this message]
2009-05-31 10:10 ` Jan Kiszka
2009-05-31 11:09 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090515221422.GB12643@amt.cnet \
--to=mtosatti@redhat.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@web.de \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox