diff options
author | Wanpeng Li <wanpeng.li@linux.intel.com> | 2015-04-03 03:40:25 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-04-08 04:47:04 -0400 |
commit | 3ea3b7fa9af067982f34b6745584558821eea79d (patch) | |
tree | 64029d66d8a1179310bd61b1dadc9ae7dca2d93c /arch/parisc/include/asm/led.h | |
parent | 1119022c71fb11826041787cf0ebffc1a1b0ba5b (diff) |
kvm: mmu: lazy collapse small sptes into large sptes
Dirty logging tracks sptes in 4k granularity, meaning that large sptes
have to be split. If live migration is successful, the guest in the
source machine will be destroyed and large sptes will be created in the
destination. However, the guest continues to run in the source machine
(for example if live migration fails), small sptes will remain around
and cause bad performance.
This patch introduce lazy collapsing of small sptes into large sptes.
The rmap will be scanned in ioctl context when dirty logging is stopped,
dropping those sptes which can be collapsed into a single large-page spte.
Later page faults will create the large-page sptes.
Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
Message-Id: <1428046825-6905-1-git-send-email-wanpeng.li@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/parisc/include/asm/led.h')
0 files changed, 0 insertions, 0 deletions