]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Sep 2009 15:44:03 +0000 (08:44 -0700)
commit01e44f49de551da7ab12dab65eb9923bebf04be2
treed6f4450375e0b3c4b0e889784d7e2354809c8d88
parent5a3a29fefad07ca9dd99cf4c3da55c0694084f59
KVM guest: do not batch pte updates from interrupt context

commit 6ba661787594868512a71c129062ebd57d0c01e7 upstream.

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.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/kvm.c