Files
linux/Documentation
Takuya Yoshikawa 77fbbbd2f0 KVM: x86: MMU: Consolidate BUG_ON checks for reverse-mapped sptes
At some call sites of rmap_get_first() and rmap_get_next(), BUG_ON is
placed right after the call to detect unrelated sptes which must not be
found in the reverse-mapping list.

Move this check in rmap_get_first/next() so that all call sites, not
just the users of the for_each_rmap_spte() macro, will be checked the
same way.

One thing to keep in mind is that kvm_mmu_unlink_parents() also uses
rmap_get_first() to handle parent sptes.  The change will not break it
because parent sptes are present, at least until drop_parent_pte()
actually unlinks them, and not mmio-sptes.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-11-25 17:26:47 +01:00
..
2015-09-24 15:39:42 -06:00
2015-08-28 22:59:36 -04:00
2015-10-27 18:55:31 -07:00
2015-06-08 16:43:09 -06:00
2015-10-26 16:00:09 +01:00
2015-06-08 23:15:45 +02:00
2015-07-14 12:35:42 -06:00
2015-11-06 17:50:42 -08:00
2015-02-27 11:44:24 -08:00
2015-06-23 06:49:44 -06:00