qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] Re: QEMU-KVM and video performance
Date: Mon, 10 May 2010 10:32:57 +0300	[thread overview]
Message-ID: <4BE7B6A9.8060007@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1005092126320.12029@bbs.intern>

On 05/09/2010 10:35 PM, Gerhard Wiesinger wrote:
>>>
>>>> Please run kvm_stat and report output for both tests to confirm.
>>>>
>>>
>>> See below. 2nd column is per second statistic when running the test.
>>
>> efer_reload                  0       0
>> exits                 18470836  554582
>> fpu_reload             2147833    3469
>> halt_exits                2083       0
>> halt_wakeup               2047       0
>> host_state_reload      2148186    3470
>> hypercalls                   0       0
>> insn_emulation         7688203  554244
>>
>> This indicates that kvm is emulating instead of direct mapping.  
>> That's probably a bug.  If you fix it, performance will increase 
>> dramatically.
>
>
> Where can I start here?
> Any ideas how to?
>
> One of my ideas: Move hw/vga.c functions
> vga_mem_readb
> vga_mem_readw
> vga_mem_readl
> vga_mem_writeb
> vga_mem_writew
> vga_mem_writel
> to KVM to avoid switching from KVM to QEMU (I can write C code even 
> kernel but I'm not comfortable with KVM). Howto?

That is already done (generically), it's called coalesced mmio.  You 
only have 3470 qemu exits/sec compared to 554244 kvm writes/sec.

>> Switching between tcg and kvm is hard, but not needed.  For 256 color 
>> modes, direct map is possible and should yield good performance.  
>> Bank switching can be improved perhaps 3x, but will never be fast.
>
> Where can I start for KVM performance for the bank switching (256 
> color mode)? (e.g. BIOS writes to VGA window I/O port to switch the bank)
> Any ideas how to improve (architecture for the change)?

For 256 color more the first priority is to find out why direct mapping 
is not used.  I'd suggest tracing the code that makes this decision (in 
hw/*vga.c) and seeing if it's right or not.

-- 
error compiling committee.c: too many arguments to function

  reply	other threads:[~2010-05-10  7:39 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 19:14 [Qemu-devel] QEMU-KVM and video performance Gerhard Wiesinger
2010-04-21  8:59 ` [Qemu-devel] " Avi Kivity
2010-04-21 10:08   ` Jamie Lokier
2010-04-21 10:49     ` Avi Kivity
2010-04-21 18:14       ` Gerhard Wiesinger
2010-04-21 20:49         ` Avi Kivity
2010-04-22  5:37           ` Gerhard Wiesinger
2010-04-22  6:57             ` Avi Kivity
2010-04-21 18:39       ` Jamie Lokier
2010-04-21 20:51         ` Avi Kivity
2010-04-21 21:19           ` Jamie Lokier
2010-04-22  5:44           ` Gerhard Wiesinger
2010-05-12 10:34             ` Jamie Lokier
2010-04-21 18:09   ` Gerhard Wiesinger
2010-04-21 18:33     ` Jamie Lokier
2010-04-21 18:50       ` Gerhard Wiesinger
2010-04-21 18:53         ` Jamie Lokier
2010-04-21 19:08           ` Gerhard Wiesinger
2010-04-21 21:30             ` Jamie Lokier
2010-04-22  6:12               ` Gerhard Wiesinger
2010-05-12 10:23                 ` Jamie Lokier
2010-04-21 20:56         ` Avi Kivity
2010-04-22  6:04           ` Gerhard Wiesinger
2010-04-22  7:03             ` Avi Kivity
2010-05-09 19:35               ` Gerhard Wiesinger
2010-05-10  7:32                 ` Avi Kivity [this message]
2010-05-12  6:14                   ` Gerhard Wiesinger
2010-05-12  6:39                     ` Avi Kivity
2011-02-18  7:32                       ` [Qemu-devel] Re: QEMU-KVM and video performance - Update Gerhard Wiesinger

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=4BE7B6A9.8060007@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=lists@wiesinger.com \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).