From: Anthony Liguori <aliguori-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] Support for QEMU's CVS
Date: Thu, 21 Dec 2006 10:20:35 -0600 [thread overview]
Message-ID: <458AB453.3030701@cs.utexas.edu> (raw)
In-Reply-To: <458A4AA7.1000705-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Avi Kivity wrote:
> There are four issues I can see:
>
> - if there are multiple sources of kvm userspace, there are bound to
> be problems with incompatible kernel API and userspace, especially as
> I have plans for extensive changes to the API. I'll go and implement
> a version check now, so that doesn't become a barrier to anything. A
> submission to qemu-devel should include this check.
With KQEMU, you have to pair a version of KQEMU with the appropriate
version of QEMU. I don't think there's much of a problem doing
something like this for KVM for the short term until API gets more
stable (provided there's a version check so the error is useful to the
user).
> - the API changes are bound to cause more churn than necessary. I
> guess we can live with that though.
Yeah, I don't think this is a huge problem.
> - the patch contains some qemu changes that date from the days we did
> V2E, and are therefore unnecessary. I'll point them out below.
Right, I noticed a few things that seemed unnecessary.
> - where does libkvm live? an external package?
I would think an external package.
There are a couple more issues I know of:
- kqemu and kvm don't play very well together at the moment. We need
to revisit some of the logic to ensure that kqemu and kvm are never
enabled at the same time.
- the USE_KVM guards are probably unnecessary. We should be able to
isolate all of the libkvmctl specific stuff to qemu-kvm.c and then stub
things out as needed.
>> diff -r 2eac80033ea0 hw/usb-hid.c
>> --- a/hw/usb-hid.c Tue Dec 19 09:31:34 2006 +0000
>> +++ b/hw/usb-hid.c Wed Dec 20 23:01:25 2006 -0600
>> @@ -169,7 +169,9 @@ static const uint8_t qemu_tablet_config_
>> 0x81, /* u8 ep_bEndpointAddress; IN Endpoint 1 */
>> 0x03, /* u8 ep_bmAttributes; Interrupt */
>> 0x08, 0x00, /* u16 ep_wMaxPacketSize; */
>> - 0x03, /* u8 ep_bInterval; (255ms -- usb 2.0 spec) */
>> + /* Temporarily increase usb polling interval to prevent cpu
>> + * saturation (3 ms is way too often for kvm) */
>> + 0x33, /* u8 ep_bInterval; (255ms -- usb 2.0 spec) */
>>
>
> This might be a good change for qemu, but on the other hand this is a
> kvm deficiency that is forced on non-kvm users.
Brad Campbell (who wrote the original HID description) has recently
posted a patch that changes the interval to 0x20. 0x03 was causing a
performance problems with Windows guests (there's a pretty recent thread
on qemu-devel about it).
How did you arrive at 0x33 btw? IIRC, Brad stopped at 0x20 as he saw no
performance improvement beyond it. If KVM needs at least 0x33 then
provided there is no negative impact to QEMU I don't really see a
problem with it.
kqemu is bound to have the same issue FWIW.
Regards,
Anthony Liguori
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
next prev parent reply other threads:[~2006-12-21 16:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-21 5:17 [PATCH] Support for QEMU's CVS Anthony Liguori
[not found] ` <458A18F5.10108-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
2006-12-21 8:49 ` Avi Kivity
[not found] ` <458A4AA7.1000705-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-12-21 14:17 ` James Morris
2006-12-21 16:20 ` Anthony Liguori [this message]
[not found] ` <458AB453.3030701-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
2006-12-21 16:45 ` 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=458AB453.3030701@cs.utexas.edu \
--to=aliguori-nzps4cjig2hvqtjrzfazuq@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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