Re: [PATCH] KVM: emulator: do not needlesly sync registers from emulator ctxt to vcpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/30/2011 03:43 PM, Gleb Natapov wrote:
On Wed, Mar 30, 2011 at 03:41:09PM +0200, Avi Kivity wrote:
>  On 03/30/2011 03:36 PM, Gleb Natapov wrote:
>  >>
>  >>   It's wierd.  Do you get perf hits in the copying?
>  >>
>  >How can I check. The memcpy is inlined.
>  >
>
>  perf annotate x86_emulate_instruction
>
>  (newer perf allows you to get there interactively from 'perf report')
>
>  >>   Copying a couple of hot cache lines shouldn't take any measurable
Ah, forgot about it:

First one:
27.71 :           1179f:       f3 a5                   rep movsl %ds:(%rsi),%es:(%rdi)

Second one:
32.68 :           11888:       f3 a5                   rep movsl %ds:(%rsi),%es:(%rdi)


Okay, I'm convinced.

(looks like a missed optimization, should use rep movsq there)

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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux