linux/drivers/kvm
Rusty Russell 39214915f5 KVM: kvm_vm_ioctl_get_dirty_log restore "nothing dirty" optimization
kvm_vm_ioctl_get_dirty_log scans bitmap to see it it's all zero, but
doesn't use that information.

Avi says:
	Looks like it was used to guard	kvm_mmu_slot_remove_write_access();
	optimizing the case where the guest just leaves the screen alone (which
	it usually does, especially in benchmarks).

	I'd rather reinstate that optimization.  See
	90cb0529dd where the damage was done.

It's pretty simple: if the bitmap is all zero, we don't need to do anything to
clean it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2007-10-13 10:18:21 +02:00
..
Kconfig KVM: Use the scheduler preemption notifiers to make kvm preemptible 2007-10-13 10:18:20 +02:00
kvm_main.c KVM: kvm_vm_ioctl_get_dirty_log restore "nothing dirty" optimization 2007-10-13 10:18:21 +02:00
kvm_svm.h KVM: Dynamically allocate vcpus 2007-10-13 10:18:20 +02:00
kvm.h KVM: Use alignment properties of vcpu to simplify FPU ops 2007-10-13 10:18:21 +02:00
Makefile [PATCH] kvm: userspace interface 2006-12-10 09:57:22 -08:00
mmu.c KVM: Convert vm lock to a mutex 2007-10-13 10:18:20 +02:00
paging_tmpl.h KVM: Move gfn_to_page out of kmap/unmap pairs 2007-10-13 10:18:19 +02:00
segment_descriptor.h [PATCH] kvm: userspace interface 2006-12-10 09:57:22 -08:00
svm.c KVM: Use alignment properties of vcpu to simplify FPU ops 2007-10-13 10:18:21 +02:00
svm.h KVM: SVM: Reliably detect if SVM was disabled by BIOS 2007-07-16 12:05:49 +03:00
vmx.c KVM: Use kmem cache for allocating vcpus 2007-10-13 10:18:21 +02:00
vmx.h KVM: VMX: Import some constants of vmcs from IA32 SDM 2007-10-13 10:18:19 +02:00
x86_emulate.c KVM: Change the emulator_{read,write,cmpxchg}_* functions to take a vcpu 2007-10-13 10:18:21 +02:00
x86_emulate.h KVM: Change the emulator_{read,write,cmpxchg}_* functions to take a vcpu 2007-10-13 10:18:21 +02:00