On 06/17/2015 04:15 PM, Paolo Bonzini wrote:


On 09/06/2015 05:28, Xiao Guangrong wrote:

-    rmapp = gfn_to_rmap(kvm, sp->gfn, PT_PAGE_TABLE_LEVEL);
+    slots = kvm_memslots(kvm);
+    slot = __gfn_to_memslot(slots, sp->gfn);
+    rmapp = __gfn_to_rmap(sp->gfn, PT_PAGE_TABLE_LEVEL, slot);


Why @sp is not available here?

Because the function forces the level to be PT_PAGE_TABLE_LEVEL rather
than sp->level.

Oh, right, thanks for your explanation. :)

Reviewed-by: Xiao Guangrong <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to