KVM: MMU: Inform users of mmio generation wraparound
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Thu, 20 Jun 2013 16:34:31 +0000 (01:34 +0900)
committerGleb Natapov <gleb@redhat.com>
Thu, 27 Jun 2013 11:20:49 +0000 (14:20 +0300)
commit7a2e8aaf0f6873b47bc2347f216ea5b0e4c258ab
treef5f908921cfd899e706cb455acb91d74c9ba894f
parent5a9b3830d462971bf05329148873f8996d1c88fc
KVM: MMU: Inform users of mmio generation wraparound

Without this information, users will just see unexpected performance
problems and there is little chance we will get good reports from them:
note that mmio generation is increased even when we just start, or stop,
dirty logging for some memory slot, in which case users cannot expect
all shadow pages to be zapped.

printk_ratelimited() is used for this taking into account the problems
that we can see the information many times when we start multiple VMs
and guests can trigger this by reading ROM in a loop for example.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c