android_kernel_samsung_msm8976/arch/x86/kvm
Takuya Yoshikawa 914ebccd2d KVM: x86: avoid unnecessary bitmap allocation when memslot is clean
Although we always allocate a new dirty bitmap in x86's get_dirty_log(),
it is only used as a zero-source of copy_to_user() and freed right after
that when memslot is clean. This patch uses clear_user() instead of doing
this unnecessary zero-source allocation.

Performance improvement: as we can expect easily, the time needed to
allocate a bitmap is completely reduced. In my test, the improved ioctl
was about 4 to 10 times faster than the original one for clean slots.
Furthermore, reducing memory allocations and copies will produce good
effects to caches too.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
2010-08-01 10:35:27 +03:00
..
emulate.c
i8254.c
i8254.h
i8259.c
irq.c
irq.h
Kconfig
kvm_cache_regs.h
kvm_timer.h
lapic.c
lapic.h
Makefile
mmu.c KVM: Avoid killing userspace through guest SRAO MCE on unmapped pages 2010-08-01 10:35:26 +03:00
mmu.h
mmutrace.h KVM: MMU: convert mmu tracepoints 2010-05-19 11:36:26 +03:00
paging_tmpl.h KVM: Avoid killing userspace through guest SRAO MCE on unmapped pages 2010-08-01 10:35:26 +03:00
svm.c KVM: SVM: Implement workaround for Erratum 383 2010-06-09 18:47:20 +03:00
timer.c
trace.h
tss.h
vmx.c KVM: VMX: Simplify vmx_get_nmi_mask() 2010-08-01 10:35:27 +03:00
x86.c KVM: x86: avoid unnecessary bitmap allocation when memslot is clean 2010-08-01 10:35:27 +03:00
x86.h