]> git.baikalelectronics.ru Git - kernel.git/commit
xen: fix logical error in tlb flushing
authorAlex Shi <alex.shi@intel.com>
Fri, 24 Aug 2012 08:55:13 +0000 (08:55 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 5 Sep 2012 14:50:21 +0000 (10:50 -0400)
commit802b28d45141a0c7db582fc2d4d8599f170470fb
tree0f9f9fae086368925f6cf4f3053cb1ea92a5adca
parent0993b83d5ecf8e4e0f10038f8386f5d093b05762
xen: fix logical error in tlb flushing

While TLB_FLUSH_ALL gets passed as 'end' argument to
flush_tlb_others(), the Xen code was made to check its 'start'
parameter. That may give a incorrect op.cmd to MMUEXT_INVLPG_MULTI
instead of MMUEXT_TLB_FLUSH_MULTI. Then it causes some page can not
be flushed from TLB.

This patch fixed this issue.

Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Alex Shi <alex.shi@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Yongjie Ren <yongjie.ren@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c