KVM guest: do not batch pte updates from interrupt context
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 25 Aug 2009 04:13:10 +0000 (01:13 -0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 15:10:50 +0000 (18:10 +0300)
commit6ba661787594868512a71c129062ebd57d0c01e7
tree459f0c6af3b8c478807f774921fd4ea3ad0121ad
parent65a82211636f156a276cac3f8665605ae18f371f
KVM guest: do not batch pte updates from interrupt context

Commit b8bcfe997e4 made paravirt pte updates synchronous in interrupt
context.

Unfortunately the KVM pv mmu code caches the lazy/nonlazy mode
internally, so a pte update from interrupt context during a lazy mmu
operation can be batched while it should be performed synchronously.

https://bugzilla.redhat.com/show_bug.cgi?id=518022

Drop the internal mode variable and use paravirt_get_lazy_mode(), which
returns the correct state.

Cc: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kernel/kvm.c