Message ID | 1434450415-11339-4-git-send-email-dgilbert@redhat.com |
---|---|
State | New |
Headers | show |
"Dr. David Alan Gilbert (git)" <dgilbert@redhat.com> wrote: > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com> > > One of my patches used a loop that was based on host page size; > it dies in qtest since qtest hadn't bothered init'ing it. > > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com>
On (Tue) 16 Jun 2015 [11:26:16], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com> > > One of my patches used a loop that was based on host page size; > it dies in qtest since qtest hadn't bothered init'ing it. > > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Amit
On (Tue) 16 Jun 2015 [11:26:16], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com> > > One of my patches used a loop that was based on host page size; > it dies in qtest since qtest hadn't bothered init'ing it. > > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Amit
diff --git a/qtest.c b/qtest.c index 05cefd2..8e10340 100644 --- a/qtest.c +++ b/qtest.c @@ -657,6 +657,7 @@ void qtest_init(const char *qtest_chrdev, const char *qtest_log, Error **errp) inbuf = g_string_new(""); qtest_chr = chr; + page_size_init(); } bool qtest_driver(void)