[PATCH RFC 1/1] kvm: Add dynamic ple window feature

2012-11-11 Thread Raghavendra K T
This patch introduces dynamic PLE window that is based on detecting potential undrcommit case patch series (patch 1 and RESENT patch 2) from the thread https://lkml.org/lkml/2012/10/29/287. Results are on expected lines from the discussion of ple_window experiment where summary showed

Fix lapic time counter read for periodic mode

2012-11-11 Thread Christian Ehrhardt
Hi, there is a bug in the emulation of the lapic time counter. In particular what we are seeing is that the time counter of a periodic lapic timer in the guest reads as zero 99% of the time. The patch below fixes that. The emulation of the lapic timer is done with the help of a hires timer that

[PATCH] KVM: PPC: Book3S HV: Reset reverse-map chains when resetting the HPT

2012-11-11 Thread Paul Mackerras
With HV-style KVM, we maintain reverse-mapping lists that enable us to find all the HPT (hashed page table) entries that reference each guest physical page, with the heads of the lists in the memslot-arch.rmap arrays. When we reset the HPT (i.e. when we reboot the VM), we clear out all the HPT

[PATCH] KVM: PPC: Book3S HV: Handle guest-caused machine checks without panicking

2012-11-11 Thread Paul Mackerras
Currently, if a machine check interrupt happens while we are in the guest, we exit the guest and call the host's machine check handler, which tends to cause the host to panic. Some machine checks can be triggered by the guest; for example, if the guest creates two entries in the SLB that map the