From: Kai Huang Date: Fri, 9 Jan 2015 08:44:30 +0000 (+0800) Subject: KVM: x86: flush TLB when D bit is manually changed. X-Git-Tag: fixes-v4.0-rc1~113^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e71a59b250330fd52ee7293eb9d31952f16682e;p=pandora-kernel.git KVM: x86: flush TLB when D bit is manually changed. When software changes D bit (either from 1 to 0, or 0 to 1), the corresponding TLB entity in the hardware won't be updated immediately. We should flush it to guarantee the consistence of D bit between TLB and MMU page table in memory. This is especially important when clearing the D bit, since it may cause false negatives in reporting dirtiness. Sanity test was done on my machine with Intel processor. Signed-off-by: Kai Huang [Check A bit too. - Paolo] Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed