From: "Zhang Haoyu" <zhanghy@sangfor.com>
To: "Paolo Bonzini" <pbonzini@redhat.com>, "kvm" <kvm@vger.kernel.org>
Cc: "Alex Williamson" <alex.williamson@redhat.com>,
"Zhang, Yang Z" <yang.z.zhang@intel.com>,
"Michael S.Tsirkin" <mst@redhat.com>,
"Gleb Natapov" <gleb@cloudius-systems.com>
Subject: Re: [question] lots of interrupts injected to vm when pressing somekey w/o releasing
Date: Thu, 20 Nov 2014 14:59:36 +0800 [thread overview]
Message-ID: <201411201459337426770@sangfor.com> (raw)
In-Reply-To: 546D8805.6040508@redhat.com
>On 20/11/2014 03:20, Zhang Haoyu wrote:
>> Hi all,
>>
>> If I press the one of "Insert/Delete/Home/End/PageUp/PageDown/UpArrow/
>> DownArrow/LeftArrow/RightArrow" key w/o releasing, then lots of interrupts
>> will be injected to vm(win7/win2008), about 8000/s, the system become very slow,
>> bringing very bad experience. But the other keys are okay.
>> And, linux guest has no this problem.
>
>Do you have a trace for this? What version of QEMU and what UI backend?
>
Sorry for forgetting to mention test environment from the start.
Host: rhel7 with kernel-3.10.0-121
QEMU: qemu-2.0.2
Guest: win7(bad),win2008(bad),linux-kernel-3.10.0-121(good)
No UI backend, directly start the VM via qemu command.
perf top data when above problem happening:
PerfTop: 8710 irqs/sec kernel:69.5% exact: 0.0% [4000Hz cycles], (target_pid: 22382)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15.04% [kernel] [k] read_hpet
11.69% [kvm_intel] [k] vmx_vcpu_run
6.99% [kvm] [k] vcpu_enter_guest
5.22% [kvm] [k] kvm_vcpu_on_spin
4.76% [kernel] [k] __srcu_read_lock
4.31% libglib-2.0.so.0.3200.4 [.] g_hash_table_lookup
3.21% [kvm_intel] [k] __vmx_load_host_state
2.60% libglib-2.0.so.0.3200.4 [.] g_str_hash
2.49% [kvm_intel] [k] vmx_save_host_state
2.07% qemu-system-x86_64 [.] e1000_txmmio_poll
1.36% [kernel] [k] __srcu_read_unlock
1.24% libc-2.13.so [.] 0x00000000000e7582
1.05% qemu-system-x86_64 [.] start_xmit
1.04% [kvm] [k] kvm_fast_pio_in_complete_emulated_pio
1.04% [kvm_intel] [k] vmcs_writel
1.02% qemu-system-x86_64 [.] vnc_refresh_server_surface
0.99% [vdso] [.] 0x0000000000000847
0.98% [kernel] [k] native_read_tsc
0.93% [kernel] [k] fget_light
0.85% [kvm] [k] kvm_arch_vcpu_load
0.83% [kvm_intel] [k] vmx_cache_reg
0.79% [kvm] [k] kvm_arch_vcpu_ioctl_run
0.73% qemu-system-x86_64 [.] object_class_dynamic_cast
0.72% libpthread-2.13.so [.] pthread_mutex_lock
0.68% [kvm_intel] [k] add_atomic_switch_msr
0.63% [kvm] [k] emulator_pio_in_out.isra.101
0.62% [kernel] [k] recalc_sigpending
0.61% qemu-system-x86_64 [.] kvm_cpu_exec
0.59% qemu-system-x86_64 [.] kvm_arch_post_run
0.58% [kernel] [k] _raw_spin_lock_irq
7716 unprocessable samples recorded.
Thanks,
Zhang Haoyu
>Paolo
next prev parent reply other threads:[~2014-11-20 7:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 2:20 [question] lots of interrupts injected to vm when pressing some key w/o releasing Zhang Haoyu
2014-11-20 6:19 ` Paolo Bonzini
2014-11-20 6:59 ` Zhang Haoyu [this message]
2014-11-20 7:06 ` [question] lots of interrupts injected to vm when pressing somekey " Gleb Natapov
2014-11-24 8:58 ` [question] lots of interrupts injected to vm when pressingsomekey " Zhang Haoyu
[not found] ` <A9667DDFB95DB7438FA9D7D576C3D87E0ABEF25B@SHSMSX104.ccr.corp.intel.com>
2014-11-21 22:31 ` [question] lots of interrupts injected to vm when pressing some key " Paolo Bonzini
[not found] ` <A9667DDFB95DB7438FA9D7D576C3D87E0ABF0FE3@SHSMSX104.ccr.corp.intel.com>
2014-11-25 9:49 ` Paolo Bonzini
[not found] ` <A9667DDFB95DB7438FA9D7D576C3D87E0ABF396A@SHSMSX104.ccr.corp.intel.com>
2014-12-03 15:42 ` Paolo Bonzini
2014-12-15 9:39 ` Zhang Haoyu
2014-12-15 9:40 ` Paolo Bonzini
2014-11-24 12:17 ` Zhang Haoyu
2014-11-24 12:25 ` Paolo Bonzini
2014-11-25 1:54 ` [question] lots of interrupts injected to vm when pressing somekey " Zhang Haoyu
2014-11-25 7:02 ` Paolo Bonzini
2014-11-25 11:20 ` Zhang Haoyu
2014-11-25 13:52 ` Paolo Bonzini
[not found] ` <201411261511537876936@sangfor.com>
[not found] ` <A9667DDFB95DB7438FA9D7D576C3D87E0ABF2A95@SHSMSX104.ccr.corp.intel.com>
2014-11-27 7:20 ` [question] lots of interrupts injected to vm when pressing some key " Zhang Haoyu
[not found] ` <A9667DDFB95DB7438FA9D7D576C3D87E0ABF2C24@SHSMSX104.ccr.corp.intel.com>
2014-11-27 8:54 ` Zhang Haoyu
2014-11-28 8:27 ` Wanpeng Li
2014-11-28 9:44 ` Zhang Haoyu
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=201411201459337426770@sangfor.com \
--to=zhanghy@sangfor.com \
--cc=alex.williamson@redhat.com \
--cc=gleb@cloudius-systems.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=yang.z.zhang@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.