kvm: avoid reentring kvm_flush_coalesced_mmio_buffer()
commit1cae88b9f4121c9af0bf677435c6129e643280fd
authorAvi Kivity <avi@redhat.com>
Tue, 18 Oct 2011 17:43:12 +0000 (18 19:43 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 24 Oct 2011 23:26:53 +0000 (24 21:26 -0200)
tree19405c55e15389570311cf7a633d5ce03f152fb5
parent626c427624ac1d6b5dd245cb37988f046cec5f03
kvm: avoid reentring kvm_flush_coalesced_mmio_buffer()

mmio callbacks invoked by kvm_flush_coalesced_mmio_buffer() may
themselves indirectly call kvm_flush_coalesced_mmio_buffer().
Prevent reentering the function by checking a flag that indicates
we're processing coalesced mmio requests.

Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-all.c