[PATCH v2 2/5] KVM: selftests: Factor code out of demand_paging_test